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

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a0000;
    --accent-color: #DC143C;
    --highlight-color: #DC143C;
    --text-color: #FFF8F0;
    --text-secondary: #F5F5DC;
    --red-color: #DC143C;
    --off-white: #FFF8F0;
    --gradient-1: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    --gradient-2: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    --gradient-3: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

html {
    min-height: 100%;
    position: relative;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    position: relative;
    padding-bottom: 0;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
    border-bottom: 2px solid var(--red-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 900;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--red-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.logo-sub {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--off-white);
    font-style: italic;
    margin-top: -5px;
}

.logo-tagline {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--off-white);
    letter-spacing: 1px;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--red-color);
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--red-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--red-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    background: #000000;
}

/* Matrix Canvas Effect */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Terminal Code Background */
.terminal-code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    padding: 2rem;
    overflow: hidden;
}

.code-line {
    position: absolute;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    animation: codeScroll 20s linear infinite;
    opacity: 0.6;
}

.code-line:nth-child(1) {
    top: 10%;
    left: 0;
    animation-delay: 0s;
    animation-duration: 25s;
}

.code-line:nth-child(2) {
    top: 20%;
    left: 0;
    animation-delay: 2s;
    animation-duration: 28s;
}

.code-line:nth-child(3) {
    top: 30%;
    left: 0;
    animation-delay: 4s;
    animation-duration: 22s;
}

.code-line:nth-child(4) {
    top: 40%;
    left: 0;
    animation-delay: 1s;
    animation-duration: 30s;
}

.code-line:nth-child(5) {
    top: 50%;
    left: 0;
    animation-delay: 3s;
    animation-duration: 26s;
}

.code-line:nth-child(6) {
    top: 60%;
    left: 0;
    animation-delay: 5s;
    animation-duration: 24s;
}

.code-line:nth-child(7) {
    top: 70%;
    left: 0;
    animation-delay: 2.5s;
    animation-duration: 27s;
}

.code-line:nth-child(8) {
    top: 80%;
    left: 0;
    animation-delay: 4.5s;
    animation-duration: 23s;
}

.code-line:nth-child(9) {
    top: 15%;
    left: 0;
    animation-delay: 1.5s;
    animation-duration: 29s;
}

.code-line:nth-child(10) {
    top: 25%;
    left: 0;
    animation-delay: 3.5s;
    animation-duration: 21s;
}

@keyframes codeScroll {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Terminal Prompt */
.terminal-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out;
}

.prompt-user {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.prompt-separator {
    color: #ffffff;
}

.prompt-path {
    color: #00aaff;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.prompt-symbol {
    color: #9d4edd;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.8);
    margin-left: 0.3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(220, 20, 60, 0.15) 25%, #0a0a0a 50%, rgba(220, 20, 60, 0.2) 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    will-change: transform;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Cybersecurity Icons Animation */
.cyber-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.cyber-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    color: var(--red-color);
    animation: float 20s infinite ease-in-out;
    padding: 15px;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
    width: 60px;
    height: 60px;
}

.cyber-icon:hover {
    opacity: 0.8;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.6);
}

.cyber-icon i {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.7));
}

.cyber-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.cyber-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.cyber-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.cyber-icon:nth-child(4) {
    top: 50%;
    right: 25%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.cyber-icon:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.cyber-icon:nth-child(6) {
    top: 70%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 21s;
}

.cyber-icon:nth-child(7) {
    top: 30%;
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 17s;
}

.cyber-icon:nth-child(8) {
    bottom: 40%;
    right: 30%;
    animation-delay: 2.5s;
    animation-duration: 20s;
}

.cyber-icon:nth-child(9) {
    top: 60%;
    left: 30%;
    animation-delay: 0.5s;
    animation-duration: 23s;
}


@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -40px) rotate(5deg) scale(1.05);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 30px) rotate(-5deg) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 40px) rotate(3deg) scale(1.02);
        opacity: 0.6;
    }
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    will-change: transform;
}

/* Parallax Classes */
.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-medium {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-fast {
    transform: translateZ(0);
    will-change: transform;
}

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

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 20, 60, 0.6);
    font-weight: 900;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 1rem;
    line-height: 1.3;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 1.3em;
    display: inline-block;
    width: 100%;
}

.typography-icon {
    display: inline-block;
    color: var(--red-color);
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-left: 0.2rem;
    vertical-align: middle;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.8), 0 0 30px rgba(220, 20, 60, 0.5);
    animation: penPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.7));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 1;
}

