/* CSS Variables for Theme */
:root {
    /* Light Mode Colors - Enhanced Cyber Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e8ecf1;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --accent-primary: #ffd700;
    --accent-secondary: #0066ff;
    --accent-cyber: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #0066ff 50%, #00d4ff 100%);
    --accent-gradient-alt: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --border-color: #cbd5e1;
    --glow-color: rgba(0, 102, 255, 0.3);
    --glow-color-strong: rgba(0, 212, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(0, 102, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 102, 255, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 102, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #a0aec0;
    --accent-primary: #ffd700;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #3b82f6 100%);
    --border-color: #2d3748;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Animated Circuit Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Containers that include section-header use wider max-width */
.container:has(.section-header) {
    max-width: 1800px;
}

/* Director section: container */
.director .container {
    max-width: 1600px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .navbar {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: block;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--accent-cyber);
    border-radius: 2px;
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-link:hover::before {
    width: 100%;
    opacity: 0.3;
}

.theme-toggle {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-cyber));
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--glow-color);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 25px var(--glow-color-strong);
}

.theme-toggle .theme-icon {
    position: relative;
    z-index: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #fffef0 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: -1;
    overflow: hidden;
}

/* Full-size Cyber Security Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0f1729; /* fallback when image is not loaded (e.g. file://) */
    background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1920&q=85');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark overlay so hero text stays clear and readable */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.88) 0%, rgba(20, 30, 60, 0.85) 50%, rgba(10, 15, 40, 0.9) 100%);
    z-index: 1;
}

[data-theme="dark"] .hero-bg-overlay {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.92) 0%, rgba(15, 20, 45, 0.9) 50%, rgba(5, 10, 25, 0.94) 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 102, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 102, 255, 0.05) 50%, transparent 70%),
        radial-gradient(circle at 20% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Animated Code Lines Effect */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 102, 255, 0.03) 2px,
            rgba(0, 102, 255, 0.03) 4px
        );
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Hero text on dark overlay: light colors for contrast */
.hero .hero-title {
    color: #f5f5f5;
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.hero .hero-badge {
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
}

.hero .stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.hero .hero-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.hero .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    text-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

/* Typing animation: static "Securing" + rotating words */
.hero-title-static {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.hero-typing-wrap {
    display: inline;
}

.hero-typing-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 300;
    color: var(--accent-primary);
    -webkit-text-fill-color: initial;
    animation: cursorBlink 0.9s step-end infinite;
    vertical-align: 0.02em;
}

@keyframes cursorBlink {
    0%, 60% { opacity: 1; }
    61%, 100% { opacity: 0; }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.6;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 15px var(--glow-color), var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color-strong), var(--shadow-xl);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px var(--glow-color);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #fff;
}

.btn-secondary:hover::before {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    position: relative;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-5px);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #ffffff 50%, var(--bg-secondary) 100%);
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 102, 255, 0.02) 10px,
            rgba(0, 102, 255, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--glow-color);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--glow-color), var(--shadow-xl);
    border-color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(0, 102, 255, 0.02) 100%);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 16px var(--glow-color));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
    text-shadow: 0 0 8px var(--glow-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
    color: var(--accent-cyber);
    transform: scale(1.2);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--glow-color);
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 25px var(--glow-color-strong);
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.highlight-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.highlight-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Director Section */
.director {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #ffffff 50%, var(--bg-secondary) 100%);
    position: relative;
}

.director::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(0, 102, 255, 0.02) 10px,
            rgba(0, 102, 255, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
}

.director-content {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.director-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.director-card.full-info {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 1fr;
    text-align: left;
    align-items: stretch;
    padding: 2.5rem;
}

.director-card.full-info .director-image-container {
    justify-content: center;
}

.director-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.director-card:hover::before {
    transform: scaleX(1);
}

.director-card:hover {
    box-shadow: 0 20px 50px var(--glow-color), var(--shadow-xl);
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

.director-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.director-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--glow-color), var(--shadow-lg);
    position: relative;
    transition: all 0.4s ease;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 30px var(--glow-color), var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 50px var(--glow-color-strong), var(--shadow-xl);
    }
}

.director-card:hover .director-image-placeholder {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--glow-color-strong), var(--shadow-xl);
}

.director-initials {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
}

.director-card.full-info .director-initials {
    font-size: 4rem;
}

.director-initials {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
}

.director-card.full-info .director-initials {
    font-size: 4rem;
}

.director-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
}

.director-card.full-info .director-info {
    height: 100%;
}

.director-card.full-info .director-social {
    margin-top: auto;
}

.director-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.director-title {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.director-bio {
    color: var(--text-secondary);
    line-height: 1.8;
}

.director-expertise h4,
.director-achievements h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.expertise-item {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 12px var(--glow-color);
    transform: translateX(5px);
}

.expertise-item:hover::before {
    transform: scaleY(1);
}

.expertise-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.director-achievements ul {
    list-style: none;
    padding-left: 0;
}

.director-achievements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    position: relative;
}

.director-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.director-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--glow-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.3));
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 12px var(--glow-color));
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.company-detail {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-form-container:hover::before {
    transform: scaleX(1);
}

.contact-form-container:hover {
    box-shadow: 0 10px 30px var(--glow-color), var(--shadow-lg);
    border-color: var(--accent-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--glow-color), 0 0 20px rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Cyber Particles Animation */
.cyber-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyber);
    animation: float 15s infinite ease-in-out;
    opacity: 0.6;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 85%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.particle:nth-child(6) {
    left: 20%;
    animation-delay: 5s;
    animation-duration: 17s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) translateX(50px) scale(1);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-secondary);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--accent-secondary);
    box-shadow: 0 4px 15px var(--glow-color);
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

[data-theme="dark"] .hero-badge {
    background: rgba(10, 10, 10, 0.9);
    border-color: var(--accent-cyber);
    color: var(--accent-cyber);
}

/* Enhanced Section Transitions */
.services,
.about,
.director,
.contact {
    position: relative;
    z-index: 1;
}

.services::before,
.about::before,
.director::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.3;
}

/* Code-like Terminal Effect */
.hero-content::after {
    content: '>_';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    color: var(--accent-cyber);
    opacity: 0.2;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 0.2;
    }
    51%, 100% {
        opacity: 0.05;
    }
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-widget .whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-widget .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--bg-primary, #1a1a1a);
    color: var(--text-primary, #fff);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.2));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .hero-content::after {
        display: none;
    }

    .cyber-particles {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-content {
        grid-template-columns: 1fr;
    }

    .director-card.full-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .director-card.full-info .director-image-container {
        justify-content: center;
    }

    .director-image-container {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-content {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .service-card,
    .director-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .director-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-content {
        grid-template-columns: 1fr;
    }

    .director-card.full-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .director-card.full-info .director-image-container {
        justify-content: center;
    }
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
