/* ========================================
   SBI Investment Co., Ltd. - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0066CC;
    --primary-dark: #003366;
    --primary-light: #00A3E0;
    --accent-color: #004C99;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-dark: #1A1A2E;
    --border-color: #E0E0E0;
    --success-color: #28A745;
    --error-color: #DC3545;
    --warning-color: #FFC107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--primary-color);
    border: 2px solid var(--text-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--text-white);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/financial-services.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 100px 0 60px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ========================================
   Sections Common Styles
   ======================================== */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-dark .section-title {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.values-list {
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text-white);
}

.value-text h4 {
    margin-bottom: 5px;
}

.value-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   Lead Form Section
   ======================================== */
.lead-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

.lead-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.lead-form-title {
    text-align: center;
    margin-bottom: 30px;
}

.lead-form-title h2 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.lead-form-title p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-label .required {
    color: var(--error-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.consent-label {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.consent-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.form-success,
.form-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.form-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 40px;
    background-color: var(--primary-dark);
    border-radius: 16px;
    color: var(--text-white);
}

.contact-info h2 {
    color: var(--text-white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text-white);
}

.contact-text h4 {
    color: var(--text-white);
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--text-white);
}

.business-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.business-hours h4 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.business-hours p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-form-container {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.map-container {
    margin-top: 60px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    max-width: 600px;
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.cookie-btn-accept:hover {
    background-color: var(--primary-dark);
}

.cookie-btn-essential {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-btn-essential:hover {
    background-color: var(--border-color);
}

.cookie-btn-settings {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cookie-btn-settings:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 26px;
    transition: var(--transition);
}

.cookie-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-white);
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ========================================
   Page Header (Internal Pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: var(--text-white);
}

/* ========================================
   Legal Pages (Privacy, Terms, etc.)
   ======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.legal-content ul li {
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.last-updated {
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Business Model Page
   ======================================== */
.business-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.business-model-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.business-model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.business-model-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.business-model-card p {
    color: var(--text-light);
}

/* ========================================
   Accessibility Page
   ======================================== */
.accessibility-section {
    margin-bottom: 40px;
}

.accessibility-section h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.accessibility-section p {
    color: var(--text-light);
}

.accessibility-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.accessibility-feature {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.accessibility-feature h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.accessibility-feature p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   Services Page
   ======================================== */
.services-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.services-page-grid:nth-child(even) {
    direction: rtl;
}

.services-page-grid:nth-child(even) > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-detail-content h3 {
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

.portfolio-section {
    margin-top: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 180px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.portfolio-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.portfolio-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-page-grid {
        grid-template-columns: 1fr;
    }

    .services-page-grid:nth-child(even) {
        direction: ltr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .lead-form-container {
        padding: 25px;
    }

    .contact-info,
    .contact-form-container {
        padding: 25px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .btn {
        padding: 12px 24px;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 16px;
    z-index: 10001;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-dark);
    color: var(--text-white);
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.cookie-table tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .section {
        padding: 20px 0;
    }
}