@keyframes penPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 3s infinite;
    display: inline-block;
    width: 100%;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 rgba(220, 20, 60, 0.5);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 rgba(220, 20, 60, 0.3), 2px 2px rgba(220, 20, 60, 0.5);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(75px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(20px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }
    15% {
        clip: rect(50px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }
    20% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }
    25% {
        clip: rect(70px, 9999px, 90px, 0);
        transform: skew(0.5deg);
    }
    30% {
        clip: rect(40px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }
    35% {
        clip: rect(15px, 9999px, 50px, 0);
        transform: skew(0.5deg);
    }
    40% {
        clip: rect(60px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(25px, 9999px, 55px, 0);
        transform: skew(0.5deg);
    }
    50% {
        clip: rect(80px, 9999px, 95px, 0);
        transform: skew(0.5deg);
    }
    55% {
        clip: rect(5px, 9999px, 35px, 0);
        transform: skew(0.5deg);
    }
    60% {
        clip: rect(45px, 9999px, 75px, 0);
        transform: skew(0.5deg);
    }
    65% {
        clip: rect(30px, 9999px, 65px, 0);
        transform: skew(0.5deg);
    }
    70% {
        clip: rect(85px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    75% {
        clip: rect(20px, 9999px, 40px, 0);
        transform: skew(0.5deg);
    }
    80% {
        clip: rect(55px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }
    85% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(65px, 9999px, 90px, 0);
        transform: skew(0.5deg);
    }
    95% {
        clip: rect(35px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }
    100% {
        clip: rect(50px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(15px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(80px, 9999px, 95px, 0);
        transform: skew(0.5deg);
    }
    15% {
        clip: rect(25px, 9999px, 50px, 0);
        transform: skew(0.5deg);
    }
    20% {
        clip: rect(70px, 9999px, 90px, 0);
        transform: skew(0.5deg);
    }
    25% {
        clip: rect(5px, 9999px, 35px, 0);
        transform: skew(0.5deg);
    }
    30% {
        clip: rect(60px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    35% {
        clip: rect(40px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }
    40% {
        clip: rect(20px, 9999px, 45px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(75px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    50% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }
    55% {
        clip: rect(55px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }
    60% {
        clip: rect(30px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }
    65% {
        clip: rect(85px, 9999px, 95px, 0);
        transform: skew(0.5deg);
    }
    70% {
        clip: rect(15px, 9999px, 40px, 0);
        transform: skew(0.5deg);
    }
    75% {
        clip: rect(50px, 9999px, 75px, 0);
        transform: skew(0.5deg);
    }
    80% {
        clip: rect(5px, 9999px, 25px, 0);
        transform: skew(0.5deg);
    }
    85% {
        clip: rect(65px, 9999px, 90px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(35px, 9999px, 65px, 0);
        transform: skew(0.5deg);
    }
    95% {
        clip: rect(20px, 9999px, 50px, 0);
        transform: skew(0.5deg);
    }
    100% {
        clip: rect(45px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }
}

#typing-text {
    display: inline-block;
    vertical-align: baseline;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes textGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.typing-cursor {
    display: inline-block;
    color: var(--red-color);
    font-weight: 100;
    animation: blink 1s infinite ease-in-out;
    margin-left: clamp(3px, 0.5vw, 5px);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.8), 0 0 20px rgba(220, 20, 60, 0.6);
    font-size: inherit;
    vertical-align: baseline;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    z-index: 1;
    transition: opacity 0.1s ease-in-out;
}

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

@keyframes blink-smooth {
    0%, 45% {
        opacity: 1;
    }
    50%, 95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    animation: terminalPulse 2s ease-in-out infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes terminalPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3), inset 0 0 20px rgba(220, 20, 60, 0.1);
    border: 2px solid var(--red-color);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6), inset 0 0 30px rgba(220, 20, 60, 0.2);
    background: rgba(220, 20, 60, 0.1);
    color: #FFFFFF;
    border-color: var(--red-color);
}

.terminal-button {
    font-size: 1rem;
    letter-spacing: 1px;
}

.button-prefix {
    color: #9d4edd;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(141px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--red-color);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.hero-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s;
}

.hero-stat-item:hover::before {
    left: 100%;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--red-color);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5), inset 0 0 20px rgba(220, 20, 60, 0.1);
    background: rgba(0, 0, 0, 0.9);
}

.terminal-box {
    border-radius: 5px;
}

.stat-prefix {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-stat-number {
    font-size: 2.4375rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Courier New', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-stat-label {
    color: #FFFFFF;
    font-size: 0.8375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--red-color);
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    font-weight: 900;
    letter-spacing: 2px;
}

/* Skills Section */
.skills-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-color), transparent);
    opacity: 0.5;
}

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

.skills-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 400;
}

/* Unique Skills Container Design */
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Add subtle background effect */
.skills-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(220, 20, 60, 0.2) 20%, 
        rgba(220, 20, 60, 0.3) 50%, 
        rgba(220, 20, 60, 0.2) 80%, 
        transparent 100%);
    opacity: 0.5;
    z-index: 0;
}

.skill-item {
    position: relative;
    z-index: 1;
}

/* Unique Skill Item Design */
.skill-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--red-color), rgba(220, 20, 60, 0.8));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 4px 4px;
}

.skill-item:hover::before {
    height: 60%;
}

.skill-item.active::before {
    height: 100%;
}

.skill-item:hover,
.skill-item.active {
    border-color: var(--red-color);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12) 0%, rgba(220, 20, 60, 0.06) 100%);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.25), 0 0 15px rgba(220, 20, 60, 0.15);
}

