/* Brainymation Studios - WCAG AA Compliant with Dark/Light Theme Support */

:root {
    /* Light Theme (Default) - WCAG AA Compliant */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #f5f5f7;
    --text-primary: #1d1d1f;           /* 15.8:1 on white */
    --text-secondary: #515154;          /* 7.1:1 on white */
    --text-tertiary: #6e6e73;           /* 5.1:1 on white */
    --accent-blue: #0051d5;             /* 6.4:1 on white */
    --accent-purple: #7c3aed;           /* 6.1:1 on white */
    --accent-green: #047857;            /* 5.3:1 on white */
    --accent-light-blue: #60a5fa;       /* For dark bg */
    --accent-light-purple: #c084fc;     /* For dark bg */
    --error: #991b1b;                   /* 7.2:1 on white */
    --error-bg: #fef2f2;
    --success: #047857;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Gradient Backgrounds */
    --gradient-bg: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #dbeafe 100%);
    --gradient-text: #1e3a5f;
    --gradient-text-secondary: #4a5568;
}

/* Dark Theme - WCAG AA Compliant */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1c1c1e;
        --bg-card: #1c1c1e;
        --text-primary: #ffffff;            /* 21:1 on black */
        --text-secondary: #a1a1a6;          /* 7.5:1 on black */
        --text-tertiary: #8e8e93;           /* 5.8:1 on black */
        --accent-blue: #60a5fa;             /* 7.8:1 on black */
        --accent-purple: #c084fc;           /* 7.2:1 on black */
        --accent-green: #34d399;            /* 6.1:1 on black */
        --error: #fca5a5;                   /* 9.2:1 on black */
        --error-bg: #450a0a;
        --success: #34d399;
        --border: rgba(255, 255, 255, 0.1);
        --shadow: rgba(0, 0, 0, 0.5);
        
        /* Dark Gradient Backgrounds */
        --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
        --gradient-text: #ffffff;
        --gradient-text-secondary: rgba(255, 255, 255, 0.9);
    }
}

/* Manual dark class support */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1c1c1e;
    --bg-card: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --accent-blue: #60a5fa;
    --accent-purple: #c084fc;
    --accent-green: #34d399;
    --error: #fca5a5;
    --error-bg: #450a0a;
    --success: #34d399;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    
    /* Dark Gradient Backgrounds */
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-text: #ffffff;
    --gradient-text-secondary: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

[data-animate="fade-in"] {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

[data-animate="fade-in-up"] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

[data-delay="0.1"] { animation-delay: 0.1s; }
[data-delay="0.2"] { animation-delay: 0.2s; }
[data-delay="0.3"] { animation-delay: 0.3s; }
[data-delay="0.4"] { animation-delay: 0.4s; }
[data-delay="0.5"] { animation-delay: 0.5s; }
[data-delay="0.6"] { animation-delay: 0.6s; }

/* ========================================
   HEADER
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .main-header {
        background: rgba(10, 10, 10, 0.95);
    }
}

[data-theme="dark"] .main-header {
    background: rgba(10, 10, 10, 0.95);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px var(--shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.desktop-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 0;
}

.burger-line {
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    filter: brightness(1.2);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #1d1d1f;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #0071e3;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #7c3aed;
    bottom: -150px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #ff6b6b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 20s ease-in-out infinite;
    animation-delay: -10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(66, 179, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 32px;
    color: var(--text-tertiary);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-title span {
    display: block;
}

.text-gradient {
    background: linear-gradient(135deg, #337cd5, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;

}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
}

.page-header {
    background: var(--gradient-bg);
    color: var(--gradient-text);
    padding: 180px 0 100px;
    text-align: center;
}

.page-header .section-title {
    color: var(--gradient-text);
}

.page-header .section-description {
    color: var(--gradient-text-secondary);
}

/* ========================================
   PACKAGES
   ======================================== */

.packages-section {
    background: var(--bg-primary);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.package-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px var(--shadow);
}

.package-card.popular {
    background: linear-gradient(135deg, #1c1c2e, #16213e);
    transform: scale(1.02);
    border-color: var(--accent-blue);
}
@media (prefers-color-scheme: light) {
  .package-card.popular {
    background: linear-gradient(135deg, #f5f7fa, #adc6f7);
  }
}

.package-card.popular:hover {
    transform: scale(1.02) translateY(-15px);
}

.package-card.popular .package-subtitle {
    color: var(--text-secondary)
}

.package-card.popular .feature-list li {
    color: var(--text-primary)
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.package-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-secondary)
}

.package-name {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: inherit;
}

.package-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.package-price {
    display: flex;
    align-items: baseline;
    color: var(--text-secondary);
    gap: 4px;
    margin-bottom: 32px;
}

.price-currency {
    font-size: 28px;
    font-weight: 600;
    color: inherit;
}

.price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--accent-blue);
}

