/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5DD5C8;
    --secondary-color: #2C3E50;
    --accent-color: #00D9FF;
    --dark-bg: #0F172A;
    --darker-bg: #020617;
    --text-dark: #1a1a1a;
    --text-light: #94A3B8;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #5DD5C8 0%, #00D9FF 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    zoom: 85%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 998;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    contain: layout;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    transition: padding 0.3s ease;
    position: relative;
    z-index: 1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Move logo to top left corner when sticky */
.nav-wrapper.sticky-nav-wrapper {
    justify-content: flex-start;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(93, 213, 200, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 2;
    opacity: 1;
}

/* Desktop-only sticky behavior - no fade */
@media (min-width: 769px) {
    /* Sticky logo - instantly at left with smaller size */
    .nav-wrapper.sticky-nav-wrapper .logo {
        position: absolute;
        left: -12.75rem;
        padding: 0.5rem 1rem;
    }

    .nav-wrapper.sticky-nav-wrapper .logo img {
        height: 40px;
    }
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.2), rgba(0, 217, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(93, 213, 200, 0.3);
    border-color: rgba(93, 213, 200, 0.4);
}

.logo:hover::before {
    opacity: 1;
}

.logo img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(93, 213, 200, 0.9));
    transform: scale(1.05);
}

.nav-menu {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #E2E8F0;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.1), rgba(0, 217, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, rgba(93, 213, 200, 0.8), rgba(0, 217, 255, 0.8));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: rgba(93, 213, 200, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2.5px;
    background: #E2E8F0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(93, 213, 200, 0.1);
    border: 2px solid rgba(93, 213, 200, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(93, 213, 200, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Light Navbar Theme */
.navbar.light-theme {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.light-theme::before {
    background: linear-gradient(180deg, rgba(93, 213, 200, 0.02) 0%, transparent 100%);
}

.navbar.light-theme.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.navbar.light-theme .nav-link {
    color: var(--text-dark);
}

.navbar.light-theme .nav-link:hover,
.navbar.light-theme .nav-link.active {
    color: var(--primary-color);
}

.navbar.light-theme .nav-link::before {
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.08), rgba(0, 217, 255, 0.04));
}

.navbar.light-theme .logo {
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.08) 0%, rgba(0, 217, 255, 0.04) 100%);
    border-color: rgba(93, 213, 200, 0.15);
}

.navbar.light-theme .logo:hover {
    box-shadow: 0 8px 24px rgba(93, 213, 200, 0.2);
    border-color: rgba(93, 213, 200, 0.3);
}

.navbar.light-theme .logo::before {
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.15), rgba(0, 217, 255, 0.08));
}

.navbar.light-theme .logo img {
    filter: none;
}

.navbar.light-theme .logo:hover img {
    filter: drop-shadow(0 0 15px rgba(93, 213, 200, 0.4));
}

.navbar.light-theme .mobile-menu-toggle span {
    background: var(--text-dark);
}

.navbar.light-theme .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.3);
}

.navbar.light-theme .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.2);
    border-color: var(--secondary-color);
}

.navbar.light-theme .theme-icon {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 1;
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: gridFlow 20s linear infinite;
    z-index: 0;
}

@keyframes gridFlow {
    0% {
        background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    }
    100% {
        background-position: 99px 99px, 99px 99px, 19px 19px, 19px 19px;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.code-snippet {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.15;
    user-select: none;
    animation: floatCode 8s ease-in-out infinite;
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.25;
    }
}

.code-1 {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.code-2 {
    top: 18%;
    right: 12%;
    animation-delay: 2s;
}

.code-3 {
    bottom: 28%;
    left: 10%;
    animation-delay: 4s;
}

.code-4 {
    bottom: 18%;
    right: 8%;
    animation-delay: 6s;
}

.code-5 {
    top: 35%;
    left: 5%;
    animation-delay: 1s;
    font-size: 1.5rem;
}

.code-6 {
    top: 45%;
    right: 6%;
    animation-delay: 3s;
    font-size: 1.5rem;
}

.code-7 {
    top: 60%;
    left: 15%;
    animation-delay: 5s;
    font-size: 1.5rem;
}

.code-8 {
    top: 70%;
    right: 18%;
    animation-delay: 7s;
    font-size: 1.5rem;
}

/* Tech Icons */
.tech-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: techIconFloat 10s ease-in-out infinite;
}

@keyframes techIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(10deg) scale(1.1);
        opacity: 0.3;
    }
}

.icon-1 {
    top: 25%;
    left: 20%;
    animation-delay: 0.5s;
}

.icon-2 {
    top: 40%;
    right: 15%;
    animation-delay: 2.5s;
}

.icon-3 {
    top: 55%;
    left: 25%;
    animation-delay: 4.5s;
}

.icon-4 {
    top: 15%;
    right: 25%;
    animation-delay: 1.5s;
}

.icon-5 {
    bottom: 25%;
    left: 18%;
    animation-delay: 3.5s;
}

.icon-6 {
    bottom: 15%;
    right: 22%;
    animation-delay: 5.5s;
}

/* Tech Symbols */
.tech-symbol {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.1;
    animation: symbolPulse 12s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.15;
    }
}

.symbol-1 {
    top: 20%;
    left: 12%;
    animation-delay: 0s;
}

.symbol-2 {
    top: 50%;
    right: 8%;
    animation-delay: 2s;
}

.symbol-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 4s;
}

.symbol-4 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.symbol-5 {
    bottom: 20%;
    left: 30%;
    animation-delay: 3s;
}

.symbol-6 {
    top: 65%;
    right: 12%;
    animation-delay: 5s;
}


.hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    overflow: visible;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-color) 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 30px rgba(93, 213, 200, 0.4));
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Sticky title state when scrolling */
.hero-title.sticky-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0;
    z-index: 1000;
    white-space: nowrap;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(93, 213, 200, 0.6));
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons::before {
    content: '';
    flex: 1;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(93, 213, 200, 0.3));
}

.hero-buttons::after {
    content: '';
    flex: 1;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(93, 213, 200, 0.3));
}

.hero-nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 1;
}

/* Sticky nav menu state - DESKTOP ONLY */
@media (min-width: 769px) {
    /* Add fade transition on desktop only */
    .hero-nav-menu {
        transition: opacity 0.15s ease;
    }

    /* Fade out effect before position change - desktop only */
    .hero-nav-menu.fade-out {
        opacity: 0;
    }

    .hero-nav-menu.sticky-nav {
        position: fixed;
        top: 20px;
        right: 2rem;
        margin: 0;
        z-index: 1000;
        gap: 0.8rem;
    }

    .hero-nav-menu.sticky-nav .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        /* No transition for size/padding - instant change */
        transition: background 0.3s ease,
                    color 0.3s ease,
                    box-shadow 0.3s ease,
                    border-color 0.3s ease,
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Prevent hover transform during sticky state to avoid jank */
    .hero-nav-menu.sticky-nav .nav-link:hover {
        transform: translateY(-2px) scale(1);
    }
}

.hero-nav-menu .nav-link {
    text-decoration: none;
    color: #5DD5C8;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* Remove padding and font-size transitions - only animate hover effects */
    transition: background 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.9rem 1.8rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(93, 213, 200, 0.3);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(93, 213, 200, 0.4),
                inset 0 0 20px rgba(93, 213, 200, 0.05);
    cursor: pointer;
}

