/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure navigation is not affected by any parent positioning */
nav, .nav {
    position: relative; /* Default fallback */
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #cccccc;
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #0066cc;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    
    /* Success/Warning/Error */
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    
    /* Border Colors */
    --border-primary: #333333;
    --border-secondary: #222222;
    
    /* Shadows */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 16px 64px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

/* Ensure font loading doesn't cause layout shifts */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
    unicode-range: U+0020-007F;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    /* Prevent layout shifts during page load */
    /* contain: layout style; - Removed as it can interfere with fixed positioning */
    /* Ensure consistent font rendering */
    font-display: swap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Global image optimization to prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shifts while images load */
    content-visibility: auto;
}

/* Logo specific optimization */
.logo-svg {
    width: auto;
    height: 40px;
    /* Reserve space to prevent layout shift */
    min-width: 120px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-small);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Gradient Text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
nav.nav,
.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(10, 10, 10, 0.95);
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-secondary);
    z-index: 1000 !important;
    padding: var(--space-4) 0;
    /* Ensure fixed positioning works properly */
    transform: translateZ(0);
    will-change: transform;
    /* Force hardware acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-primary);
}

.logo-svg {
    height: 40px;
    width: auto;
}

.logo-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.status-indicator-nav {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 4px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

.status-indicator-nav.degraded { 
    background: #ffaa00; 
    box-shadow: 0 0 4px rgba(255, 170, 0, 0.5); 
}

.status-indicator-nav.outage { 
    background: #ff4444; 
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.5); 
}

.status-indicator-nav.maintenance { 
    background: #0099ff; 
    box-shadow: 0 0 4px rgba(0, 153, 255, 0.5); 
}

.nav-account {
    margin-left: var(--space-4);
}

.btn-account {
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    border: none;
    box-shadow: var(--shadow-small);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-account:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-primary);
}

.btn-account svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    background: var(--accent-gradient);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.bar {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
}

/* Prevent FOUC - Hide mobile elements immediately */
.mobile-overlay {
    display: none;
}

/* Ensure mobile menu is hidden on load - aggressive approach */
@media (max-width: 768px) {
    .nav-menu {
        visibility: hidden;
        transform: translateX(100%);
        opacity: 0;
    }
    
    .nav-account {
        visibility: hidden;
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
        pointer-events: none;
    }
    
    .mobile-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        visibility: visible; /* Always visible to prevent layout shift */
    }
    
    /* Elements are visible by default to prevent layout shifts */
    .nav-menu {
        visibility: visible;
    }
    
    .nav-account {
        visibility: visible;
    }
}

/* Body styles for mobile menu state */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Smooth transitions for all nav elements */
.nav-menu,
.nav-account,
.mobile-overlay {
    will-change: transform, opacity;
}

/* Animation delays for staggered effect */
.nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.3s; }
.nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu.active .nav-link {
    animation: slideInFromRight 0.4s ease forwards;
    opacity: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0;
    /* Prevent layout shifts */
    contain: layout style;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 2;
    /* Prevent layout shifts and reserve space */
    min-height: 500px;
    contain: layout style;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-start;
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-primary);
    max-width: 500px;
    width: 100%;
}

.window-header {
    background: var(--bg-tertiary);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-primary);
}

.window-controls {
    display: flex;
    gap: var(--space-2);
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f5f;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28ca42;
}

.window-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.code-content {
    padding: var(--space-4);
}

.code-content pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    overflow-x: auto;
}

.code-content .keyword {
    color: #569cd6;
}

.code-content .namespace,
.code-content .method {
    color: #4ec9b0;
}

.code-content .variable {
    color: #9cdcfe;
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    background: var(--accent-gradient);
    opacity: 0.1;
    border-radius: 50%;
    /* animation: fadeIn 2s ease-in-out forwards; - Removed animation */
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    /* animation-delay: 0s; - Removed animation delay */
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    /* animation-delay: 0.5s; - Removed animation delay */
}

.bg-element-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    /* animation-delay: 1s; - Removed animation delay */
}

/* Background animations removed for static design */
/*
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}
*/

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    text-decoration: none;
    color: inherit;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-size-base);
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.service-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-medium);
    margin-top: auto;
}

.service-card .pricing-info + .read-more-btn {
    margin-top: var(--space-4);
}

.service-card:hover .read-more-btn {
    opacity: 1;
    color: var(--accent-secondary);
    gap: var(--space-3);
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-medium);
}

.service-card:hover .read-more-btn svg {
    transform: translateX(2px);
}

/* Cases Section */
.cases {
    padding: var(--space-24) 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.case-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.case-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-placeholder {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-content {
    padding: var(--space-6);
}

.case-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.case-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.case-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.cases-cta {
    text-align: center;
}

.nugets-cta {
    text-align: center;
    margin-top: var(--space-8);
}

/* NuGet Packages Section */
.nugets {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.nugets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.nuget-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-medium);
    display: block;
    text-decoration: none;
    color: inherit;
}

.nuget-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-small);
    border-color: var(--accent-primary);
    text-decoration: none;
    color: inherit;
}

.nuget-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.nuget-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuget-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.nuget-card h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: var(--font-size-lg);
}

.nuget-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.nuget-stats {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.stat {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-primary);
}

.nuget-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-medium);
}

.nuget-card:hover .read-more-btn {
    opacity: 1;
    color: var(--accent-secondary);
    gap: var(--space-3);
}

.nuget-card:hover .read-more-btn svg {
    transform: translateX(2px);
}

/* About Section */
.about {
    padding: var(--space-24) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.about-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.about-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.tech-item {
    background: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.tech-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 600px;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: 1rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-details a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.contact-details a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid var(--border-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-secondary);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-left: 1px solid var(--border-primary);
        z-index: 1000;
        padding: var(--space-8);
        transform: translateX(100%);
        opacity: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        font-weight: 600;
        color: var(--text-secondary);
        padding: var(--space-4) var(--space-6);
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--accent-gradient);
        transition: left 0.3s ease;
        z-index: -1;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        left: 0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--text-primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-account {
        position: fixed;
        bottom: var(--space-8);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        height: auto;
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border: none;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active ~ .nav-account {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    .btn-account {
        background: var(--accent-gradient);
        box-shadow: var(--shadow-large);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: var(--space-3) var(--space-6);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active {
        background: var(--accent-gradient);
        transform: translateY(0);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background: var(--text-primary);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        background: var(--text-primary);
    }
    
    /* Add overlay for better UX */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .hero {
        padding-top: calc(var(--space-24) + 80px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .nugets-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        justify-content: center;
        padding: 0 var(--space-4);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: var(--space-6);
        max-width: none;
    }
    
    .contact-item {
        padding: var(--space-3);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero {
        padding-top: calc(var(--space-16) + 80px);
        padding-bottom: var(--space-16);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .code-window {
        max-width: 100%;
    }
    
    .code-content {
        padding: var(--space-3);
    }
    
    .about-stats {
        /* Keep stats side-by-side on mobile */
        flex-direction: row;
        gap: var(--space-4);
        justify-content: center;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Simplified Scroll Animation */
@keyframes subtleFadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

.visible {
    animation: subtleFadeIn 0.3s ease forwards;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}
