/* ===================================
   OPHION Business Solutions
   Hi-Tech Dynamic Website Styles
   =================================== */

:root {
    /* Colors - Professional Palette */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --secondary-dark: #020617;
    --accent-color: #2563eb;
    --accent-secondary: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #FFFFFF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    
    /* Professional Accent Colors */
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --slate-900: #0f172a;
    
    /* Gradients - Professional */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(30, 64, 175, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(30, 64, 175, 0.1);
    --glass-shadow: 0 8px 32px rgba(30, 64, 175, 0.08);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Shadows - Professional */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.1);
    --shadow-blue: 0 4px 14px rgba(30, 64, 175, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   Loading Screen
   =================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--primary-color);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--accent-color);
    animation-duration: 1.2s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===================================
   Scroll Progress Bar
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9998;
    transform-origin: left;
    transition: width 0.1s linear;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* ===================================
   Custom Cursor
   =================================== */

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    transition: all 0.1s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.6);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    opacity: 0.4;
    transition: all 0.15s ease;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ===================================
   Utility Classes
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 64, 175, 0.08);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-blue);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .navbar {
        z-index: 1002;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

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

.nav-link.active {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.08);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-backdrop {
    display: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--gradient-mesh);
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Grid Background */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -2px;
}

.typing-text {
    display: inline-block;
    color: var(--text-primary);
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Removed overly flashy glitch effect for professional appearance */

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-md);
}

.hero-stat-item {
    flex: 0 1 auto;
}

.stat-content {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.stat-number-hero {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-percent,
.stat-slash {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label-hero {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-move 1.5s infinite;
}

@keyframes wheel-move {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

.arrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arrow span {
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
}

/* ===================================
   Buttons - Enhanced
   =================================== */

.btn {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-animated {
    position: relative;
    z-index: 1;
}

.btn-animated span {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn-animated:hover .btn-shine {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
    color: var(--text-light);
}

.btn-primary:active {
    transform: translateY(-1px);
}

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

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    z-index: 0;
    border-radius: var(--radius-md);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    letter-spacing: -2px;
}

.section-divider {
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 0 auto var(--spacing-md);
    border-radius: 3px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-divider::before {
    left: -30px;
}

.section-divider::after {
    right: -30px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Floating Shapes */
.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.06;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 40px) rotate(240deg);
    }
}

/* ===================================
   About Section
   =================================== */

.about {
    background: var(--bg-secondary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.text-block {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.text-block:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.block-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    filter: grayscale(0);
}

.text-block h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: 100px;
}

.stat-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    animation: progress-fill 2s ease-out forwards;
}

@keyframes progress-fill {
    from { width: 0; }
}

/* ===================================
   Projects Section
   =================================== */

.projects {
    background: white;
    position: relative;
}

.projects-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.tech-grid {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(30, 64, 175, 0.02) 0px, rgba(30, 64, 175, 0.02) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(30, 64, 175, 0.02) 0px, rgba(30, 64, 175, 0.02) 1px, transparent 1px, transparent 40px);
    opacity: 0.5;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
    justify-content: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    width: 380px;
    flex-shrink: 0;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-blue);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-blue);
    transition: all var(--transition-base);
}

.project-card:hover .project-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.3);
}

.project-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.project-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    letter-spacing: -1px;
}

.project-tagline {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.project-features {
    background: rgba(248, 249, 250, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.project-features h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.project-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(0, 102, 255, 0.1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-fast);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 102, 255, 0.05);
}

.project-link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.project-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    background: var(--bg-secondary);
    position: relative;
}

.contact-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.contact-content {
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.5s;
    pointer-events: none;
}

.contact-card:hover .card-shine {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-blue);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-icon {
    transform: rotateY(360deg);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.3);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    word-break: break-word;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.contact-card p,
.contact-address {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.status-indicator,
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 64, 175, 0.08);
    border-radius: 20px;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot-green 2s ease-in-out infinite;
}

@keyframes pulse-dot-green {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-text {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.footer-brand .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
    margin-top: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   AOS Animations
   =================================== */

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

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

@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        padding: calc(var(--spacing-md) + 80px) var(--spacing-md) var(--spacing-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu backdrop overlay */
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
        pointer-events: none;
    }
    
    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem var(--spacing-md);
        text-align: center;
        border-radius: var(--radius-sm);
        margin-bottom: 0.25rem;
        font-size: 1.125rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        order: 2;
    }
    
    .mobile-menu-backdrop {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }
    
    .stat-number-hero {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        width: 100%;
        max-width: 500px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-container {
        padding: 1rem var(--spacing-sm);
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
    }
    
    .stat-number-hero {
        font-size: 2.5rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .navbar,
    .loading-screen,
    .scroll-progress,
    .cursor-dot,
    .cursor-outline,
    .hero-cta,
    .scroll-indicator,
    .mobile-menu-toggle,
    .footer {
        display: none;
    }
    
    body {
        color: black;
    }
    
    .project-card,
    .contact-card,
    .stat-card {
        page-break-inside: avoid;
    }
}

/* ===================================
   Accessibility
   =================================== */

@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;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* ===================================
   Performance Optimizations
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here in future */
}