/* Tech grid pattern */
.hero-nav-menu .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(93, 213, 200, 0.05) 8px,
            rgba(93, 213, 200, 0.05) 9px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(93, 213, 200, 0.05) 8px,
            rgba(93, 213, 200, 0.05) 9px
        );
    opacity: 0.5;
    transition: all 0.4s ease;
    z-index: 0;
}

/* Glow effect layer */
.hero-nav-menu .nav-link::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg,
                rgba(93, 213, 200, 0.4),
                rgba(102, 126, 234, 0.4));
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: -1;
}

.hero-nav-menu .nav-link:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    color: #0F172A;
    box-shadow: 0 20px 60px rgba(93, 213, 200, 0.6),
                0 0 40px rgba(93, 213, 200, 0.5),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: #5DD5C8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-nav-menu .nav-link:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.hero-nav-menu .nav-link:hover::after {
    opacity: 1;
}

/* Active state */
.hero-nav-menu .nav-link.active {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    color: #0F172A;
    box-shadow: 0 15px 45px rgba(93, 213, 200, 0.5),
                0 0 30px rgba(93, 213, 200, 0.4),
                inset 0 0 25px rgba(255, 255, 255, 0.15);
    border-color: #5DD5C8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-nav-menu .nav-link.active::before {
    opacity: 0.8;
    transform: scale(1.05);
}

.hero-nav-menu .nav-link.active::after {
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn:active::after {
    transform: scale(1.5);
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg,
                rgba(93, 213, 200, 1) 0%,
                rgba(0, 217, 255, 1) 50%,
                rgba(93, 213, 200, 1) 100%);
    background-size: 200% 200%;
    color: #0F172A;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(93, 213, 200, 0.4),
                0 0 0 0 rgba(93, 213, 200, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(93, 213, 200, 0.6),
                0 0 30px rgba(93, 213, 200, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.btn-secondary {
    background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.12) 0%,
                rgba(255, 255, 255, 0.08) 100%);
    color: var(--white);
    border: 2px solid;
    border-image: linear-gradient(135deg,
                  rgba(93, 213, 200, 0.6),
                  rgba(0, 217, 255, 0.6)) 1;
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0.15) 100%);
    border-image: linear-gradient(135deg,
                  rgba(93, 213, 200, 1),
                  rgba(0, 217, 255, 1)) 1;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(93, 213, 200, 0.3),
                0 0 30px rgba(93, 213, 200, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Sections */
section {
    padding: 100px 20px;
}

/* Add scroll margin for anchor navigation */
section[id] {
    scroll-margin-top: 100px;
}

/* Remove gap between Services and About sections */
#services {
    padding-bottom: 50px;
}

#about {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Remove gap between About and Technologies sections */
#technologies {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Remove gap between Technologies and Contact sections */
#contact {
    padding-top: 50px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

/* About section title styling to match */
.about .section-title {
    margin-top: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Services Section */
.services {
    background:
        linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
    contain: layout style;
    isolation: isolate;
}

/* Animated grid background */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: gridFlow 20s linear infinite;
    z-index: 0;
}

@keyframes gridFlow {
    0% {
        background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    }
    100% {
        background-position: 99px 99px, 99px 99px, 19px 19px, 19px 19px;
    }
}


.services .container {
    position: relative;
    z-index: 1;
}

/* Services Header Wrapper */
.services-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Services Title Creative Effects */
.services-title {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.5));
    border-radius: 12px;
    border: 1px solid rgba(93, 213, 200, 0.3);
    box-shadow:
        0 0 15px rgba(93, 213, 200, 0.2),
        inset 0 0 15px rgba(93, 213, 200, 0.05);
    margin: 0;
    text-align: center;
    flex-shrink: 0;
}

.services-title::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(45deg, #5DD5C8, #667eea, #5DD5C8, #667eea);
    background-size: 400% 400%;
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
}

.services-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(93, 213, 200, 0.03) 2px,
            rgba(93, 213, 200, 0.03) 4px
        );
    pointer-events: none;
}

.title-bracket {
    color: #5DD5C8;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(93, 213, 200, 0.4);
    display: inline-block;
    margin: 0 0.4rem;
}

.title-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #5DD5C8 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    font-weight: 900;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.title-text::before {
    content: 'Our Services';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    filter: blur(4px);
    z-index: -1;
}

.title-cursor {
    color: #5DD5C8;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 0.3rem;
    text-shadow: 0 0 8px rgba(93, 213, 200, 0.5);
}

/* Animations */
@keyframes titlePulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(93, 213, 200, 0.2),
            inset 0 0 15px rgba(93, 213, 200, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(93, 213, 200, 0.3),
            0 0 40px rgba(102, 126, 234, 0.2),
            inset 0 0 20px rgba(93, 213, 200, 0.08);
        transform: scale(1.01);
    }
}

@keyframes gradientRotate {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes bracketFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(93, 213, 200, 0.4);
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 15px rgba(93, 213, 200, 0.6);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.services .section-title {
    color: var(--white);
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Services Subtitle as Button */
.services-subtitle {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(93, 213, 200, 0.3);
    box-shadow:
        0 0 15px rgba(93, 213, 200, 0.15),
        inset 0 0 15px rgba(93, 213, 200, 0.05);
    margin: 0;
    max-width: 600px;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.services-subtitle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, rgba(93, 213, 200, 0.3), rgba(102, 126, 234, 0.3));
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.services-subtitle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(93, 213, 200, 0.25),
        inset 0 0 20px rgba(93, 213, 200, 0.08);
    border-color: rgba(93, 213, 200, 0.5);
}

.services-subtitle:hover::before {
    opacity: 1;
}

/* Services Subtitle Tech Highlights */
.services-subtitle .tech-highlight {
    position: relative;
    color: #5DD5C8;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.15), rgba(102, 126, 234, 0.15));
    border: 1px solid rgba(93, 213, 200, 0.4);
    box-shadow:
        0 0 20px rgba(93, 213, 200, 0.3),
        inset 0 0 20px rgba(93, 213, 200, 0.1);
    transition: all 0.4s ease;
    display: inline-block;
    animation: techGlow 3s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95em;
}

.services-subtitle .tech-highlight::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: linear-gradient(45deg, #5DD5C8, #667eea, #5DD5C8, #667eea);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

.services-subtitle .tech-highlight::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #5DD5C8;
    border-radius: 50%;
    box-shadow: 0 0 10px #5DD5C8;
    animation: blink 2s ease-in-out infinite;
}

.services-subtitle .tech-highlight:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.25), rgba(102, 126, 234, 0.25));
    border-color: #5DD5C8;
    box-shadow:
        0 0 30px rgba(93, 213, 200, 0.6),
        0 5px 20px rgba(93, 213, 200, 0.4),
        inset 0 0 30px rgba(93, 213, 200, 0.2);
    color: #fff;
}

.services-subtitle .tech-highlight:hover::before {
    opacity: 1;
}