.skill-item:hover {
    cursor: pointer;
}

.skill-item.active {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3), 0 0 20px rgba(220, 20, 60, 0.2);
}

.skill-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0;
}

.skill-icon {
    font-size: 2.5rem;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    border-radius: 15px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.skill-item:hover .skill-icon,
.skill-item.active .skill-icon {
    transform: scale(1.08) rotate(3deg);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.25) 0%, rgba(220, 20, 60, 0.1) 70%);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.skill-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.skill-item:hover .skill-title,
.skill-item.active .skill-title {
    color: var(--red-color);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.skill-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.skill-item:hover .skill-subtitle,
.skill-item.active .skill-subtitle {
    opacity: 1;
    color: var(--text-color);
}

.skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-left: 85px;
    border-top: 1px solid transparent;
}

.skill-item.active .skill-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top-color: rgba(220, 20, 60, 0.2);
}

.skill-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}


/* Responsive Design for Skills */
@media (max-width: 768px) {
    .skill-item {
        padding: 1.5rem 1.8rem;
    }
    
    .skill-header {
        gap: 1.2rem;
    }
    
    .skill-icon {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }
    
    .skill-title {
        font-size: 1.6rem;
    }
    
    .skill-subtitle {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .skill-description {
        padding-left: 0;
        font-size: 0.95rem;
    }
    
    .skill-item.active .skill-details {
        max-height: 400px;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .skills-container {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .skill-item {
        padding: 1.2rem 1.5rem;
        border-radius: 15px;
    }
    
    .skill-header {
        gap: 1rem;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .skill-title {
        font-size: 1.4rem;
    }
    
    .skill-subtitle {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .skill-description {
        font-size: 0.9rem;
    }
    
    .skill-item.active .skill-details {
        max-height: 450px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 0.8;
        transform: translateY(0) scale(0.95);
    }
}


/* About Section */
.about-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-icon-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(220, 20, 60, 0.05));
    border: 3px solid var(--red-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.4);
    animation: iconFloat 6s ease-in-out infinite;
}

.about-icon-circle i {
    font-size: 4rem;
    color: var(--red-color);
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
}

.about-icon-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite;
}

.about-icon-ring.ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(220, 20, 60, 0.2);
    animation: ringRotate 25s linear infinite reverse;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes ringRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    transform: translateX(10px);
    border-color: var(--red-color);
    background: rgba(220, 20, 60, 0.1);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.about-feature-item i {
    color: var(--red-color);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.about-feature-item span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.about-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-color), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.about-text:hover::before {
    transform: scaleX(1);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid var(--red-color);
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-badge i {
    font-size: 1rem;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 900;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-color), var(--red-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.about-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
}

.about-stat-mini {
    text-align: center;
    padding: 1rem;
}

.about-stat-mini-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red-color);
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.about-stat-mini-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Our Story Section  test*/
.story-section {
    background: var(--primary-color);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-timeline {
    position: relative;
    padding: 2rem 0;
    min-height: 100px;
}

.story-content .story-timeline::before,
.story-section .story-timeline::before,
.story-timeline::before {
    content: '' !important;
    position: absolute !important;
    left: -5% !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: linear-gradient(to bottom, 
        var(--red-color) 0%, 
        var(--red-color) 20%, 
        rgba(220, 20, 60, 0.8) 40%,
        rgba(220, 20, 60, 0.6) 60%,
        rgba(220, 20, 60, 0.4) 80%,
        rgba(220, 20, 60, 0.2) 100%) !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    -moz-transform: translateX(-50%) !important;
    -ms-transform: translateX(-50%) !important;
    -o-transform: translateX(-50%) !important;
    z-index: 0 !important;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    right: auto !important;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--red-color);
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--red-color);
    position: relative;
    z-index: 2;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: -5%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--red-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.8);
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -58px;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
    border-color: var(--red-color);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--red-color);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    font-weight: 900;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}


/* Achievements Section */
.achievements-section {
    background: var(--secondary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
    border-color: var(--red-color);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--red-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotate(5deg);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--red-color);
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.achievement-label {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    background: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-button-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 15px 40px;
    background: var(--red-color);
    color: var(--off-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
    border: 2px solid var(--red-color);
}

.view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.6);
    background: transparent;
    color: var(--red-color);
}

