/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007eff;
    --secondary-color: #0066cc;
    --dark-bg: #0a0a0a;
    --darker-bg: #1c1c1c;
    --card-bg: #151515;
    --light-bg: #f8fafc;
    --text-dark: #1c1c1c;
    --text-light: #a0a0a0;
    --text-lighter: #666666;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #007eff 0%, #0055cc 100%);
    --gradient-radial: radial-gradient(circle at 50% 50%, rgba(0, 126, 255, 0.15) 0%, transparent 70%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-blue: 0 10px 40px rgba(0, 126, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--dark-bg);
    overflow-x: hidden;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Page content visibility handled by inline styles in HTML */

/* Force no cursor on all elements */
*, *::before, *::after {
    cursor: none !important;
}

/* Custom Cursor - Hexagon */
.cursor {
    width: 20px;
    height: 23px;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 23px;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cursor-follower {
    width: 40px;
    height: 46px;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.cursor-follower::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 46px;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="46" xmlns="http://www.w3.org/2000/svg"><polygon points="20,2 38,13.5 38,32.5 20,44 2,32.5 2,13.5" fill="none" stroke="%23007eff" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.cursor.hover {
    width: 30px;
    height: 35px;
}

.cursor.hover::before {
    width: 30px;
    height: 35px;
    background: rgba(0, 126, 255, 0.8);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transform-origin: left;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glitch Transition Effect */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glitch-overlay.active {
    opacity: 1;
}

.glitch-overlay::before,
.glitch-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-overlay.active::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 126, 255, 0.8) 0px,
        rgba(0, 126, 255, 0) 2px,
        transparent 2px,
        transparent 4px
    );
    animation: glitchScanlines 0.8s linear infinite;
}

.glitch-overlay.active::after {
    background: var(--primary-color);
    mix-blend-mode: color;
    animation: glitchNoise 0.4s steps(4) infinite;
}

.glitch-overlay.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes glitchScanlines {
    0% {
        transform: translateY(0%) scaleY(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100%) scaleY(2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200%) scaleY(1);
        opacity: 0;
    }
}

@keyframes glitchNoise {
    0% {
        transform: translate(0);
        opacity: 0.3;
    }
    25% {
        transform: translate(-5px, 5px);
        opacity: 0.5;
    }
    50% {
        transform: translate(5px, -5px);
        opacity: 0.4;
    }
    75% {
        transform: translate(-3px, 3px);
        opacity: 0.6;
    }
    100% {
        transform: translate(0);
        opacity: 0;
    }
}

.glitch-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    z-index: 10001;
    opacity: 0;
    font-family: 'Courier New', monospace;
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color);
    will-change: transform, opacity;
    pointer-events: none;
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        max-width: 90vw;
        text-align: center;
    }
}

.glitch-text.active {
    animation: glitchTextContinuous 0.6s ease-in-out infinite;
}

.glitch-text.show-final {
    animation: showFinalText 0.8s ease-out forwards;
}

@keyframes glitchTextContinuous {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1) skew(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-48%, -52%) scale(1.05) skew(5deg);
    }
    40% {
        opacity: 0.85;
        transform: translate(-52%, -48%) scale(0.95) skew(-5deg);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08) skew(3deg);
    }
    80% {
        opacity: 0.9;
        transform: translate(-51%, -49%) scale(0.98) skew(-2deg);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1) skew(0deg);
    }
}

@keyframes showFinalText {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05) skew(2deg);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) skew(0deg);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) skew(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 126, 255, 0.1);
    border-bottom: 1px solid rgba(0, 126, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 126, 255, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05) rotate(2deg);
}

.logo h1 {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: none; /* Hidden since we're using the logo image */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 126, 255, 0.05);
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover::after {
    width: 50%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 126, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 126, 255, 0.5), 0 0 30px rgba(0, 126, 255, 0.3);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 126, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 126, 255, 0.7), 0 0 40px rgba(0, 126, 255, 0.4);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 126, 255, 0.3);
    border-radius: 12px;
    min-width: 280px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 126, 255, 0.2);
    z-index: 1001;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.dropdown-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: rgba(0, 126, 255, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-item:hover .dropdown-item-icon {
    opacity: 1;
    transform: scale(1.1);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 126, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 126, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 126, 255, 0.05) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Particle Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 126, 255, 0.05);
    filter: blur(40px);
    animation: float 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.floating-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: -14s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #007eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-title .typed-text {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    animation: blink 0.7s step-end infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    font-weight: 400;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 126, 255, 0.4);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 126, 255, 0.5);
    background: #0088ff;
    border-color: #0088ff;
}

