/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar styling for desktop/tablet */
.main-content::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(59, 255, 255, 0.12);
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 255, 255, 0.6), rgba(241, 0, 146, 0.6));
    border-radius: 8px;
    border: 2px solid rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 10px rgba(59, 255, 255, 0.25);
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(241, 0, 146, 0.75), rgba(59, 255, 255, 0.75));
}

/* Firefox */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 255, 255, 0.6) rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    height: 100%;
    width: 100%;
    position: fixed;
    touch-action: pan-y;
}

/* Background Molecules Container */
.molecules-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Molecular Video Background for Home Page */
.molecular-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    filter: brightness(0.9) contrast(1.1);
    transition: opacity 0.3s ease;
    min-width: 100%;
    min-height: 100%;
    display: none !important;
    visibility: hidden;
}

/* Show video only on home page */
#home.active .molecular-video {
    display: block !important;
    visibility: visible;
}

/* Video Overlay Shadow */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, 
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.7) 40%,
        rgba(10, 10, 10, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
    display: none !important;
    visibility: hidden;
}

/* Show overlay only on home page */
#home.active .video-overlay {
    display: block !important;
    visibility: visible;
}

/* Video Attribution */
.video-attribution {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 100;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.video-attribution:hover {
    opacity: 1;
}

.video-attribution a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(59, 255, 255, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 400;
}

.video-attribution a:hover {
    color: #3BFFFF;
    background: rgba(10, 10, 10, 0.8);
    border-color: rgba(59, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(59, 255, 255, 0.3);
}

/* Remove opacity when loading */
body.loading .molecular-video {
    opacity: 1;
}

body.loading .video-overlay {
    opacity: 0;
}

/* Individual Molecule */
.molecule {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    opacity: 0.35;
    transform-origin: center center;
    perspective: 1000px;
}

/* Molecule Structure - Center Atom */
.molecule-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 255, 255, 0.9), rgba(59, 255, 255, 0.4));
    box-shadow: 0 0 12px rgba(59, 255, 255, 0.7), 0 0 24px rgba(59, 255, 255, 0.4);
    transform: translate(-50%, -50%) translateZ(0);
    z-index: 10;
}

/* Molecule Structure - Connected Atoms */
.molecule-atom {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(241, 0, 146, 0.9), rgba(241, 0, 146, 0.4));
    box-shadow: 0 0 10px rgba(241, 0, 146, 0.7), 0 0 18px rgba(241, 0, 146, 0.4);
    top: 50%;
    left: 50%;
    transform-origin: center center;
    z-index: 5;
}

/* Molecular Bond Lines */
.molecule-bond {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 255, 255, 0.25) 10%, 
        rgba(241, 0, 146, 0.25) 50%,
        rgba(59, 255, 255, 0.25) 90%, 
        transparent 100%);
    box-shadow: 0 0 6px rgba(59, 255, 255, 0.15);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    z-index: 1;
}

/* Molecule Animation - Floating */
@keyframes moleculeFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translate3d(20px, -30px, 0) rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: translate3d(-15px, 20px, 0) rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: translate3d(10px, -15px, 0) rotateX(270deg) rotateY(270deg);
    }
}