.view-all-button i {
    transition: transform 0.3s ease;
}

.view-all-button:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
    border-top: 2px solid var(--red-color);
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: auto;
    z-index: 100;
    display: block;
    visibility: visible;
    opacity: 1;
    clear: both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo .logo-main {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    margin-bottom: 0.3rem;
}

.footer-logo .logo-sub {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 400;
    color: var(--off-white);
    font-style: italic;
    margin-bottom: 0.2rem;
}

.footer-logo .logo-tagline {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    font-weight: 700;
    color: var(--off-white);
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-nav h3 {
    color: var(--red-color);
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    line-height: 1.3;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.6rem, 2vw, 0.9rem) clamp(1rem, 3vw, 1.8rem);
    align-items: start;
    justify-items: center;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.footer-nav-links li {
    margin: 0;
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(0.7rem, 2vw, 1rem);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 44px;
    width: 100%;
}

.footer-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red-color);
    transition: width 0.3s ease;
}

.footer-nav-links a:hover {
    color: var(--red-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.05);
}

@media (hover: none) {
    .footer-nav-links a:active {
        color: var(--red-color);
        transform: translateX(3px);
        background: rgba(220, 20, 60, 0.1);
    }
}

.footer-nav-links a:hover::before {
    width: 30px;
}

.footer-nav-links a:focus {
    outline: 2px solid var(--red-color);
    outline-offset: 2px;
    color: var(--red-color);
}

.footer-nav-links a:focus-visible {
    outline: 2px solid var(--red-color);
    outline-offset: 2px;
}

.footer-social h3,
.footer-contact h3 {
    color: var(--red-color);
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    line-height: 1.3;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(45px, 5vw, 55px);
    height: clamp(45px, 5vw, 55px);
    min-width: 44px;
    min-height: 44px;
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid var(--red-color);
    border-radius: 50%;
    color: var(--red-color);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    touch-action: manipulation;
}

.social-icons a:hover {
    background: var(--red-color);
    color: var(--off-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.5);
}

.social-icons a:focus {
    outline: 2px solid var(--red-color);
    outline-offset: 2px;
}

.social-icons a:active {
    transform: translateY(-2px) scale(1.05);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 2vw, 0.9rem);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1.2rem, 3vw, 1.6rem);
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    touch-action: manipulation;
    word-break: break-word;
}

.footer-email i {
    color: var(--red-color);
    font-size: 1.2rem;
}

.footer-email:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: var(--red-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.footer-email:focus {
    outline: 2px solid var(--red-color);
    outline-offset: 2px;
    background: rgba(220, 20, 60, 0.15);
}

.footer-email:active {
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    margin: 0;
    line-height: 1.6;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Floating Chat Menu (Chatbot, WhatsApp, Messenger) - All Icons Inside Main Button */
.floating-chat-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-menu-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-color) 0%, #8B0000 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(220, 20, 60, 0.4),
        0 0 30px rgba(220, 20, 60, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 3;
}

.chat-menu-toggle i {
    font-size: 1.8rem;
    color: var(--off-white);
    transition: transform 0.3s ease;
}

.chat-menu-toggle.active {
    background: linear-gradient(135deg, #8B0000 0%, var(--red-color) 100%);
}

.chat-menu-toggle.active i {
    transform: rotate(45deg);
}

.chat-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.chat-menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.chat-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 30px rgba(220, 20, 60, 0.6),
        0 0 40px rgba(220, 20, 60, 0.4);
}

/* Icons Container - Inside on desktop, beside on mobile */
.chat-menu-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chat-menu-item {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--off-white);
    text-decoration: none;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: all;
    z-index: 2;
}

/* Mobile: Icons appear beside main button in circular pattern */
@media (max-width: 768px) {
    .chat-menu-items {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
    }

    .chat-menu-item {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%) scale(0);
        pointer-events: none;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        min-width: 44px;
        min-height: 44px;
    }

    .chat-menu-items.active .chat-menu-item {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: all;
    }

    /* Ensure icons stay within viewport */
    .floating-chat-menu {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }

    /* Circular positioning around main button - Equal gaps between all icons */
    .chatbot-item {
        top: -60px;
        left: 0;
        background: var(--red-color);
    }

    .whatsapp-item {
        top: -25px;
        left: -60px;
        background: var(--red-color);
    }

    .messenger-item {
        top: 25px;
        left: -60px;
        background: var(--red-color);
    }

    /* Stagger animation */
    .chat-menu-items.active .chatbot-item {
        transition-delay: 0.1s;
    }

    .chat-menu-items.active .whatsapp-item {
        transition-delay: 0.2s;
    }

    .chat-menu-items.active .messenger-item {
        transition-delay: 0.3s;
    }

    .chatbot-item:hover,
    .whatsapp-item:hover,
    .messenger-item:hover {
        background: #8B0000;
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 
            0 6px 20px rgba(220, 20, 60, 0.6),
            0 0 30px rgba(220, 20, 60, 0.4);
    }
}

