/* Zaitsev Holding Group - Main Stylesheet */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --accent-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --border-gray: #333333;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition-smooth: all 0.3s ease;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Light Mode Variables */
[data-theme="light"] {
    --primary-black: #FFFFFF;
    --primary-white: #000000;
    --accent-gray: #f5f5f5;
    --light-gray: #1a1a1a;
    --medium-gray: #666666;
    --border-gray: #e0e0e0;
    --bg-primary: #FFFFFF;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.8);
}

/* Smooth theme transitions */
body, .navbar, .footer, .section, .btn, .card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 16px;
}

/* Mobile-first improvements */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.85;
    }
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

p {
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 75ch;
}

/* Better mobile paragraph readability */
@media (max-width: 768px) {
    p {
        font-size: 1.125rem;
        line-height: 1.85;
        margin-bottom: 1.75rem;
    }
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-logo-text {
    color: var(--primary-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-white);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-white);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%);
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: #e0e0e0;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 30%, #e8e8e8 60%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 1px 1px rgba(255,255,255,.3),
        0 -1px 1px rgba(0,0,0,.7),
        0 2px 2px rgba(0,0,0,.5),
        0 4px 4px rgba(0,0,0,.4),
        0 6px 6px rgba(0,0,0,.3),
        0 8px 8px rgba(0,0,0,.2);
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.3)) 
            drop-shadow(0 -1px 1px rgba(0,0,0,.7))
            drop-shadow(0 2px 3px rgba(0,0,0,.5));
}

.hero-subtitle {
    color: #d0d0d0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.4s both;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 30%, #e0e0e0 60%, #c8c8c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 1px 1px rgba(255,255,255,.2),
        0 -1px 1px rgba(0,0,0,.6),
        0 2px 2px rgba(0,0,0,.4),
        0 4px 4px rgba(0,0,0,.3);
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.2)) 
            drop-shadow(0 -1px 1px rgba(0,0,0,.6))
            drop-shadow(0 2px 3px rgba(0,0,0,.4));
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-white);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

.btn-dark:hover {
    background-color: var(--accent-gray);
    border-color: var(--accent-gray);
    transform: translateY(-2px);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 8rem 2rem;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

/* ==================== PORTFOLIO COMPANIES ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.portfolio-card {
    background-color: var(--primary-white);
    padding: 3rem;
    border: 2px solid var(--border-gray);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-black), var(--accent-gray));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.portfolio-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.portfolio-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* General industry tag styles */
.industry-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.portfolio-card .industry-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--primary-black);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* ==================== STATS SECTION ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.stat-card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Stat cards in light sections */
.section-light .stat-number {
    color: var(--primary-black);
}

.section-light .stat-label {
    color: var(--primary-black);
}

.section-light .stat-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.section-light .stat-card:hover .stat-number {
    color: var(--primary-black);
    transform: scale(1.1);
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* 2x2 grid for index.html investment philosophy */
.values-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.value-card {
    padding: 2rem;
    background-color: var(--primary-white);
    border-left: 4px solid var(--primary-black);
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.value-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-black);
    transition: color 0.3s ease;
}

.value-card:hover h4 {
    color: var(--primary-blue);
}

.value-card h4 i {
    transition: transform 0.3s ease;
}

.value-card:hover h4 i {
    transform: scale(1.2);
}

.value-card p {
    color: var(--medium-gray);
}