@keyframes techGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(93, 213, 200, 0.3),
            inset 0 0 20px rgba(93, 213, 200, 0.1);
    }
    50% {
        box-shadow:
            0 0 35px rgba(93, 213, 200, 0.5),
            0 0 50px rgba(93, 213, 200, 0.3),
            inset 0 0 30px rgba(93, 213, 200, 0.2);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(93, 213, 200, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Circuit pattern background */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(93, 213, 200, 0.03) 10px,
            rgba(93, 213, 200, 0.03) 11px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(93, 213, 200, 0.03) 10px,
            rgba(93, 213, 200, 0.03) 11px
        );
    opacity: 0.5;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Animated gradient overlay */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(93, 213, 200, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 70px rgba(93, 213, 200, 0.3),
        0 0 40px rgba(93, 213, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(93, 213, 200, 0.6);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 8px 25px rgba(93, 213, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon glow effect */
.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, #5DD5C8, #667eea);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.8;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 15px 40px rgba(93, 213, 200, 0.5),
        0 0 30px rgba(93, 213, 200, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FFFFFF 0%, #5DD5C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover h3 {
    transform: translateX(5px);
    letter-spacing: 0.02em;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-weight: 400;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

/* About Section */
.about {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: gridFlow 20s linear infinite;
    z-index: 0;
}



.about .container {
    position: relative;
    z-index: 1;
}

/* About Header Wrapper */
.about-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

/* About Title Creative Effects */
.about-title {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.5));
    border-radius: 12px;
    border: 1px solid rgba(93, 213, 200, 0.3);
    box-shadow:
        0 0 15px rgba(93, 213, 200, 0.2),
        inset 0 0 15px rgba(93, 213, 200, 0.05);
    margin: 0;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.about-title .expand-icon {
    display: none;
}

.about-title::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(45deg, #5DD5C8, #667eea, #5DD5C8, #667eea);
    background-size: 400% 400%;
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
}

.about-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(93, 213, 200, 0.03) 2px,
            rgba(93, 213, 200, 0.03) 4px
        );
    pointer-events: none;
}

/* About Subtitle as Button */
.about-subtitle {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(93, 213, 200, 0.3);
    box-shadow:
        0 0 15px rgba(93, 213, 200, 0.15),
        inset 0 0 15px rgba(93, 213, 200, 0.05);
    margin: 0;
    max-width: 600px;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: left;
}

.about-subtitle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, rgba(93, 213, 200, 0.3), rgba(102, 126, 234, 0.3));
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.about-subtitle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(93, 213, 200, 0.25),
        inset 0 0 20px rgba(93, 213, 200, 0.08);
    border-color: rgba(93, 213, 200, 0.5);
}

.about-subtitle:hover::before {
    opacity: 1;
}

/* About Subtitle Tech Highlights */
.about-subtitle .tech-highlight {
    position: relative;
    color: #5DD5C8;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.15), rgba(102, 126, 234, 0.15));
    border: 1px solid rgba(93, 213, 200, 0.4);
    box-shadow:
        0 0 20px rgba(93, 213, 200, 0.3),
        inset 0 0 20px rgba(93, 213, 200, 0.1);
    transition: all 0.4s ease;
    display: inline-block;
    animation: techGlow 3s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95em;
}

.about-subtitle .tech-highlight::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: linear-gradient(45deg, #5DD5C8, #667eea, #5DD5C8, #667eea);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

.about-subtitle .tech-highlight::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #5DD5C8;
    border-radius: 50%;
    box-shadow: 0 0 10px #5DD5C8;
    animation: blink 2s ease-in-out infinite;
}

.about-subtitle .tech-highlight:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.25), rgba(102, 126, 234, 0.25));
    border-color: #5DD5C8;
    box-shadow:
        0 0 30px rgba(93, 213, 200, 0.6),
        0 5px 20px rgba(93, 213, 200, 0.4),
        inset 0 0 30px rgba(93, 213, 200, 0.2);
    color: #fff;
}

.about-subtitle .tech-highlight:hover::before {
    opacity: 1;
}

.about .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
}

/* About section collapsible - default to expanded on desktop */
.about-collapsible {
    max-height: none;
    overflow: visible;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 1rem;
}

.about-text p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.15rem;
}

/* Tech Highlight Text */
.tech-highlight-text {
    position: relative;
}

/* Typing Animation Text */
.typing-text {
    overflow: hidden;
    white-space: normal;
    min-height: 3em;
}

.highlight-keyword {
    position: relative;
    color: #5DD5C8;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(93, 213, 200, 0.1);
    border: 1px solid rgba(93, 213, 200, 0.3);
    transition: all 0.3s ease;
    cursor: default;
    animation: keywordGlow 3s ease-in-out infinite;
}

.highlight-keyword:hover {
    background: rgba(93, 213, 200, 0.2);
    border-color: rgba(93, 213, 200, 0.6);
    box-shadow: 0 0 20px rgba(93, 213, 200, 0.4);
    transform: translateY(-1px);
}

.highlight-keyword::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.2), rgba(102, 126, 234, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-keyword:hover::before {
    opacity: 1;
}

@keyframes keywordGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(93, 213, 200, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(93, 213, 200, 0.6);
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    padding: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(93, 213, 200, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(93, 213, 200, 0.3);
}

/* Stat Header */
.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(93, 213, 200, 0.2);
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #5DD5C8;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    background: rgba(93, 213, 200, 0.15);
    border: 1px solid rgba(93, 213, 200, 0.3);
    border-radius: 4px;
}

/* Stat Content */
.stat-content {
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
}

/* Progress Bar */
.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5DD5C8, #667eea);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(93, 213, 200, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent
    );
    animation: progressLoading 1.5s ease-in-out infinite;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(93, 213, 200, 0.3) 50%,
        transparent 100%
    );
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressLoading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Stat Footer */
.stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(93, 213, 200, 0.1);
    font-size: 0.75rem;
}

.stat-status {
    font-family: 'Courier New', monospace;
    color: #27c93f;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.stat-uptime {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: visible;
}

/* Processor Chip */
.processor-chip {
    position: relative;
    width: 350px;
    height: 350px;
    background:
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%),
        radial-gradient(circle at 30% 30%, rgba(93, 213, 200, 0.1), transparent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow:
        0 0 0 3px #2a2a2a,
        0 0 0 6px rgba(93, 213, 200, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(93, 213, 200, 0.05);
}

@keyframes chipFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 3px #2a2a2a,
            0 0 0 6px rgba(93, 213, 200, 0.3),
            0 15px 40px rgba(0, 0, 0, 0.7),
            inset 0 0 80px rgba(93, 213, 200, 0.05);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
        box-shadow:
            0 0 0 3px #2a2a2a,
            0 0 0 6px rgba(93, 213, 200, 0.6),
            0 25px 60px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(93, 213, 200, 0.3),
            inset 0 0 100px rgba(93, 213, 200, 0.1);
    }
}

@keyframes chipRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.processor-chip::before {
    content: '';
    position: absolute;
    inset: 20px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(93, 213, 200, 0.1) 10px, rgba(93, 213, 200, 0.1) 11px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(93, 213, 200, 0.1) 10px, rgba(93, 213, 200, 0.1) 11px);
    border: 1px solid rgba(93, 213, 200, 0.2);
    pointer-events: none;
}

.processor-chip:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 3px #2a2a2a,
        0 0 0 6px rgba(93, 213, 200, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(93, 213, 200, 0.4),
        inset 0 0 80px rgba(93, 213, 200, 0.1);
}

.processor-chip:active {
    transform: scale(0.98);
    box-shadow:
        0 0 0 3px #2a2a2a,
        0 0 0 6px rgba(93, 213, 200, 0.7),
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(93, 213, 200, 0.6),
        inset 0 0 100px rgba(93, 213, 200, 0.2);
}