.chat-menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.chat-menu-item:hover::before {
    width: 100%;
    height: 100%;
}

.chat-menu-item:hover {
    transform: scale(1.2);
    z-index: 3;
}

.chat-menu-item i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.chat-item-label {
    position: absolute;
    right: 45px;
    background: rgba(10, 10, 10, 0.95);
    color: var(--off-white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    border: 1px solid var(--red-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

.chat-menu-item:hover .chat-item-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Positioning Icons Inside Main Button - Clustered Design */
.chatbot-item {
    background: var(--red-color);
    top: 8px;
    left: 8px;
    box-shadow: 
        0 2px 8px rgba(220, 20, 60, 0.4),
        0 0 10px rgba(220, 20, 60, 0.2);
}

.chatbot-item:hover {
    background: #8B0000;
    box-shadow: 
        0 4px 15px rgba(220, 20, 60, 0.6),
        0 0 20px rgba(220, 20, 60, 0.4);
}

.whatsapp-item {
    background: var(--red-color);
    top: 8px;
    right: 8px;
    box-shadow: 
        0 2px 8px rgba(220, 20, 60, 0.4),
        0 0 10px rgba(220, 20, 60, 0.2);
}

.whatsapp-item:hover {
    background: #8B0000;
    box-shadow: 
        0 4px 15px rgba(220, 20, 60, 0.6),
        0 0 20px rgba(220, 20, 60, 0.4);
}

.messenger-item {
    background: var(--red-color);
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 2px 8px rgba(220, 20, 60, 0.4),
        0 0 10px rgba(220, 20, 60, 0.2);
}

.messenger-item:hover {
    background: #8B0000;
    transform: translateX(-50%) scale(1.2);
    box-shadow: 
        0 4px 15px rgba(220, 20, 60, 0.6),
        0 0 20px rgba(220, 20, 60, 0.4);
}

/* Chatbot Modal */
.chatbot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.chatbot-modal.active {
    opacity: 1;
    visibility: visible;
}

.chatbot-container {
    width: 100%;
    max-width: 420px;
    height: 600px;
    max-height: 90vh;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(220, 20, 60, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--red-color);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.chatbot-modal.active .chatbot-container {
    transform: scale(1) translateY(0);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--red-color) 0%, #8B0000 100%);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-header-left i {
    font-size: 1.8rem;
    color: var(--off-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chatbot-header-left h3 {
    margin: 0;
    color: var(--off-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.chatbot-header-left p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.chatbot-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-color);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--red-color);
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message.bot-message {
    align-self: flex-start;
}

.chatbot-message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chatbot-message i {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bot-message i {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: var(--off-white);
}

.user-message i {
    background: linear-gradient(135deg, var(--red-color) 0%, #8B0000 100%);
    color: var(--off-white);
}

.message-content {
    max-width: 75%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    position: relative;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--red-color) 0%, #8B0000 100%);
    color: var(--off-white);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chatbot-input-area {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input-area input:focus {
    border-color: var(--red-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.2);
}

.chatbot-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-color) 0%, #8B0000 100%);
    border: none;
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.chatbot-input-area button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

.chatbot-input-area button:active {
    transform: scale(0.95);
}

/* Responsive Styles for Chat Menu */
@media (max-width: 768px) {
    .floating-chat-menu {
        bottom: 20px;
        right: 20px;
    }

    .chat-menu-toggle {
        width: 60px;
        height: 60px;
    }

    .chat-menu-toggle i {
        font-size: 1.5rem;
    }

    .chat-item-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    .chatbot-item .chat-item-label {
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
    }

    .chatbot-item:hover .chat-item-label {
        transform: translateX(-50%);
    }

    .whatsapp-item .chat-item-label {
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 10px;
    }

    .whatsapp-item:hover .chat-item-label {
        transform: translateY(-50%);
    }

    .messenger-item .chat-item-label {
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 10px;
    }

    .messenger-item:hover .chat-item-label {
        transform: translateY(-50%);
    }

    .chatbot-container {
        max-width: 95%;
        height: 85vh;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .floating-chat-menu {
        bottom: 15px;
        right: 15px;
    }

    .chat-menu-toggle {
        width: 55px;
        height: 55px;
    }

    .chat-menu-toggle i {
        font-size: 1.3rem;
    }

    .chat-menu-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* Equal 25px vertical spacing for smaller screens */
    .chatbot-item {
        top: -60px;
    }

    .whatsapp-item {
        top: -25px;
        left: -60px;
    }

    .messenger-item {
        top: 25px;
        left: -60px;
    }

    .chat-item-label {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
        max-width: 110px;
    }

    .chatbot-container {
        max-width: 100%;
        height: 90vh;
        border-radius: 15px;
        margin: 0 10px;
    }

    .chatbot-header {
        padding: 1rem 1.2rem;
    }

    .chatbot-header-left h3 {
        font-size: 1.1rem;
    }

    .chatbot-header-left p {
        font-size: 0.8rem;
    }

    .chatbot-messages {
        padding: 1rem;
    }

    .chatbot-input-area {
        padding: 1rem;
    }

    .chatbot-input-area input {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .chat-menu-toggle {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(220, 20, 60, 0.3);
        tap-highlight-color: rgba(220, 20, 60, 0.3);
    }

    .chat-menu-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(220, 20, 60, 0.3);
        tap-highlight-color: rgba(220, 20, 60, 0.3);
    }

    .chat-menu-item:active {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }

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

    /* Remove hover effects on touch devices */
    .chat-menu-toggle:hover {
        transform: scale(1);
    }

    .chat-menu-item:hover {
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .floating-chat-menu {
        bottom: 25px;
        right: 25px;
    }
}

/* Responsive Design */
/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet View (769px to 1024px) - Full Page Burger Menu */
@media (min-width: 769px) and (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
        padding: 0;
        gap: 0;
        border: none;
        backdrop-filter: blur(20px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-30px);
        pointer-events: none;
        display: flex;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1.8rem 2rem;
        width: 100%;
        font-size: 1.8rem;
        font-weight: 700;
        transition: all 0.3s ease;
        color: var(--text-color);
        border-bottom: 1px solid rgba(220, 20, 60, 0.1);
        position: relative;
        overflow: hidden;
        letter-spacing: 1px;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(220, 20, 60, 0.15), transparent);
        transition: width 0.3s ease;
        z-index: -1;
    }

    .nav-menu a:hover {
        color: var(--red-color);
        background: rgba(220, 20, 60, 0.08);
        text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
        transform: translateX(15px);
        padding-left: 2.5rem;
    }

    .nav-menu a:hover::before {
        width: 100%;
    }

    .nav-menu a:active {
        background: rgba(220, 20, 60, 0.2);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Footer adjustments for tablet */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2.5rem, 4vw, 3rem);
    }
    
    .footer-nav-links {
        max-width: 280px;
    }
    
    .social-icons {
        gap: clamp(1.2rem, 3vw, 1.5rem);
    }
}

/* Mobile and Tablet (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        gap: 1rem;
        border-top: 2px solid var(--red-color);
        backdrop-filter: blur(10px);
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }
    
    .nav-menu a:active {
        background: rgba(220, 20, 60, 0.1);
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 1px;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .hero-stat-item {
        padding: 1.2rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-stat-label {
        font-size: 0.8rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievement-card {
        padding: 2rem;
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .achievement-number {
        font-size: 3rem;
    }

    .achievement-label {
        font-size: 1.1rem;
    }

    .achievement-description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-slider-wrapper {
        padding: 0 20px;
    }


    .skills-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-icon-wrapper {
        width: 150px;
        height: 150px;
    }

    .about-icon-circle {
        width: 120px;
        height: 120px;
    }

    .about-icon-circle i {
        font-size: 3rem;
    }

    .about-icon-ring {
        width: 140px;
        height: 140px;
    }

    .about-icon-ring.ring-2 {
        width: 150px;
        height: 150px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-stats-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 2.5rem);
        text-align: center;
    }
    
    .footer-nav-links {
        justify-items: center;
        gap: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.2rem);
        max-width: 100%;
        width: 100%;
    }
    
    .footer-nav-links a {
        font-size: clamp(0.9rem, 2.5vw, 0.98rem);
        padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(0.6rem, 2vw, 0.9rem);
    }
    
    .footer-social h3,
    .footer-contact h3,
    .footer-nav h3 {
        font-size: clamp(1rem, 3vw, 1.1rem);
        margin-bottom: clamp(1rem, 3vw, 1.3rem);
    }
    
    .social-icons {
        gap: clamp(1rem, 3vw, 1.3rem);
        justify-content: center;
    }
    
    .social-icons a {
        width: clamp(44px, 5vw, 50px);
        height: clamp(44px, 5vw, 50px);
        font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    }
    
    .footer-email {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        padding: clamp(0.7rem, 2vw, 0.85rem) clamp(1rem, 3vw, 1.4rem);
        max-width: 100%;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-icon-wrapper {
        width: 150px;
        height: 150px;
    }

    .about-icon-circle {
        width: 120px;
        height: 120px;
    }

    .about-icon-circle i {
        font-size: 3rem;
    }

    .about-icon-ring {
        width: 140px;
        height: 140px;
    }

    .about-icon-ring.ring-2 {
        width: 150px;
        height: 150px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-stats-mini {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .story-timeline::before {
        left: 30px !important;
        transform: none !important;
        width: 3px;
        top: 20px;
        bottom: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 4rem;
        margin-bottom: 3rem;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
        padding: 0.5rem;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .timeline-year::after {
        right: -28px;
        left: auto;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
    }
    
    .timeline-content p {
        font-size: 1rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo-sub {
        font-size: 0.8rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .terminal-prompt {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stat-item {
        padding: 1rem;
    }
    
    .stat-prefix {
        font-size: 0.7rem;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-container {
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1.2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .achievement-number {
        font-size: 2.5rem;
    }
    
    .achievement-label {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-stats-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
        text-align: center;
    }
    
    .footer-nav-links {
        justify-items: center;
        gap: clamp(0.5rem, 2vw, 0.7rem) clamp(0.8rem, 2.5vw, 1rem);
        max-width: 100%;
        width: 100%;
    }
    
    .footer-nav-links a {
        font-size: clamp(0.85rem, 2.5vw, 0.92rem);
        padding: clamp(0.45rem, 1.5vw, 0.55rem) clamp(0.5rem, 2vw, 0.8rem);
        min-height: 42px;
    }
    
    .footer-social h3,
    .footer-contact h3,
    .footer-nav h3 {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        margin-bottom: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .social-icons {
        gap: clamp(0.8rem, 2.5vw, 1.1rem);
    }
    
    .social-icons a {
        width: clamp(42px, 5vw, 48px);
        height: clamp(42px, 5vw, 48px);
        font-size: clamp(1rem, 2.5vw, 1.15rem);
    }
    
    .footer-email {
        font-size: clamp(0.85rem, 2.5vw, 0.98rem);
        padding: clamp(0.65rem, 2vw, 0.8rem) clamp(0.9rem, 3vw, 1.2rem);
        max-width: 100%;
    }
    
    .footer-bottom p {
        font-size: clamp(0.75rem, 2vw, 0.88rem);
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: clamp(1rem, 8vw, 1.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1rem);
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cyber-icon {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .cyber-icon i {
        font-size: 1.3rem;
    }
    
    .hero-stat-item {
        padding: 0.8rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .achievement-card {
        padding: 1.2rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(1rem, 8vw, 1.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1rem);
        padding: 0 0.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

/* GPU Acceleration for Animations */
.hero-content,
.hero-title,
.hero-subtitle,
.hero-stats,
.hero-stat-item,
.cyber-icon,
.skill-item,
.achievement-card,
.gallery-item,
.team-member,
.stat-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth Transitions */
a, button, .hero-stat-item, .achievement-card, .gallery-item, 
.team-member, .stat-card, .skill-item, .tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .hero-stat-item:active,
    .achievement-card:active,
    .gallery-item:active,
    .team-member:active,
    .stat-card:active,
    .cta-button:active,
    .tab-button:active {
        transform: scale(0.98);
    }
}

/* Scroll Animation Base Styles */
.skill-card,
.achievement-card,
.gallery-item,
.about-text,
.timeline-item,
.hero-stat-item,
.stat-card,
.gallery-stat-card,
.section-title,
.team-member,
.tab-button,
.hierarchy-level-title {
    will-change: transform, opacity;
}

/* Ensure smooth transitions for animated elements */
[style*="opacity: 0"] {
    pointer-events: none;
}

[style*="opacity: 1"],
.animate-in {
    pointer-events: auto;
}

/* Reduce motion for 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;
    }
    
    .hero-background,
    .cyber-icons,
    .cyber-icon,
    .matrix-canvas,
    .code-line,
    .floating-gallery-icon,
    .terminal-code-bg {
        animation: none !important;
    }
    
    .typing-cursor,
    .typography-icon {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Mobile optimizations - reduce parallax intensity */
@media (max-width: 768px) {
    .hero-background,
    .cyber-icons {
        transform: none !important;
    }
    
    /* Optimize animations for mobile */
    .cyber-icon {
        animation-duration: 15s !important;
    }
    
    .code-line {
        animation-duration: 15s !important;
    }
    
    /* Reduce matrix canvas opacity on mobile for performance */
    .matrix-canvas {
        opacity: 0.1 !important;
    }
    
    /* Touch-friendly button sizes */
    .cta-button,
    .primary-button,
    .secondary-button,
    .tab-button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Additional Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        padding: 2rem;
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .achievement-number {
        font-size: 2.8rem;
    }

    .achievement-label {
        font-size: 1.1rem;
    }

    .achievement-description {
        font-size: 0.9rem;
    }

    .view-all-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .skill-card,
    .achievement-card {
        padding: 1.5rem;
    }

    .about-text {
        padding: 2rem;
    }

    .about-main {
        gap: 2rem;
    }

    .about-icon-wrapper {
        width: 120px;
        height: 120px;
    }

    .about-icon-circle {
        width: 100px;
        height: 100px;
    }

    .about-icon-circle i {
        font-size: 2.5rem;
    }

    .about-icon-ring {
        width: 110px;
        height: 110px;
    }

    .about-icon-ring.ring-2 {
        width: 120px;
        height: 120px;
    }

    .about-features {
        gap: 1rem;
    }

    .about-feature-item {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-stats-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-stat-mini-number {
        font-size: 1.5rem;
    }

    .about-stat-mini-label {
        font-size: 0.75rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .story-timeline::before {
        left: 25px !important;
        width: 2.5px;
        top: 20px;
        bottom: 20px;
    }

    .timeline-item {
        padding-left: 3.5rem;
        margin-bottom: 2.5rem;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .timeline-year::after {
        right: -25px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skill-card,
    .achievement-card {
        padding: 1.2rem;
    }

    .skills-slider-wrapper {
        padding: 0 15px;
    }

    .skill-slide {
        min-width: 85%;
        padding: 2rem 1.5rem;
    }

    .skill-icon {
        font-size: 3rem;
    }

    .skill-icon-bg {
        width: 90px;
        height: 90px;
    }

    .skill-content h3 {
        font-size: 1.5rem;
    }

    .skill-content p {
        font-size: 0.9rem;
    }

    .skills-subtitle {
        font-size: 1rem;
    }

    .skills-header {
        margin-bottom: 3rem;
    }
}

/* Additional Responsive Breakpoints */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .matrix-canvas,
    #matrix-canvas,
    #team-matrix-canvas,
    #story-matrix-canvas,
    #gallery-matrix-canvas,
    #contact-matrix-canvas,
    #services-matrix-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .matrix-canvas,
    .cyber-icons,
    .terminal-code-bg,
    .code-line,
    .hero-background {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        height: auto;
    }
}

/* Universal Page Header Responsive Styles */
@media (max-width: 768px) {
    /* All page headers */
    .services-page-header,
    .gallery-page-header,
    .contact-page-header,
    .team-page-header,
    .story-page-header {
        min-height: 70vh !important;
        padding: 120px 0 60px !important;
    }
    
    /* Terminal prompts */
    .terminal-prompt,
    .terminal-command {
        font-size: 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Hero titles */
    .hero-title,
    .team-hero-title,
    .gallery-hero-title,
    .contact-hero-title,
    .services-hero-title,
    .story-hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Hero subtitles */
    .hero-subtitle,
    .team-hero-subtitle,
    .gallery-hero-subtitle,
    .contact-hero-subtitle,
    .hero-description {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
        margin-bottom: 2rem !important;
    }
    
    /* Stats grids */
    .team-stats,
    .gallery-stats,
    .contact-quick-stats,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Preview cards */
    .team-preview {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .preview-connector {
        transform: rotate(90deg) !important;
    }
    
    .preview-leader,
    .preview-senior,
    .preview-members {
        min-width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Terminal code background - reduce on mobile */
    .terminal-code-bg,
    .story-terminal-code-bg {
        opacity: 0.05 !important;
        font-size: 0.7rem !important;
    }
    
    /* Cyber icons - reduce on mobile */
    .cyber-icons,
    .story-cyber-icons {
        opacity: 0.3 !important;
    }
    
    .cyber-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    /* All page headers */
    .services-page-header,
    .gallery-page-header,
    .contact-page-header,
    .team-page-header,
    .story-page-header {
        min-height: 60vh !important;
        padding: 100px 0 50px !important;
    }
    
    /* Further reduce animations on small mobile */
    .matrix-canvas {
        opacity: 0.08 !important;
    }
    
    .terminal-code-bg {
        display: none !important;
    }
    
    .cyber-icons {
        display: none !important;
    }
    
    /* Compact stats */
    .stat-card,
    .quick-stat-item,
    .gallery-stat-item {
        padding: 1rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .stat-icon,
    .quick-stat-icon,
    .gallery-stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .stat-number,
    .quick-stat-value,
    .gallery-stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label,
    .quick-stat-label,
    .gallery-stat-label {
        font-size: 0.7rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .cta-button,
    .primary-button,
    .secondary-button,
    .tab-button,
    .back-button,
    .submit-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
    
    /* Remove hover-only effects, add active states */
    .hero-stat-item:active,
    .achievement-card:active,
    .gallery-item:active,
    .team-member:active,
    .stat-card:active {
        transform: scale(0.98);
    }
    
    /* Improve tap feedback */
    a, button {
        -webkit-tap-highlight-color: rgba(220, 20, 60, 0.2);
    }
}

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        scroll-margin-top: 80px;
    }
}