/* Pulse animation for project CTA button */
@keyframes pulseRipple {
    0% {
        box-shadow: 0 10px 30px rgba(0, 126, 255, 0.4),
                    0 0 0 0 rgba(0, 126, 255, 0.7),
                    0 0 0 0 rgba(0, 126, 255, 0.5);
    }
    40% {
        box-shadow: 0 10px 30px rgba(0, 126, 255, 0.4),
                    0 0 0 20px rgba(0, 126, 255, 0),
                    0 0 0 0 rgba(0, 126, 255, 0.5);
    }
    80% {
        box-shadow: 0 10px 30px rgba(0, 126, 255, 0.4),
                    0 0 0 20px rgba(0, 126, 255, 0),
                    0 0 0 30px rgba(0, 126, 255, 0);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 126, 255, 0.4),
                    0 0 0 0 rgba(0, 126, 255, 0),
                    0 0 0 0 rgba(0, 126, 255, 0);
    }
}

.project-cta {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both, pulseRipple 2.5s infinite;
}

.project-cta:hover {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    font-family: 'Courier New', monospace;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.home-service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 126, 255, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.home-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 126, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.home-service-card:hover::before {
    opacity: 1;
}

.home-service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 126, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.home-service-card:hover::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.home-service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 126, 255, 0.15);
    border-color: rgba(0, 126, 255, 0.3);
}

.home-service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 126, 255, 0.2));
}

.home-service-card:hover .home-service-icon {
    transform: scale(1.2) rotateY(360deg);
}

.home-service-icon:has(img) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-service-icon img {
    width: 320px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.home-service-card:hover h3 {
    color: var(--primary-color);
}

.home-service-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

/* See More Button */
.btn-see-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-top: auto;
}

.btn-see-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-see-more:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 126, 255, 0.3);
}

.btn-see-more:hover::before {
    width: 300px;
    height: 300px;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about-nodes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
}

/* Founder Section */
.founder-section {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 126, 255, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    transition: all 0.4s ease;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 126, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 126, 255, 0.2);
    border-color: rgba(0, 126, 255, 0.4);
}

.founder-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 126, 255, 0.3));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulse 3s ease-in-out infinite;
}

.founder-image {
    position: relative;
    width: 280px;
    height: 280px;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    transition: transform 0.4s ease;
}

.founder-card:hover .founder-image {
    transform: scale(1.05);
}

.founder-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.founder-label {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.founder-name {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.founder-tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(0, 126, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 126, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.tech-badge:hover {
    background: rgba(0, 126, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 126, 255, 0.3);
}

/* Contact Section - Terminal Style */
.contact {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #0a0a0a;
    border: 2px solid rgba(0, 126, 255, 0.3);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 0 30px rgba(0, 126, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 126, 255, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-left: 1rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
    user-select: none;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-group label::before {
    content: '$ ';
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 126, 255, 0.05);
    border: 1px solid rgba(0, 126, 255, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 126, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 126, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 160, 160, 0.5);
    font-family: 'Courier New', monospace;
}

/* Envelope Animation */
.contact-form.envelope-mode {
    position: relative;
}

.contact-form.envelope-mode .terminal-header,
.contact-form.envelope-mode .terminal-body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.envelope-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.envelope-wrapper.show {
    opacity: 1;
}

.envelope-wrapper.shrink {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.1);
}

.envelope-wrapper.fly-away {
    position: fixed;
    animation: envelopeFlyAway 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.envelope-wrapper.fly-back {
    position: fixed;
    animation: envelopeFlyBack 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.envelope-wrapper.expand {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.envelope-icon {
    width: 200px;
    height: 200px;
}

.envelope-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(0, 126, 255, 0.6));
}

.contact-form .success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.contact-form .success-message.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.success-message h3 {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message h3::before {
    content: '✓ ';
    color: #27c93f;
}

.success-message p {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.success-message .btn {
    margin-top: 1.5rem;
}

@keyframes envelopeFlyAway {
    0% {
        transform: translate(0, 0) scale(0.1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(150vw, -150vh) scale(0.1) rotate(720deg);
        opacity: 0;
    }
}

@keyframes envelopeFlyBack {
    0% {
        top: -150vh;
        left: -150vw;
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
    }
    100% {
        top: var(--return-y);
        left: var(--return-x);
        transform: scale(0.1) rotate(720deg);
        opacity: 1;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 126, 255, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.info-item-link {
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.info-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 126, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-item-link:hover::before {
    left: 100%;
}

.info-item:hover {
    border-color: rgba(0, 126, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 126, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 126, 255, 0.05);
}

.info-item-link:active {
    transform: translateY(-2px) scale(0.98);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.info-item h3::before {
    content: '> ';
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 50% {
        border-color: var(--primary-color);
    }
    51%, 100% {
        border-color: transparent;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(0, 126, 255, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    /* Mobile dropdown behavior - always show */
    .nav-item-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-item-dropdown .dropdown-item {
        padding-left: 2.5rem;
        font-size: 0.9rem;
        border-left: 3px solid var(--primary-color);
        margin-left: 1rem;
    }
    
    .logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .floating-shape {
        display: none;
    }
    
    .founder-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .founder-image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .founder-image {
        width: 180px;
        height: 180px;
    }
    
    .founder-name {
        font-size: 2rem;
    }
    
    .founder-info {
        text-align: center;
    }
    
    .founder-tech-stack {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .service-card {
        padding: 2rem;
    }
}