/* Chip Core (center area with branding) */
.chip-core {
    position: relative;
    z-index: 2;
    text-align: center;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.1), rgba(102, 126, 234, 0.1));
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(93, 213, 200, 0.3);
    backdrop-filter: blur(10px);
}

.chip-brand {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(93, 213, 200, 0.5);
    margin-bottom: 8px;
}

.chip-model {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.chip-specs {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(93, 213, 200, 0.8);
    letter-spacing: 0.1em;
}

/* Chip Pins (connection points around the chip) */
.chip-pins {
    position: absolute;
    background: linear-gradient(90deg,
        transparent,
        rgba(93, 213, 200, 0.3) 5%,
        rgba(93, 213, 200, 0.5) 15%,
        rgba(93, 213, 200, 0.5) 85%,
        rgba(93, 213, 200, 0.3) 95%,
        transparent
    );
    z-index: 1;
    animation: pinsGlow 2s ease-in-out infinite;
}

@keyframes pinsGlow {
    0%, 100% {
        opacity: 0.7;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
}

.chip-pins::before,
.chip-pins::after {
    content: '';
    position: absolute;
    background: rgba(93, 213, 200, 0.4);
    box-shadow: 0 0 10px rgba(93, 213, 200, 0.6);
}

.chip-pins-top,
.chip-pins-bottom {
    left: 15%;
    right: 15%;
    height: 8px;
}

.chip-pins-top {
    top: -12px;
    background: linear-gradient(0deg,
        rgba(93, 213, 200, 0.5),
        rgba(93, 213, 200, 0.3) 50%,
        transparent
    );
}

.chip-pins-top::before,
.chip-pins-top::after {
    width: 3px;
    height: 12px;
    top: 0;
}

.chip-pins-top::before { left: 20%; }
.chip-pins-top::after { right: 20%; }

.chip-pins-bottom {
    bottom: -12px;
    background: linear-gradient(180deg,
        rgba(93, 213, 200, 0.5),
        rgba(93, 213, 200, 0.3) 50%,
        transparent
    );
}

.chip-pins-bottom::before,
.chip-pins-bottom::after {
    width: 3px;
    height: 12px;
    bottom: 0;
}

.chip-pins-bottom::before { left: 20%; }
.chip-pins-bottom::after { right: 20%; }

.chip-pins-left,
.chip-pins-right {
    top: 15%;
    bottom: 15%;
    width: 8px;
}

.chip-pins-left {
    left: -12px;
    background: linear-gradient(90deg,
        transparent,
        rgba(93, 213, 200, 0.3) 50%,
        rgba(93, 213, 200, 0.5)
    );
}

.chip-pins-left::before,
.chip-pins-left::after {
    width: 12px;
    height: 3px;
    left: 0;
}

.chip-pins-left::before { top: 20%; }
.chip-pins-left::after { bottom: 20%; }

.chip-pins-right {
    right: -12px;
    background: linear-gradient(270deg,
        transparent,
        rgba(93, 213, 200, 0.3) 50%,
        rgba(93, 213, 200, 0.5)
    );
}

.chip-pins-right::before,
.chip-pins-right::after {
    width: 12px;
    height: 3px;
    right: 0;
}

.chip-pins-right::before { top: 20%; }
.chip-pins-right::after { bottom: 20%; }

/* Enhanced pin glow on hover */
.processor-chip:hover .chip-pins {
    animation: pinsGlowIntense 1s ease-in-out infinite;
}

@keyframes pinsGlowIntense {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
    50% {
        opacity: 1;
        filter: brightness(2);
    }
}


/* Technologies Section */
.technologies {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: gridFlow 20s linear infinite;
    z-index: 0;
}


.technologies .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.technologies .section-title {
    color: var(--white);
}

.technologies .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.tech-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    flex: 0 0 550px;
}

.tech-item {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5DD5C8;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(93, 213, 200, 0.4),
        inset 0 0 20px rgba(93, 213, 200, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(93, 213, 200, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tech grid pattern */
.tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(93, 213, 200, 0.05) 8px,
            rgba(93, 213, 200, 0.05) 9px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(93, 213, 200, 0.05) 8px,
            rgba(93, 213, 200, 0.05) 9px
        );
    opacity: 0.5;
    transition: all 0.4s ease;
    z-index: 0;
}

/* Animated gradient overlay */
.tech-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(93, 213, 200, 0.1),
        transparent
    );
    transform: rotate(0deg);
    transition: all 0.6s ease;
    z-index: 0;
    opacity: 0;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    color: #0F172A;
    box-shadow:
        0 20px 60px rgba(93, 213, 200, 0.6),
        0 0 40px rgba(93, 213, 200, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: #5DD5C8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tech-item:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.tech-item:hover::after {
    opacity: 1;
    transform: rotate(180deg);
}

/* Futuristic corner accents */
.tech-item > span {
    position: relative;
    z-index: 1;
}

.tech-item > span::before,
.tech-item > span::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-item > span::before {
    top: -1rem;
    left: -0.5rem;
    border-right: none;
    border-bottom: none;
}

.tech-item > span::after {
    bottom: -1rem;
    right: -0.5rem;
    border-left: none;
    border-top: none;
}

.tech-item:hover > span::before,
.tech-item:hover > span::after {
    width: 12px;
    height: 12px;
    opacity: 1;
}

/* Tech Item Active State (when connected to code box) */
.tech-item.tech-active {
    transform: translateY(-5px) scale(1.05);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow:
        0 15px 40px rgba(93, 213, 200, 0.6),
        0 0 30px rgba(93, 213, 200, 0.5),
        inset 0 0 20px rgba(93, 213, 200, 0.3);
    border-color: #5DD5C8;
    animation: techPulse 1s ease-in-out infinite;
    z-index: -1;
}

.tech-item.tech-active::before {
    opacity: 1;
}

.tech-item.tech-active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid #5DD5C8;
    animation: techRipple 1.5s ease-out infinite;
    pointer-events: none;
}

@keyframes techPulse {
    0%, 100% {
        box-shadow:
            0 15px 40px rgba(93, 213, 200, 0.6),
            0 0 30px rgba(93, 213, 200, 0.5),
            inset 0 0 20px rgba(93, 213, 200, 0.3);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(93, 213, 200, 0.8),
            0 0 50px rgba(93, 213, 200, 0.8),
            inset 0 0 30px rgba(93, 213, 200, 0.5);
    }
}

@keyframes techRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 213, 200, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: gridFlow 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}


.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact .section-title {
    color: var(--white);
}

.terminal-prompt {
    color: #5DD5C8;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Terminal Style Contact Form */
.contact-terminal {
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(93, 213, 200, 0.3);
}

.terminal-header {
    background: #2d3748;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27c93f;
}

.terminal-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.contact-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-form.blink {
    animation: blinkForm 0.6s ease-in-out;
}

.contact-form.highlight {
    /* Animation disabled */
    /* animation: highlightFormPulse 3s ease-in-out infinite; */
    /* box-shadow: 0 0 30px 5px rgba(93, 213, 200, 0.4),
                inset 0 0 20px rgba(93, 213, 200, 0.1); */
    /* border: 2px solid rgba(93, 213, 200, 0.5); */
}

@keyframes highlightFormPulse {
    0%, 100% {
        box-shadow: 0 0 30px 5px rgba(93, 213, 200, 0.4),
                    inset 0 0 20px rgba(93, 213, 200, 0.1);
        border-color: rgba(93, 213, 200, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px 10px rgba(93, 213, 200, 0.7),
                    inset 0 0 35px rgba(93, 213, 200, 0.25);
        border-color: rgba(93, 213, 200, 0.9);
        transform: scale(1.01);
    }
}

@keyframes blinkForm {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(93, 213, 200, 0);
    }
    16.67% {
        opacity: 0.3;
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(93, 213, 200, 0.6);
    }
    33.33% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(93, 213, 200, 0);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(93, 213, 200, 0.6);
    }
    66.67% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(93, 213, 200, 0);
    }
    83.33% {
        opacity: 0.3;
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(93, 213, 200, 0.6);
    }
}