/* Molecule Slow Spin */
@keyframes moleculeSpin {
    from {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overscroll-behavior: none;
}

html::-webkit-scrollbar {
    display: none;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.6s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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



/* Logo */
.logo-container {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    width: 100%;
    max-width: 400px;
}

/* Ensure logo stays above atom */
.logo-container,
.logo,
.logo-inner {
    position: relative;
    z-index: 20;
}

.logo {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.logo-inner {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(59, 255, 255, 0.5);
}

.semigas-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(59, 255, 255, 0.4)) 
            drop-shadow(0 0 25px rgba(241, 0, 146, 0.3))
            brightness(1.1) contrast(1.1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Atom Loader */
.atom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.atom-loader.active {
    display: flex;
}

.atom-svg {
    width: 150px;
    height: 125px;
    filter: drop-shadow(0 0 20px #3BFFFF);
    animation: rotate 1s linear infinite;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 1rem 0;
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
    text-decoration: none;
    cursor: pointer;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-link:hover {
    color: #3BFFFF;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3BFFFF, #F10092);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(59, 255, 255, 0.5);
}

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

.nav-link.active {
    color: #3BFFFF;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.5);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    border-radius: 8px;
    overflow: visible;
    align-items: center;
    justify-content: center;
}

.bar {
    width: 25px;
    height: 3px;
    background: #3BFFFF;
    background-image: linear-gradient(90deg, #3BFFFF, #F10092);
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(59, 255, 255, 0.8);
    display: block;
    opacity: 1;
    border-radius: 2px;
}

/* When menu is open, hide the middle bar for a clean X */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

/* Neon circuit aura and sweep when menu is active */
/* Remove neon outline/animation */
.hamburger::before,
.hamburger::after { content: none !important; }

/* Main Content */
.main-content {
    height: 100%;
    width: 100%;
    background: transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    position: relative;
    z-index: 1;
}

#home {
    position: relative;
    height: 100%;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #0a1a1a 50%, #1a0a0a 75%, #0a0a0a 100%);
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
}

/* Subtle animated circuit background overlay */
.circuit-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    background-image:
        /* base grid */
        repeating-linear-gradient(90deg, rgba(59, 255, 255, 0.08) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(241, 0, 146, 0.06) 0 1px, transparent 1px 64px),
        /* electric current overlays */
        repeating-linear-gradient(90deg, transparent 0 60px, rgba(59, 255, 255, 0.18) 60px 64px),
        repeating-linear-gradient(0deg, transparent 0 60px, rgba(59, 255, 255, 0.14) 60px 64px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    mix-blend-mode: normal;
    animation: none;
    display: none; /* hide symmetric grid to favor organic svg */
}

.circuit-bg::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(8px 8px at 0% 50%, rgba(59,255,255,0.25), transparent 60%),
        radial-gradient(8px 8px at 50% 0%, rgba(241,0,146,0.18), transparent 60%),
        radial-gradient(8px 8px at 100% 50%, rgba(59,255,255,0.22), transparent 60%),
        radial-gradient(8px 8px at 50% 100%, rgba(212,25,219,0.16), transparent 60%);
    background-repeat: no-repeat;
    filter: blur(0.2px) drop-shadow(0 0 6px rgba(59,255,255,0.2));
    animation: none;
}

@keyframes circuitFlow {
    0% {
        background-position:
            0 0,                /* base vertical grid */
            0 0,                /* base horizontal grid */
            0 0,                /* current horizontal */
            0 0;                /* current vertical */
    }
    50% {
        background-position:
            0 0,
            0 0,
            64px 0,             /* move horizontal current one cell */
            0 64px;             /* move vertical current one cell */
    }
    100% {
        background-position:
            0 0,
            0 0,
            128px 0,
            0 128px;
    }
}

@keyframes circuitMove {
    0% { transform: translate3d(-5%, -5%, 0); }
    50% { transform: translate3d(5%, 5%, 0); }
    100% { transform: translate3d(-5%, -5%, 0); }
}

/* Organic SVG circuit overlays (corners) */
.circuit-svg {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
    display: none; /* hide circuit overlays for now */
}
.circuit-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    display: none; /* ensure main frame is hidden */
}

.trace {
    stroke-dasharray: none;
    animation: none !important;
    opacity: 0.5;
}
.pulse-a, .pulse-b, .pulse-c, .pulse-d { animation: none !important; }

/* current glow handled via SVG animateMotion in index.html */

/* Ensure hero content sits above visuals */
#home .hero { 
    z-index: 2; 
    position: relative;
    overflow: hidden;
}



@keyframes fadeInGlow {
    0% {
        text-shadow: 0 0 20px rgba(59, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 30px rgba(59, 255, 255, 0.5), 0 0 40px rgba(241, 0, 146, 0.3);
    }
}

/* Enhanced Logo Animation */
.logo {
    animation: pulse 2s infinite;
}

/* Enhanced Button Animations */
.btn-primary {
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(59, 255, 255, 0.5), 0 0 40px rgba(241, 0, 146, 0.3);
    }
}

@media (max-width: 768px) {
    .current-glow {
        width: 14px;
        height: 10px;
        border-radius: 5px;
        animation-duration: 6.5s;
    }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 0;
    display: none;
    background: #000000;
    position: relative;
    width: 100%;
    left: 0;
    right: 0;
}

/* Home page keeps its gradient background */
#home {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #0a1a1a 50%, #1a0a0a 75%, #0a0a0a 100%);
}

.section.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #3BFFFF, #F10092, #F66232, #D419DB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(59, 255, 255, 0.5);
    animation: gradientShift 3s ease-in-out infinite;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

#home .hero {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
}