.package-card.popular .price-amount {
    color: #60a5fa;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-blue);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.package-btn {
    width: 100%;
    margin-top: auto;
}

/* ========================================
   PORTFOLIO
   ======================================== */

.portfolio-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.portfolio-section .section-title {
    color: var(--text-primary);
}

.portfolio-section .section-description {
    color: var(--text-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #60a5fa;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-contact h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ========================================
   FORMS
   ======================================== */

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.2);
}

::placeholder {
    color: #6b7280;
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    ::placeholder {
        color: #9ca3af;
    }
}

/* Form Labels */
.form-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--accent-blue);
}

/* Error Messages */
.error-message {
    background: var(--error-bg);
    color: var(--error);
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    border: 2px solid rgba(185, 28, 28, 0.2);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

*:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #ffffff;
    }
    
    .text-gradient {
        -webkit-text-fill-color: #60a5fa;
    }
    
    .nav-link:hover {
        text-decoration: underline;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Center align all text content except footer on mobile */
    main h1, main h2, main h3, main h4, main h5, main h6,
    main p,
    .hero-content, .hero-title, .hero-subtitle,
    .section-header, .section-title, .section-description,
    .about-grid, .about-grid p,
    .contact-grid, .contact-grid > div:first-child > p {
        text-align: center !important;
    }
    
    /* Keep lists left aligned */
    main ul, main li {
        text-align: left !important;
    }
    
    /* Center align form labels and inputs on mobile */
    main .form-label {
        text-align: center;
    }
    
    /* Package cards content center alignment */
    .package-card {
        text-align: center;
    }
    
    .package-price {
        justify-content: center;
    }
    
    /* Feature list items stay left aligned with tick mark */
    .feature-list li {
        justify-content: flex-start;
        text-align: left !important;
    }
    
    /* Portfolio overlay text center */
    .portfolio-overlay {
        align-items: center;
        text-align: center;
    }
    
    /* Contact page - Contact info section (Email Us, Call Us) stay left aligned */
    .contact-grid > div:first-child h3,
    .contact-grid > div:first-child p,
    .contact-grid > div:first-child a {
        text-align: left !important;
    }
    
    /* Contact page - How We Work cards stay left aligned */
    section[aria-labelledby="process-heading"] h3,
    section[aria-labelledby="process-heading"] p {
        text-align: left !important;
    }
    
    /* Desktop nav */
    .desktop-nav {
        display: none;
    }
    
    .desktop-nav.responsive {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border);
        padding: 20px 24px;
        box-shadow: 0 10px 40px var(--shadow);
        gap: 0;
    }
    
    .desktop-nav.responsive .nav-link {
        display: block;
        text-align: center;
        padding: 16px;
        border-radius: 12px;
        color: var(--text-primary);
    }
    
    .desktop-nav.responsive .nav-link:hover {
        background: var(--bg-card);
    }
    
    .desktop-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.popular {
        transform: none;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left !important;
    }
    
    /* Ensure footer content stays left aligned on mobile */
    .main-footer,
    .main-footer h4,
    .main-footer p,
    .main-footer ul,
    .main-footer li,
    .main-footer a,
    .footer-brand,
    .footer-links,
    .footer-contact {
        text-align: left !important;
    }
}

/* ========================================
   RESPONSIVE HEADINGS (about-heading, contact-heading)
   ======================================== */

#about-heading {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
}

#contact-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
}

/* About and Contact Grid Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Mobile adjustments for about and contact grids */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    #about-heading {
        text-align: center !important;
    }
    
    #contact-heading {
        text-align: center;
    }
    
    /* About section text alignment */
    .about-grid p {
        text-align: center;
    }
    
    /* Contact section text alignment */
    .contact-grid > div:first-child > p {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .main-header, .mobile-menu-btn, .hero-background {
        display: none !important;
    }
    
    body {
        color: #000000;
        background: #ffffff;
    }
    
    a {
        text-decoration: underline;
        color: #000000;
    }
}