body.blur-transition {
    overflow: hidden;
}

body.blur-transition .navbar,
body.blur-transition .hero,
body.blur-transition .services,
body.blur-transition .about,
body.blur-transition .technologies,
body.blur-transition .footer {
    filter: blur(10px) brightness(0.8);
    transition: filter 0.5s ease;
    transform: scale(1.05);
    overflow: hidden;
}

body.blur-transition #contact {
    filter: none;
    position: relative;
    z-index: 1000;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.prompt-symbol {
    color: #5DD5C8;
    font-weight: 700;
}

.label-text {
    color: #667eea;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(93, 213, 200, 0.3);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5DD5C8;
    background: rgba(93, 213, 200, 0.05);
    box-shadow: 0 0 0 3px rgba(93, 213, 200, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-terminal {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Contact Dashboard */
.contact-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-header {
    background: rgba(93, 213, 200, 0.1);
    border: 1px solid rgba(93, 213, 200, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: #5DD5C8;
    letter-spacing: 0.1em;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(93, 213, 200, 0.2);
    border-radius: 8px;
    padding: 1.3rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(93, 213, 200, 0.5);
    background: rgba(93, 213, 200, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(93, 213, 200, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.card-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-status {
    color: rgba(93, 213, 200, 0.7);
    font-size: 0.8rem;
}

/* Tech Metrics */
.tech-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: rgba(93, 213, 200, 0.05);
    border: 1px solid rgba(93, 213, 200, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5DD5C8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: -200px;
    right: 2rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(93, 213, 200, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 350px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(93, 213, 200, 0.3),
        inset 0 0 20px rgba(93, 213, 200, 0.1);
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    top: 2rem;
    animation: slideInBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInBounce {
    0% {
        top: -200px;
        opacity: 0;
    }
    70% {
        top: 2.5rem;
    }
    100% {
        top: 2rem;
        opacity: 1;
    }
}

.toast-icon {
    background: linear-gradient(135deg, #5DD5C8, #667eea);
    color: #0F172A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(93, 213, 200, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(93, 213, 200, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(93, 213, 200, 0.8);
    }
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #5DD5C8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(93, 213, 200, 0.5);
}

.toast-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 20px 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-width: 400px;
    height: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(93, 213, 200, 0.05);
    border: 1px solid rgba(93, 213, 200, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: rgba(93, 213, 200, 0.1);
    border-color: rgba(93, 213, 200, 0.4);
    transform: translateX(5px);
}

.footer-contact-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 213, 200, 0.1);
    border-radius: 10px;
}

.footer-contact-details {
    flex: 1;
}

.footer-contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-details a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-contact-details a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-contact-details p {
    color: #E2E8F0;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
}

/* Floating Tech Elements Animation */
@keyframes floatTech {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.floating-tech-element {
    will-change: transform, opacity;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* TABLET: 769px - 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-image {
        justify-content: center;
        margin: 0 auto;
    }

    .processor-chip {
        width: 300px;
        height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* MOBILE: ≤ 768px */
@media (max-width: 768px) {
    /* Global mobile adjustments */
    html {
        scroll-padding-top: 90px;
    }

    body {
        overflow-x: hidden;
        zoom: 100%;
    }

    section[id] {
        scroll-margin-top: 90px;
    }

    /* Remove ALL section borders on mobile */
    section,
    .hero,
    .services,
    .about,
    .technologies,
    .contact {
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        outline: none !important;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.2rem;
    }

    .navbar {
        padding: 0;
        z-index: 9999 !important;
        isolation: isolate;
        will-change: transform !important;
        transform: translate3d(0, 0, 0) !important;
        transition: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        contain: layout style paint;
        backface-visibility: hidden;
        perspective: none !important;
    }

    .nav-wrapper {
        padding: 1rem 15px;
        transition: none !important;
        will-change: transform !important;
        transform: translate3d(0, 0, 0) !important;
        position: relative;
        backface-visibility: hidden;
    }

    .logo {
        will-change: transform !important;
        transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden;
    }

    .logo img {
        height: 40px;
        max-width: 100%;
        will-change: transform !important;
        transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .hero-content {
        padding: 20px 0;
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 2rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Hero navigation menu - VERTICAL on mobile when at top */
    .hero-nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 1rem;
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-nav-menu .nav-link {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        padding: 0.8rem 1.2rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        display: block;
    }

    /* Particle canvas */
    #particle-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    /* Mobile sticky navigation - HORIZONTAL on scroll */
    .hero-nav-menu.sticky-nav {
        /* Change to horizontal layout */
        flex-direction: row;
        flex-wrap: nowrap;

        /* Positioning - start from bottom off-screen */
        position: fixed;
        top: auto !important;
        bottom: 1rem;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(150px);

        /* Sizing - fixed before animation */
        width: calc(100% - 1.5rem);
        max-width: 95vw;
        min-height: 44px;
        margin: 0 !important;
        z-index: 1000;

        /* Styling */
        background: linear-gradient(135deg,
                    rgba(15, 23, 42, 0.98) 0%,
                    rgba(30, 41, 59, 0.95) 100%);
        backdrop-filter: blur(20px);
        padding: 0.5rem 0.5rem;
        border-radius: 20px;
        border: 1px solid rgba(93, 213, 200, 0.3);
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5),
                    0 0 20px rgba(93, 213, 200, 0.2);
        gap: 0.3rem;

        /* Alignment */
        justify-content: center;
        align-items: center;

        /* Initially hidden below screen */
        opacity: 0;
        visibility: visible;
        will-change: transform, opacity;
        transition: none !important;

        /* Animation - slide up from bottom with delay to allow layout calculation */
        animation: slideUpFromBottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
    }

    @keyframes slideUpFromBottom {
        from {
            transform: translateX(-50%) translateY(150px);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }

    .hero-nav-menu.sticky-nav .nav-link {
        /* Pre-calculated sizes to prevent layout shift */
        padding: 0.4rem 0.45rem;
        font-size: clamp(0.55rem, 2.5vw, 0.65rem);
        width: auto;
        min-width: 50px;
        min-height: 32px;
        flex: 0 1 auto;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.01em;
    }

    /* Further reduce button size on very small screens */
    @media (max-width: 380px) {
        .hero-nav-menu.sticky-nav .nav-link {
            padding: 0.35rem 0.4rem;
            font-size: 0.52rem;
            letter-spacing: 0.01em;
            min-width: 45px;
        }

        .hero-nav-menu.sticky-nav {
            gap: 0.25rem;
            padding: 0.4rem 0.5rem;
        }
    }

    /* Logo positioning for mobile - centered */
    .nav-wrapper.sticky-nav-wrapper {
        justify-content: center;
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    .nav-wrapper.sticky-nav-wrapper .logo {
        position: relative;
        left: auto;
        padding: 0.4rem 0.8rem;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    .nav-wrapper.sticky-nav-wrapper .logo img {
        height: 35px;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    /* Services Section */
    .services {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .services-header-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        text-align: center;
        word-wrap: break-word;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 10px !important;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        text-align: center;
        padding: 0 10px;
        line-height: 1.6;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Remove borders from all section headers on mobile */
    .about-title,
    .services-title,
    .about-subtitle,
    .services-subtitle {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 10px !important;
    }

    .about-title::before,
    .about-title::after,
    .about-subtitle::before,
    .about-subtitle::after,
    .services-title::before,
    .services-title::after,
    .services-subtitle::before,
    .services-subtitle::after {
        display: none !important;
    }

    .services-subtitle {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }

    .service-card {
        padding: 1.5rem;
        width: 100%;
    }

    /* Disable shaking animations on 3D carousel cards */
    .service-card-3d::before {
        animation: none !important;
    }

    .card-cloud[data-position="0"],
    .card-web[data-position="0"],
    .card-mobile[data-position="0"],
    .card-devops[data-position="0"],
    .card-ai[data-position="0"],
    .card-security[data-position="0"] {
        animation: none !important;
    }

    .card-security[data-position="0"]::after {
        animation: none !important;
        opacity: 0.7;
        transform: scale(1);
    }

    .service-card-3d:hover .service-icon {
        animation: none !important;
        transform: scale(1.05);
    }

    .service-card-3d:hover .service-icon::before {
        animation: none !important;
        opacity: 0.4;
    }

    .service-card-3d:hover .service-icon svg {
        animation: none !important;
    }

    .service-card-3d:hover h3 {
        animation: none !important;
    }

    .service-card-3d:hover {
        transform: translateY(-3px);
    }

    .service-card-3d[data-position="0"]:hover {
        transform: translateX(0) translateZ(20px) rotateY(0deg) scale(1.01);
    }

    /* About Section */
    .about {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .about-header-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        padding: 0 10px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 10px;
    }

    .about-text {
        width: 100%;
    }

    .about-text p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .about-title {
        width: 100%;
        text-align: center;
        cursor: default;
        position: relative;
        user-select: none;
    }

    .about-title .expand-icon {
        display: none;
    }

    .about-subtitle {
        width: 100%;
        text-align: center;
        max-width: 100%;
    }

    .about-collapsible {
        max-height: none;
        overflow: visible;
    }

    .services-subtitle {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Stats Section */
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }

    .stat {
        padding: 1.5rem;
        width: 100%;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .stat-label {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    /* About Image & Processor Chip */
    .about-image {
        min-height: 300px;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
        padding: 20px 10px;
    }

    .processor-chip {
        width: clamp(250px, 70vw, 280px);
        height: clamp(250px, 70vw, 280px);
    }

    .chip-core {
        padding: 1.5rem;
    }

    .chip-brand {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .chip-model {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
    }

    .chip-specs {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
    }

    /* Technologies Section */
    .technologies {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .tech-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
        max-width: 100%;
        justify-items: stretch;
        padding: 0 10px;
    }

    .tech-item {
        padding: 0.9rem 0.7rem;
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Disable shaking animations on mobile */
    .tech-item.tech-active {
        animation: none !important;
        transform: translateY(-3px) scale(1.02);
    }

    .tech-item.tech-active::after {
        animation: none !important;
        opacity: 0.7;
        transform: scale(1);
    }

    .tech-item:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .tech-item:hover::before {
        transform: scale(1.05);
    }

    .tech-item:hover::after {
        transform: rotate(90deg);
    }

    .tech-item span {
        font-size: inherit;
    }

    .code-terminal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 400px !important;
    }

    .code-terminal-box > div:last-child {
        padding: 1rem !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .code-terminal-box pre {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }

    .technologies .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .technologies .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    /* Contact Section */
    .contact {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .contact-header {
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    .contact .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        word-wrap: break-word;
    }

    .contact .section-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }

    .contact-terminal {
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        width: 100%;
        padding: 0;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-label {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        margin-bottom: 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0.9rem;
        width: 100%;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .btn-terminal {
        width: 100%;
        padding: 1rem;
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .contact-dashboard {
        width: 100%;
        padding: 1.5rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.2rem;
        width: 100%;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-label {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .card-value {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        word-wrap: break-word;
    }

    .card-status {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }

    .tech-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric {
        padding: 1rem;
    }

    .metric-value {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .metric-label {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
        overflow-x: hidden;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }

    .footer-logo {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .footer-logo img {
        max-width: 250px;
    }

    .footer-contact {
        width: 100%;
    }

    .footer-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-contact-item:hover {
        transform: translateY(-3px);
    }

    .footer-contact-icon {
        font-size: 2.5rem;
        min-width: 60px;
        height: 60px;
    }

    .footer-contact-details {
        width: 100%;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    section {
        padding: 70px 20px;
    }

    /* Toast Notification */
    .toast {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: calc(100% - 2rem);
        width: auto;
        padding: 1rem;
    }

    .toast.show {
        top: 1rem;
    }

    .toast-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .toast-title {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .toast-message {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    /* Buttons */
    /* Keep original button styles on mobile - just adjust sizing */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: clamp(0.9rem, 3vw, 1rem);
        white-space: nowrap;
    }

    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 150px;
    }

    /* Hide ALL icons on mobile - text only */
    .btn-icon,
    .card-icon,
    .stat-icon,
    .tech-icon,
    .tech-symbol,
    .service-icon {
        display: none !important;
    }

    /* Services Carousel - Mobile */
    .services-carousel-container {
        height: 450px;
        perspective: 1200px;
        padding: 0 40px;
        contain: layout style paint;
        will-change: contents;
    }

    .service-card-3d {
        width: 280px;
        height: 380px;
        padding: 2rem;
    }

    /* Adjusted 3D positions for mobile */
    .service-card-3d[data-position="1"] {
        transform: translateX(300px) translateZ(-250px) rotateY(-20deg) scale(0.8);
    }

    .service-card-3d[data-position="-1"] {
        transform: translateX(-300px) translateZ(-250px) rotateY(20deg) scale(0.8);
    }

    .service-card-3d[data-position="2"] {
        transform: translateX(550px) translateZ(-400px) rotateY(-30deg) scale(0.65);
    }

    .service-card-3d[data-position="-2"] {
        transform: translateX(-550px) translateZ(-400px) rotateY(30deg) scale(0.65);
    }

    .service-card-3d h3 {
        font-size: 1.3rem;
    }

    .service-card-3d p {
        font-size: 0.9rem;
    }

    .service-card-3d .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card-3d .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .services-carousel-container .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* SMALL MOBILE: ≤ 480px */
@media (max-width: 480px) {
    /* Remove ALL section borders on small mobile */
    section,
    .hero,
    .services,
    .about,
    .technologies,
    .contact {
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        outline: none !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        line-height: 1.25;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    /* Hero nav menu - even more compact vertical */
    .hero-nav-menu {
        gap: 0.8rem;
        padding: 0 15px;
    }

    .hero-nav-menu .nav-link {
        font-size: clamp(0.8rem, 3.2vw, 0.95rem);
        padding: 0.7rem 1rem;
    }

    /* Sticky nav - ultra compact horizontal */
    .hero-nav-menu.sticky-nav {
        width: calc(100% - 1rem);
        padding: 0.5rem 0.6rem;
        gap: 0.3rem;
    }

    .hero-nav-menu.sticky-nav .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
        letter-spacing: 0.02em;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.2rem;
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .about-image {
        min-height: 300px;
        justify-content: center;
        margin: 0 auto;
    }

    .processor-chip {
        width: 250px;
        height: 250px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        justify-items: stretch;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }

    .tech-item {
        padding: 0.8rem 0.6rem;
        font-size: clamp(0.7rem, 3.5vw, 0.8rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Disable shaking animations on small mobile */
    .tech-item.tech-active {
        animation: none !important;
        transform: translateY(-2px) scale(1.01);
    }

    .tech-item.tech-active::after {
        animation: none !important;
        opacity: 0.6;
        transform: scale(1);
    }

    .tech-item:hover {
        transform: translateY(-3px) scale(1.01);
    }

    .tech-item:hover::before {
        transform: scale(1.03);
    }

    .tech-item:hover::after {
        transform: rotate(60deg);
    }

    .toast {
        padding: 1rem;
        min-width: auto;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .toast-title {
        font-size: 0.85rem;
    }

    .toast-message {
        font-size: 0.8rem;
    }

    .code-terminal-box {
        max-height: 350px !important;
    }

    .code-terminal-box > div:last-child {
        padding: 0.8rem !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .code-terminal-box pre {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .technologies .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .technologies .section-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
        margin-bottom: 2rem;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .tech-content-wrapper {
        gap: 1.5rem;
    }

    /* Ensure ALL icons are hidden on small mobile too */
    .btn-icon,
    .card-icon,
    .stat-icon,
    .tech-icon,
    .tech-symbol,
    .service-icon {
        display: none !important;
    }

    /* Ensure section borders are removed */
    .section-title,
    .section-subtitle,
    .about-title,
    .about-subtitle,
    .services-title,
    .services-subtitle {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Services Carousel - Small Mobile */
    .services-carousel-container {
        height: 400px;
        perspective: 1000px;
        padding: 0 20px;
        contain: layout style paint;
        will-change: contents;
    }

    .service-card-3d {
        width: 250px;
        height: 350px;
        padding: 1.5rem;
    }

    /* Disable all shaking animations on small mobile */
    .service-card-3d::before {
        animation: none !important;
    }

    .card-cloud[data-position="0"],
    .card-web[data-position="0"],
    .card-mobile[data-position="0"],
    .card-devops[data-position="0"],
    .card-ai[data-position="0"],
    .card-security[data-position="0"] {
        animation: none !important;
    }

    .card-security[data-position="0"]::after {
        animation: none !important;
        opacity: 0.6;
        transform: scale(1);
    }

    .service-card-3d:hover .service-icon {
        animation: none !important;
        transform: scale(1.03);
    }

    .service-card-3d:hover .service-icon::before {
        animation: none !important;
        opacity: 0.3;
    }

    .service-card-3d:hover .service-icon svg {
        animation: none !important;
    }

    .service-card-3d:hover h3 {
        animation: none !important;
    }

    .service-card-3d:hover {
        transform: translateY(-2px);
    }

    .service-card-3d[data-position="0"]:hover {
        transform: translateX(0) translateZ(15px) rotateY(0deg) scale(1);
    }

    /* Further adjusted 3D positions for small mobile */
    .service-card-3d[data-position="1"] {
        transform: translateX(250px) translateZ(-200px) rotateY(-15deg) scale(0.75);
    }

    .service-card-3d[data-position="-1"] {
        transform: translateX(-250px) translateZ(-200px) rotateY(15deg) scale(0.75);
    }

    .service-card-3d h3 {
        font-size: 1.1rem;
    }

    .service-card-3d p {
        font-size: 0.85rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Services 3D Slider */
.services-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    overflow: visible;
    height: 520px;
    padding: 0 80px;
    perspective: 2000px;
    isolation: isolate;
    contain: layout style;
    will-change: contents;
}

.services-carousel-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    cursor: grab;
    contain: layout style;
    will-change: transform;
}

.services-carousel-slider:active {
    cursor: grabbing;
}

.service-card-3d {
    position: absolute;
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid rgba(93, 213, 200, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(93, 213, 200, 0.2),
        inset 0 0 20px rgba(93, 213, 200, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Individual Card Color Themes */

/* Cloud Card - Sky Blue/Purple */
.card-cloud {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.5);
}

.card-cloud::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.card-cloud .service-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(56, 189, 248, 0.5);
}

.card-cloud .service-icon svg {
    color: #38bdf8;
}

/* Web Card - Green/Emerald */
.card-web {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.card-web::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(5, 150, 105, 0.15) 0%, transparent 50%);
}

.card-web .service-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.card-web .service-icon svg {
    color: #10b981;
}

/* Mobile Card - Pink/Rose */
.card-mobile {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(236, 72, 153, 0.5);
}

.card-mobile::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(219, 39, 119, 0.15) 0%, transparent 50%);
}

.card-mobile .service-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.2) 100%);
    border-color: rgba(236, 72, 153, 0.5);
}

.card-mobile .service-icon svg {
    color: #ec4899;
}

/* AI Card - Purple/Violet */
.card-ai {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(124, 58, 237, 0.5);
}

.card-ai::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
}

.card-ai .service-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(124, 58, 237, 0.5);
}

.card-ai .service-icon svg {
    color: #7c3aed;
}

/* Security Card - Red/Orange */
.card-security {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.card-security::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
}

.card-security .service-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.card-security .service-icon svg {
    color: #ef4444;
}

/* DevOps Card - Yellow/Amber */
.card-devops {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%),
                linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(251, 191, 36, 0.5);
}

.card-devops::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
}

.card-devops .service-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.5);
}

.card-devops .service-icon svg {
    color: #fbbf24;
}

/* 3D Positioning based on data-position */
.service-card-3d[data-position="0"] {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Hide ripple effect completely - causes border artifacts */
.service-card-3d::after {
    display: none !important;
}

/* Center card enhanced glows by color - Tech button style */
.card-cloud[data-position="0"] {
    border-color: #38bdf8;
    box-shadow:
        0 20px 60px rgba(56, 189, 248, 0.6),
        0 0 40px rgba(56, 189, 248, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulseBlue 1s ease-in-out infinite;
}

.card-cloud[data-position="0"]::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #38bdf8;
    animation: techRippleBlue 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.card-web[data-position="0"] {
    border-color: #10b981;
    box-shadow:
        0 20px 60px rgba(16, 185, 129, 0.6),
        0 0 40px rgba(16, 185, 129, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulseGreen 1s ease-in-out infinite;
}

.card-web[data-position="0"]::after {
    content: '';
    position: absolute;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #10b981;
    animation: techRippleGreen 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.card-mobile[data-position="0"] {
    border-color: #ec4899;
    box-shadow:
        0 20px 60px rgba(236, 72, 153, 0.6),
        0 0 40px rgba(236, 72, 153, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulsePink 1s ease-in-out infinite;
}

.card-mobile[data-position="0"]::after {
    content: '';
    position: absolute;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #ec4899;
    animation: techRipplePink 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.card-ai[data-position="0"] {
    border-color: #7c3aed;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.6),
        0 0 40px rgba(124, 58, 237, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulsePurple 1s ease-in-out infinite;
}

.card-ai[data-position="0"]::after {
    content: '';
    position: absolute;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #7c3aed;
    animation: techRipplePurple 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.card-security[data-position="0"] {
    border-color: #ef4444;
    box-shadow:
        0 20px 60px rgba(239, 68, 68, 0.6),
        0 0 40px rgba(239, 68, 68, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulseRed 1s ease-in-out infinite;
}

.card-security[data-position="0"]::after {
    content: '';
    position: absolute;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #ef4444;
    animation: techRippleRed 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.card-devops[data-position="0"] {
    border-color: #fbbf24;
    box-shadow:
        0 20px 60px rgba(251, 191, 36, 0.6),
        0 0 40px rgba(251, 191, 36, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: techPulseYellow 1s ease-in-out infinite;
}

.card-devops[data-position="0"]::after {
    content: '';
    position: absolute;
    border-radius: 26px;
    border: none;
    background: transparent;
    box-shadow: 0 0 0 2px #fbbf24;
    animation: techRippleYellow 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    left: -4px;
    top: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

/* Color-specific pulse and ripple animations */
@keyframes techPulseBlue {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(56, 189, 248, 0.6),
            0 0 40px rgba(56, 189, 248, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(56, 189, 248, 0.8),
            0 0 60px rgba(56, 189, 248, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRippleBlue {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes techPulseGreen {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(16, 185, 129, 0.6),
            0 0 40px rgba(16, 185, 129, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(16, 185, 129, 0.8),
            0 0 60px rgba(16, 185, 129, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRippleGreen {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes techPulsePink {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(236, 72, 153, 0.6),
            0 0 40px rgba(236, 72, 153, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(236, 72, 153, 0.8),
            0 0 60px rgba(236, 72, 153, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRipplePink {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes techPulsePurple {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(124, 58, 237, 0.6),
            0 0 40px rgba(124, 58, 237, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(124, 58, 237, 0.8),
            0 0 60px rgba(124, 58, 237, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRipplePurple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes techPulseRed {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(239, 68, 68, 0.6),
            0 0 40px rgba(239, 68, 68, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(239, 68, 68, 0.8),
            0 0 60px rgba(239, 68, 68, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRippleRed {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes techPulseYellow {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(251, 191, 36, 0.6),
            0 0 40px rgba(251, 191, 36, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 20px 70px rgba(251, 191, 36, 0.8),
            0 0 60px rgba(251, 191, 36, 0.8),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes techRippleYellow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.service-card-3d[data-position="1"],
.service-card-3d[data-position="-1"] {
    opacity: 0.7;
    z-index: 5;
    filter: blur(1px);
}

.service-card-3d[data-position="1"] {
    transform: translateX(380px) translateZ(-300px) rotateY(-25deg) scale(0.85);
}

.service-card-3d[data-position="-1"] {
    transform: translateX(-380px) translateZ(-300px) rotateY(25deg) scale(0.85);
}

.service-card-3d[data-position="2"],
.service-card-3d[data-position="-2"] {
    opacity: 0.5;
    z-index: 2;
    filter: blur(3px);
}

.service-card-3d[data-position="2"] {
    transform: translateX(700px) translateZ(-500px) rotateY(-35deg) scale(0.7);
}

.service-card-3d[data-position="-2"] {
    transform: translateX(-700px) translateZ(-500px) rotateY(35deg) scale(0.7);
}

.service-card-3d[data-position="3"],
.service-card-3d[data-position="-3"] {
    opacity: 0.3;
    z-index: 1;
    filter: blur(5px);
}

.service-card-3d[data-position="3"] {
    transform: translateX(950px) translateZ(-700px) rotateY(-40deg) scale(0.6);
}

.service-card-3d[data-position="-3"] {
    transform: translateX(-950px) translateZ(-700px) rotateY(40deg) scale(0.6);
}

/* Cards too far away are hidden */
.service-card-3d[data-position]:not([data-position="0"]):not([data-position="1"]):not([data-position="-1"]):not([data-position="2"]):not([data-position="-2"]):not([data-position="3"]):not([data-position="-3"]) {
    opacity: 0;
    pointer-events: none;
}

/* Center card hover - subtle lift */
.service-card-3d[data-position="0"]:hover {
    transform: translateX(0) translateZ(30px) rotateY(0deg) scale(1.02);
}

/* Side cards hover - subtle brightness increase */
.service-card-3d[data-position="1"]:hover,
.service-card-3d[data-position="-1"]:hover {
    opacity: 0.85;
}

.service-card-3d[data-position="1"]:hover {
    transform: translateX(380px) translateZ(-250px) rotateY(-25deg) scale(0.88);
}

.service-card-3d[data-position="-1"]:hover {
    transform: translateX(-380px) translateZ(-250px) rotateY(25deg) scale(0.88);
}

/* Animated background pattern with glow */
.service-card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(93, 213, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite, glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Shine effect on hover */
.service-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(93, 213, 200, 0.3),
        rgba(255, 255, 255, 0.2),
        rgba(93, 213, 200, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.service-card-3d:hover::after {
    left: 100%;
}

/* Card content always visible */
.service-card-3d p {
    opacity: 1;
    transition: all 0.4s ease;
}

.service-card-3d h3 {
    transition: all 0.4s ease;
}

.service-card-3d .service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(93, 213, 200, 0.15) 0%, rgba(0, 217, 255, 0.15) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(93, 213, 200, 0.4);
    position: relative;
    transition: all 0.4s ease;
    box-shadow:
        0 10px 30px rgba(93, 213, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon glow effect */
.service-card-3d .service-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #5DD5C8, #00D9FF);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card-3d:hover .service-icon {
    animation: iconFloat 3s ease-in-out infinite;
    transform: scale(1.1);
}

.service-card-3d:hover .service-icon::before {
    opacity: 0.6;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.service-card-3d .service-icon svg {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(93, 213, 200, 0.3));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card-3d:hover .service-icon svg {
    animation: iconRotate 4s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.05); }
}

.service-card-3d h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    background: linear-gradient(135deg, #5DD5C8 0%, #00D9FF 50%, #5DD5C8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.service-card-3d:hover h3 {
    animation: titleShine 3s linear infinite;
}

@keyframes titleShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.service-card-3d p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.service-card-3d:hover {
    border-color: rgba(93, 213, 200, 0.6);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(93, 213, 200, 0.25);
    transform: translateY(-5px);
}

/* Slider Navigation */
.services-carousel-container .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(93, 213, 200, 0.5);
    color: #5DD5C8;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    user-select: none;
}

.services-carousel-container .slider-nav:hover {
    background: rgba(93, 213, 200, 0.2);
    border-color: #5DD5C8;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px rgba(93, 213, 200, 0.5);
}

.services-carousel-container .slider-nav.prev {
    left: 10px;
}

.services-carousel-container .slider-nav.next {
    right: 10px;
}

/* Slider Dots */
.services-carousel-container .slider-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 200;
}

.services-carousel-container .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(93, 213, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.services-carousel-container .slider-dot:hover {
    background: rgba(93, 213, 200, 0.6);
    transform: scale(1.2);
}

.services-carousel-container .slider-dot.active {
    background: #5DD5C8;
    border-color: rgba(93, 213, 200, 0.3);
    box-shadow: 0 0 10px rgba(93, 213, 200, 0.5);
    transform: scale(1.3);
}

/* Duplicate media queries removed - consolidated above */