.hero-content {
    max-width: 600px;
}

#home .hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: auto;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(59, 255, 255, 0.1),
                inset 0 0 20px rgba(10, 10, 10, 0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3BFFFF, #F10092, #F66232, #D419DB);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out, gradientShift 4s ease-in-out infinite;
    text-align: center;
    width: 100%;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 20px rgba(59, 255, 255, 0.4));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    animation: slideInLeft 1s ease-out 0.2s both, fadeInGlow 2s ease-in-out 0.5s infinite alternate;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(59, 255, 255, 0.5),
                 0 0 50px rgba(59, 255, 255, 0.3);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 1s ease-out 0.4s both;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    color: #000000;
    box-shadow: 0 4px 20px rgba(59, 255, 255, 0.6),
                0 0 30px rgba(59, 255, 255, 0.4),
                0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 255, 255, 0.5);
    background: linear-gradient(45deg, #F10092, #3BFFFF);
}

.btn-secondary {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    color: #3BFFFF;
    border: 2px solid #3BFFFF;
    box-shadow: 0 0 20px rgba(59, 255, 255, 0.5),
                0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 255, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 255, 255, 0.3), rgba(241, 0, 146, 0.2));
    animation: float 3s infinite;
    box-shadow: 0 0 20px rgba(59, 255, 255, 0.2);
}

.float-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.float-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.float-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.founding-principle {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 18px;
    background: rgba(59, 255, 255, 0.08);
    border: 1px solid rgba(59, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(10, 15, 25, 0.35);
    backdrop-filter: blur(12px);
}

.founding-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kip-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: auto;
    margin: 2rem auto;
}

.kip-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(59, 255, 255, 0.3));
}

.kip-description {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.tm-symbol {
    font-size: 0.7em;
    vertical-align: super;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    margin-left: 3px;
    font-weight: normal;
}


.skill-item {
    background: rgba(10, 10, 10, 0.75);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease-out;
    backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.skill-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.85);
    cursor: pointer;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-item h3 {
    color: #3BFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
}

.about-visual {
    position: relative;
    height: 400px;
}

.animated-shape {
    display: none;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-intro p {
    font-size: 1.15rem;
    color: #dde0ff;
    margin-bottom: 1rem;
}

.mission-statement {
    padding: 2.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 255, 255, 0.12), rgba(241, 0, 146, 0.08));
    border: 1px solid rgba(59, 255, 255, 0.25);
    box-shadow: 0 18px 38px rgba(10, 15, 25, 0.3);
}