/* ==================== CONTACT SECTION ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--primary-black);
    min-width: 30px;
}

.contact-item-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.contact-item-content p {
    color: var(--medium-gray);
}

.contact-form {
    background-color: var(--light-gray);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    background-color: var(--primary-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-black);
}

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

/* ==================== FOOTER ==================== */
.footer {
       background-color: var(--primary-black);
       color: var(--primary-white);
       padding: 4rem 2rem 2rem;
   }
   
   .footer-content {
       max-width: 1400px;
       margin: 0 auto;
       display: grid;
       grid-template-columns: 2fr 1fr 1fr 1fr;
       gap: 3rem;
       margin-bottom: 3rem;
   }
   
   .footer-logo img {
       height: 60px;
       margin-bottom: 1rem;
   }
   
   .footer-description {
       color: rgba(255, 255, 255, 0.7);
       margin-bottom: 1.5rem;
   }
   
   .footer-section h4 {
       margin-bottom: 1.5rem;
       color: var(--primary-white);
   }
   
   .footer-section {
       min-width: 0;
   }
   
   .footer-links {
       list-style: none;
   }
   
   .footer-links li {
       margin-bottom: 0.8rem;
   }
   
   .footer-links a {
       color: rgba(255, 255, 255, 0.7);
       transition: var(--transition-smooth);
   }
   
   .footer-links a:hover {
       color: var(--primary-white);
   }
   
   .footer-bottom {
      display: block;          /* ensure block-level */
      width: 100%;             /* allow it to span its container */
      max-width: 1400px;
      margin: 0 auto;          /* centers within parent */
      padding-top: 2rem;
      border-top: 1px solid var(--border-gray);
      text-align: center;      /* centers inline content (text, inline elements) */
      color: rgba(255, 255, 255, 0.5);
    }

   /* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Reorder contact sections on mobile - form first, then info */
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Keep 2x2 grid on tablet for index.html */
    .values-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1001;
        position: relative;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 8rem 1rem 3rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    .hero-logo {
        width: 200px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack 2x2 grid to single column on mobile */
    .values-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-bottom p {
        text-align: center;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    /* Fix white text on white background for industry tags */
    .section-light .industry-tag {
        background-color: var(--primary-black);
        color: var(--primary-white);
    }
    
    /* Center contact page text on mobile */
    .contact-info,
    .contact-details,
    .contact-item {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item-icon {
        margin-bottom: 1rem;
    }
    
    .contact-container {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
}

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

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-black);
    outline-offset: 2px;
}

/* Better focus states for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-black);
    outline-offset: 2px;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-black);
    color: var(--primary-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    border: 2px solid var(--primary-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-black);
    transform: translateY(-5px);
}

/* ==================== LOADING STATES ==================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FORM VALIDATION ==================== */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.success .form-success {
    display: block;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    padding: 1rem 2rem;
    background-color: var(--light-gray);
    margin-top: 80px;
}

.breadcrumbs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--medium-gray);
    transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
    color: var(--primary-black);
}

.breadcrumbs-separator {
    color: var(--medium-gray);
}

.breadcrumbs-current {
    color: var(--primary-black);
    font-weight: 600;
}

/* ==================== IMPROVED TOUCH TARGETS ==================== */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ==================== SMOOTH ANIMATIONS ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .back-to-top,
    .mobile-menu-toggle,
    .hero-cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-white { color: var(--primary-white); }
.text-black { color: var(--primary-black); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* ==================== CENTERED CONTENT SECTION ==================== */
.centered-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.centered-content .about-content {
    display: block;
    text-align: center;
}

.centered-content .about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.centered-content ul {
    text-align: left;
    max-width: 600px;
    margin: 2rem auto;
}

/* ==================== MOBILE ENHANCEMENTS ==================== */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1.05rem;
    }
    
    /* Better spacing for mobile */
    .section {
        padding: 4rem 1.5rem;
    }
    
    h1 { 
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    h2 { 
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    h3 { 
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    /* Improved card spacing on mobile */
    .value-card, .portfolio-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Better footer on mobile */
    .footer {
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
}

/* ==================== IMPROVED READABILITY ==================== */
.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    max-width: 65ch;
    margin: 0 auto;
}

.hero-description {
    font-size: 1.35rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* Better list readability */
ul li, ol li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

/* Improved contrast for better readability */
.section-dark p,
.section-dark li {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--primary-white);
}

.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--primary-black);
}

.section-light p,
.section-light li {
    color: var(--text-gray);
}

/* Ensure all text elements have proper contrast */
.section-dark .section-title,
.section-dark .section-subtitle,
.section-dark .about-text h2,
.section-dark .about-text p {
    color: var(--primary-white);
}

.section-light .section-title,
.section-light .section-subtitle,
.section-light .about-text h2,
.section-light .about-text p {
    color: var(--primary-black);
}

/* Portfolio card text in dark sections */
.section-dark .portfolio-card h3,
.section-dark .portfolio-card p {
    color: var(--primary-black);
}

/* Ensure links are visible on both backgrounds */
.section-dark a {
    color: var(--primary-blue);
}

.section-light a {
    color: var(--primary-blue);
}


/* ==================== FIX WHITE TEXT ON WHITE BACKGROUND ==================== */
/* Ensure cards in dark sections have proper contrast */
.section-dark .value-card {
    background-color: var(--accent-gray);
    border-left-color: var(--primary-white);
}

.section-dark .value-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.section-dark .value-card h4 {
    color: var(--primary-white);
}

.section-dark .value-card:hover h4 {
    color: var(--primary-blue);
}

.section-dark .value-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* Value cards in light sections */
.section-light .value-card {
    background-color: var(--primary-white);
    border-left-color: var(--primary-blue);
}

.section-light .value-card h4 {
    color: var(--primary-black);
}

.section-light .value-card p {
    color: var(--primary-black);
}

.section-light .value-card h4 i {
    color: var(--primary-black);
}

/* Ensure portfolio cards have black text in light sections */
.section-light .portfolio-card h3,
.section-light .portfolio-card p,
.section-light .portfolio-card li {
    color: var(--primary-black);
}

/* Ensure list items in light sections have black text */
.section-light ul li,
.section-light ol li {
    color: var(--primary-black);
}

.section-light .value-card:hover {
    background-color: rgba(41, 98, 255, 0.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.section-light .value-card:hover h4 {
    color: var(--primary-blue);
}

/* Fix checkmark visibility in dark sections */
.section-dark .fa-check-circle {
    color: var(--primary-white) !important;
}

.section-dark .portfolio-card {
    background-color: var(--accent-gray);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .portfolio-card h3 {
    color: var(--primary-white);
}

.section-dark .portfolio-card p {
    color: rgba(255, 255, 255, 0.85);
}

.section-dark .portfolio-card .industry-tag {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

/* Fix industry tags in dark sections */
.section-dark .industry-tag {
    background-color: var(--primary-white);
    color: var(--primary-black);
}


/* ==================== PRIORITY FEATURES ==================== */

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--accent-gray);
    border: 2px solid var(--border-gray);
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--primary-white);
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(41, 98, 255, 0.4);
    animation: pulse 2s infinite;
}

.sticky-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(41, 98, 255, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(41, 98, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(41, 98, 255, 0.6);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: #1e4fd9;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Adjust when both buttons are visible */
.sticky-cta.visible ~ .scroll-to-top.visible {
    bottom: 100px;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* Improved Focus Indicators */
*:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--medium-gray);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-blue);
}

.breadcrumbs li:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Adjustments for New Features */
@media (max-width: 768px) {
    .theme-toggle {
        top: 80px;
        right: 15px;
        padding: 8px 12px;
    }
    
    .sticky-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .sticky-cta .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
    
    .sticky-cta.visible ~ .scroll-to-top.visible {
        bottom: 85px;
    }
}

/* Print Styles */
@media print {
    .theme-toggle,
    .sticky-cta,
    .scroll-to-top,
    .navbar,
    .footer,
    .breadcrumbs {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000FF;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==================== COOKIE CONSENT BANNER ==================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-gray);
    border-top: 3px solid var(--primary-blue);
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text h3 {
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

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

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.active {
    opacity: 1;
    pointer-events: all;
}

.cookie-settings-content {
    background: var(--bg-primary);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.cookie-settings-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.cookie-settings-close:hover {
    transform: scale(1.1);
}

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 2rem;
}

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

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

.cookie-category h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cookie-category p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-status {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    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: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

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

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

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

.cookie-toggle input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.3);
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .btn {
        width: 100%;
    }
}