.mission-statement h3 {
    color: #3BFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 14px rgba(59, 255, 255, 0.45);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.experience-card {
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(59, 255, 255, 0.18);
    box-shadow: 0 16px 32px rgba(10, 15, 25, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.experience-card h4 {
    color: #3BFFFF;
    margin-bottom: 0.75rem;
}

.experience-card:hover {
    transform: translateY(-6px);
    border-color: rgba(241, 0, 146, 0.35);
    box-shadow: 0 24px 45px rgba(59, 255, 255, 0.18);
}

.services-overview {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
    color: #d0d4e0;
    font-size: 1.15rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    padding: 2.25rem;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(10, 15, 25, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 16px 48px rgba(59, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.85);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(59, 255, 255, 0.1);
}

.service-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(59, 255, 255, 0.3));
}

.service-card h3 {
    color: #3BFFFF;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-description {
    color: #d0d4e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    flex-grow: 0;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    margin-top: auto;
}

.service-card li {
    position: relative;
    padding-left: 1.5rem;
    color: #eef4ff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #F10092;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(241, 0, 146, 0.5);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.faq-item:hover {
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-item.open {
    border-color: rgba(241, 0, 146, 0.4);
    box-shadow: 0 12px 40px rgba(59, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.85);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 1.5rem 1.75rem;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.faq-question:hover {
    color: #3BFFFF;
}

.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #3BFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #F10092;
}

.faq-item.open .faq-question {
    color: #3BFFFF;
    padding-bottom: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease,
                padding 0.4s ease;
    padding: 0 1.75rem;
}

.faq-answer-content {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #d0d4e0;
    line-height: 1.75;
    font-size: 1rem;
}

.faq-item.open .faq-answer {
    opacity: 1;
    max-height: 800px;
    padding-top: 0;
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(10, 10, 10, 0.75);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease-out;
    backdrop-filter: blur(12px);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(59, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.85);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(59, 255, 255, 0.1), rgba(241, 0, 146, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(59, 255, 255, 0.2);
}

.project-placeholder {
    color: #3BFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.5);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #3BFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(59, 255, 255, 0.2);
    color: #3BFFFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(59, 255, 255, 0.2);
}

/* Book a Meeting Section */
.meeting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.meeting-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meeting-features {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(10, 10, 10, 0.75);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.85);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(59, 255, 255, 0.3));
}

.feature-item span:not(.feature-icon) {
    color: #d0d4e0;
    line-height: 1.75;
    font-size: 1rem;
}

.feature-item h4 {
    color: #3BFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
}

.booking-card {
    background: rgba(10, 10, 10, 0.75);
    padding: 2.25rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(10, 15, 25, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-card:hover {
    border-color: rgba(59, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(59, 255, 255, 0.15);
}

.booking-card h4 {
    color: #3BFFFF;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
    font-size: 1.35rem;
}

.meeting-info-card {
    background: rgba(10, 10, 10, 0.75);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.meeting-info-card:hover {
    border-color: rgba(59, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
}

.meeting-details h5 {
    color: #3BFFFF;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
    text-align: center;
    font-weight: 600;
}

.meeting-details p {
    color: #d0d4e0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.75;
}

.meeting-highlights {
    display: grid;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.highlight-item:hover {
    background: rgba(59, 255, 255, 0.08);
    border-color: rgba(59, 255, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 255, 255, 0.15);
}

.highlight-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(59, 255, 255, 0.3));
}

.highlight-item span:last-child {
    color: #d0d4e0;
    font-weight: 500;
    line-height: 1.6;
}

.calendar-embed {
    margin-top: 2rem;
}

.calendar-placeholder {
    background: rgba(10, 10, 10, 0.75);
    padding: 3rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.calendar-placeholder:hover {
    border-color: rgba(59, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
    transform: translateY(-2px);
    background: rgba(10, 10, 10, 0.85);
}

.calendar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(59, 255, 255, 0.3));
}

.calendar-placeholder h5 {
    color: #3BFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(59, 255, 255, 0.3);
    font-size: 1.35rem;
    font-weight: 600;
}

.calendar-placeholder p {
    color: #d0d4e0;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3BFFFF, #F10092);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: #d0d4e0;
    line-height: 1.75;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.75);
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(10, 15, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.contact-method:hover {
    border-color: rgba(59, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.85);
}

.contact-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(59, 255, 255, 0.3));
}

.contact-method span:not(.contact-link) {
    color: #d0d4e0;
}

/* Clickable contact links styling */
.contact-link {
    color: #ffffff;
    text-decoration: underline;
}
.contact-link:hover, .contact-link:focus {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(59, 255, 255, 0.6);
}

.contact-form {
    background: rgba(10, 10, 10, 0.75);
    padding: 2.25rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(10, 15, 25, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form:hover {
    border-color: rgba(59, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(59, 255, 255, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(59, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(59, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(59, 255, 255, 0.25), 0 4px 15px rgba(10, 15, 25, 0.2);
    background: rgba(59, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cccccc;
}

/* Additional Modern Enhancements */
.section-title {
    background-size: 200% 200%;
}

.hero-title {
    text-shadow: 0 0 30px rgba(59, 255, 255, 0.3);
}

/* Enhanced glassmorphism effects - removed duplicate styling */

/* Improved button animations */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

/* Enhanced floating elements */
.float-element {
    border: 1px solid rgba(59, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root { 
        --nav-height: 80px; 
    }
    /* Optimize animations for mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Reduce padding and margins for mobile */
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(59, 255, 255, 0.15);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    }

    .nav-container {
        min-height: var(--nav-height);
        position: relative;
    }

    .main-content {
        padding-top: var(--nav-height);
        /* Hide scrollbar on mobile */
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .main-content::-webkit-scrollbar { /* Chrome/Safari/Opera */
        display: none;
        width: 0;
        height: 0;
    }
    
    .section {
        padding: 60px 0;
    }
    /* Ensure non-home sections have extra top spacing below navbar on mobile */
    .section:not(#home) {
        padding-top: calc(20px + var(--nav-height));
    }
    
    /* Simple visible hamburger */
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 2100;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .hamburger .bar {
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background: #3BFFFF;
        background-image: linear-gradient(90deg, #3BFFFF, #F10092);
        box-shadow: 0 0 8px rgba(59, 255, 255, 0.8);
        opacity: 1;
    }

    /* Simple mobile menu */
    .nav-menu {
        position: fixed;
        left: 0;
        top: var(--nav-height);
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 1rem 0;
        backdrop-filter: blur(8px);
        z-index: 6000;
        will-change: transform;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    #home .hero {
        min-height: calc(100vh - var(--nav-height));
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .about-content,
    .contact-content,
    .meeting-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills {
        margin-top: 1.5rem;
    }

    .founding-principle {
        padding: 2rem;
    }

    .kip-logo-container {
        width: 220px;
    }

    .tm-symbol {
        font-size: 0.65em;
    }

    .experience-grid,
    .services-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        max-width: 100%;
    }

    .service-card {
        padding: 1.75rem;
    }

    .service-card-header {
        gap: 0.875rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .service-icon {
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }

    .faq-answer-content {
        padding-bottom: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .services-overview {
        font-size: 1rem;
    }

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

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

    .logo {
        width: 250px;
        height: 250px;
    }

    .logo-inner {
        width: 230px;
        height: 230px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .semigas-logo {
        filter: drop-shadow(0 0 15px rgba(59, 255, 255, 0.7)) brightness(1.2) contrast(1.2);
    }
    
    /* Optimize skill items */
    .skill-item {
        padding: 1.5rem;
    }
    
    /* Optimize buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    /* Reduce gap in hero content */
    #home .hero-content {
        gap: 1.5rem;
        padding: 1.5rem 1.5rem;
        margin: 0 20px;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        border-radius: 20px;
    }

    /* Reduce logo bottom spacing on mobile to raise content */
    .logo-container {
        margin: 0 auto 0.75rem auto;
    }
    
    #home .hero-content {
        margin-top: -1rem;
    }
    
    /* Optimize meeting and contact sections */
    .feature-item,
    .contact-method {
        padding: 1.25rem;
    }
    
    /* Better spacing for forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .meeting-highlights,
    .contact-methods {
        gap: 0.75rem;
    }

    /* Center about text on mobile/tablet */
    .about-text { 
        text-align: center; 
    }

    /* Center Schedule a Meeting content on mobile/tablet */
    .meeting-info,
    .meeting-features,
    .feature-item,
    .meeting-details p { 
        text-align: center; 
    }

    /* Contact page: center content on mobile */
    .contact-info,
    .contact-methods,
    .contact-form { 
        text-align: center; 
    }


}

@media (max-width: 480px) {
    :root { 
        --nav-height: 76px; 
    }
    /* Further reduce padding for small screens */
    .container {
        padding: 0 12px;
    }
    
    .navbar {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(59, 255, 255, 0.15);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
        z-index: 4000;
    }

    .nav-container {
        min-height: var(--nav-height);
        position: relative;
    }

    .main-content {
        padding-top: var(--nav-height);
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Simple visible hamburger for iPhone 14 */
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        z-index: 5000;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .hamburger .bar {
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background: #3BFFFF;
        background-image: linear-gradient(90deg, #3BFFFF, #F10092);
        box-shadow: 0 0 8px rgba(59, 255, 255, 0.8);
        opacity: 1;
        display: block;
    }

    .nav-menu {
        top: var(--nav-height);
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Tighten home hero spacing under navbar on very small screens */
    .hero { 
        min-height: 100vh; 
    }
    #home .hero {
        min-height: calc(100vh - var(--nav-height));
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 1.5rem;
    }

    /* Give more breathing room for non-home sections under navbar */
    .section:not(#home) {
        padding-top: calc(24px + var(--nav-height));
    }

    .main-content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .nav-container {
        padding-right: calc(20px + env(safe-area-inset-right));
        padding-left: calc(20px + env(safe-area-inset-left));
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.55rem 0.75rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

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

    .logo {
        width: 200px;
        height: 200px;
    }

    .logo-inner {
        width: 180px;
        height: 180px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .semigas-logo {
        filter: drop-shadow(0 0 12px rgba(59, 255, 255, 0.6)) brightness(1.2) contrast(1.2);
    }
    
    /* Optimize spacing further */
    .skill-item {
        padding: 1.25rem;
    }
    
    .about-text > p,
    .meeting-info > p,
    .contact-info > p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .feature-item h4,
    .skill-item h3,
    .contact-method span {
        font-size: 1.1rem;
    }

    /* Center about text on small phones */
    .about-text { 
        text-align: center; 
    }

    .kip-logo-container {
        width: 100px;
    }

    /* Center Schedule a Meeting content on small phones */
    .meeting-info,
    .meeting-features,
    .feature-item,
    .meeting-details p { 
        text-align: center; 
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    #home .hero-content {
        gap: 1.25rem;
        padding: 1.25rem 1rem;
        margin: 0 15px;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        border-radius: 16px;
    }

    /* Further reduce logo bottom spacing on small screens */
    .logo-container {
        margin: 0 auto 0.5rem auto;
    }
    
    #home .hero-content {
        margin-top: -0.5rem;
    }
    
    .meeting-info-card,
    .booking-card,
    .contact-form {
        padding: 1.5rem;
    }

    .founding-principle {
        padding: 1.6rem;
    }

    .kip-logo-container {
        width: 180px;
    }

    .kip-description {
        font-size: 1rem;
    }

    .tm-symbol {
        font-size: 0.6em;
    }


    .mission-statement {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card-header {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-card li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }

    .faq-question {
        padding: 1.15rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding-bottom: 1.15rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    /* Form X on open: hide middle bar */
    .hamburger.active .bar:nth-child(2) { opacity: 0 !important; }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(59, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(59, 255, 255, 0.2);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #3BFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #F10092;
    transform: rotate(90deg);
    background: rgba(59, 255, 255, 0.1);
    text-shadow: 0 0 15px rgba(241, 0, 146, 0.5);
}

.modal-body {
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

.modal-title {
    font-size: 2rem;
    color: #3BFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(59, 255, 255, 0.5);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .modal-close {
        font-size: 1.8rem;
        width: 30px;
        height: 30px;
    }
    
    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .modal-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}
