/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adjust this value based on your header height */
}

:root {
    --primary-color: #68dfc3;
    --secondary-color: #3bb194;
    --background-color: #000000;
    --text-color: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #68dfc3;
    background-color: #0a0a1a;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.glow-container {
    position: relative;
    overflow: hidden;
}

/* Storm Effect */
.storm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
    overflow: hidden;
}

.lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    animation: thunder 15s infinite;
    will-change: transform, opacity;
    transform-origin: center center;
    backface-visibility: hidden;
    perspective: 1000px;
}

.lightning:nth-child(1) { animation-delay: 2s; }
.lightning:nth-child(2) { animation-delay: 8s; }
.lightning:nth-child(3) { animation-delay: 22s; }
.lightning:nth-child(4) { animation-delay: 34s; }
.lightning:nth-child(5) { animation-delay: 48s; }

/* Shake effect for storm */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-0.5deg); }
    50% { transform: translateX(5px) rotate(0.5deg); }
    75% { transform: translateX(-3px) rotate(-0.3deg); }
}

/* Lightning flash effect */
@keyframes thunder {
    0%, 100% { 
        opacity: 0;
        transform: translateX(0);
    }
    1% { 
        opacity: 0.8;
        background: rgba(255, 255, 255, 0.9);
        transform: translateX(0);
    }
    2% { 
        opacity: 0.6; 
        background: rgba(255, 255, 255, 0.7);
        transform: translateX(5px);
    }
    3% { 
        opacity: 0.4; 
        background: rgba(255, 255, 255, 0.5);
        transform: translateX(-3px);
    }
    4% { 
        opacity: 0.2;
        transform: translateX(3px);
    }
    5%, 100% { 
        opacity: 0; 
        transform: translateX(0);
    }
}

/* Storm Flash Effect */
@keyframes stormFlash {
    0%, 100% { background: rgba(10, 10, 26, 0.1); }
    5% { background: rgba(200, 230, 255, 0.05); }
    10% { background: rgba(10, 10, 26, 0.1); }
}

/* Storm flash and shake are now handled by the .storm container */

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

/* Lightning Bolts */
.lightning-bolt {
    position: absolute;
    top: 0;
    left: var(--x);
    height: 100vh;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: opacity, filter;
}

/* Size variations */
.lightning-bolt[viewBox*="600"] { 
    width: 600px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.9));
}
.lightning-bolt[viewBox*="400"] { width: 400px; }
.lightning-bolt[viewBox*="300"] { width: 300px; }
.lightning-bolt[viewBox*="200"] { width: 200px; }
.lightning-bolt[viewBox*="150"] { width: 150px; }

/* Bolt animations */
.bolt-1, .bolt-2, .bolt-3, .bolt-4, .bolt-5, .bolt-6 {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    animation: lightning-main 25s infinite;
}

/* Massive bolt styles */
.massive-bolt {
    z-index: 1; /* Behind main content but above background */
    animation: lightning-massive 40s infinite;
    opacity: 0;
    transform-origin: center top;
}

.bolt-m1 { animation-delay: 5s; }
.bolt-m2 { animation-delay: 15s; }

.bolt-bg-1, .bolt-bg-2 {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
    animation: lightning-background 30s infinite;
}

/* Bolt timings and patterns */
/* Large bolts - more frequent */
.bolt-1 { animation: lightning-rare 40s infinite; animation-delay: 15s; }
.bolt-2 { animation: lightning-rare 45s infinite; animation-delay: 35s; }

/* Medium bolts - common */
.bolt-3 { animation: lightning-common 20s infinite; animation-delay: 8s; }
.bolt-4 { animation: lightning-common 25s infinite; animation-delay: 16s; }
.bolt-5 { animation: lightning-common 22s infinite; animation-delay: 12s; }

/* Small bolts - very common */
.bolt-s1 { animation: lightning-frequent 15s infinite; animation-delay: 3s; }
.bolt-s2 { animation: lightning-frequent 12s infinite; animation-delay: 6s; }
.bolt-s3 { animation: lightning-frequent 14s infinite; animation-delay: 9s; }
.bolt-s4 { animation: lightning-frequent 16s infinite; animation-delay: 14s; }

/* Background bolts */
.bolt-bg-1 { animation: lightning-background 30s infinite; animation-delay: 12s; }
.bolt-bg-2 { animation: lightning-background 35s infinite; animation-delay: 18s; }

/* Massive bolts - less rare */
.bolt-m1 { animation: lightning-massive 80s infinite; animation-delay: 20s; }
.bolt-m2 { animation: lightning-massive 90s infinite; animation-delay: 60s; }

/* Lightning animation patterns */
@keyframes lightning-rare {
    0%, 98%, 100% { opacity: 0; filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3)); }
    98.2%, 98.8% { opacity: 0.9; filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8)); }
    98.5% { opacity: 0.6; filter: drop-shadow(0 0 30px rgba(0, 220, 255, 0.7)); }
}

@keyframes lightning-common {
    0%, 96%, 100% { opacity: 0; filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3)); }
    96.5%, 97.5%, 98.5% { opacity: 0.8; filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.7)); }
    97%, 98% { opacity: 0.5; filter: drop-shadow(0 0 20px rgba(0, 230, 255, 0.6)); }
}

@keyframes lightning-frequent {
    0%, 94%, 100% { opacity: 0; filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.2)); }
    94.5%, 95%, 95.5%, 96%, 96.5%, 97%, 97.5% { 
        opacity: 0.7; 
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6)); 
    }
    94.7%, 95.2%, 95.7%, 96.2%, 96.7%, 97.2% {
        opacity: 0.4;
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    }
}

/* Massive lightning strike animation */
@keyframes lightning-massive {
    0%, 98%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
        transform: translateX(-50%) scaleY(0.95);
    }
    98.2% {
        opacity: 0.05;
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.2));
        transform: translateX(-50%) scaleY(0.97);
    }
    98.4% {
        opacity: 0.8;
        filter: drop-shadow(0 0 60px rgba(0, 255, 255, 0.8));
        transform: translateX(-50%) scaleY(1.03);
    }
    98.6% {
        opacity: 0.4;
        filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.6));
        transform: translateX(-50%) scaleY(0.99);
    }
    98.8% {
        opacity: 0.9;
        filter: drop-shadow(0 0 80px rgba(0, 255, 255, 1));
        transform: translateX(-50%) scaleY(1.05);
    }
    99% {
        opacity: 0.6;
        filter: drop-shadow(0 0 50px rgba(0, 220, 255, 0.7));
        transform: translateX(-50%) scaleY(1);
    }
    99.2% {
        opacity: 0.3;
        filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.5));
        transform: translateX(-50%) scaleY(0.98);
    }
    99.5% {
        opacity: 0.1;
        filter: drop-shadow(0 0 20px rgba(0, 180, 255, 0.3));
        transform: translateX(-50%) scaleY(0.99);
    }
}

@keyframes lightning-main {
    0%, 96%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    }
    96.5% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1));
    }
    97% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7));
    }
    97.5% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 1));
    }
    98% { 
        opacity: 0.7;
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    }
    99% { 
        opacity: 0;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    }
}

/* Background lightning animation */
@keyframes lightning-background {
    0%, 97%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.2));
    }
    98% { 
        opacity: 0.4;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    }
}

/* Individual bolt patterns */
@keyframes lightning-strike-1 {
    0%, 97%, 100% { 
        opacity: 0;
        transform: translateX(-50%) scale(1, 0.9);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    }
    97.5% { 
        opacity: 0.9;
        transform: translateX(-50%) scale(1.02, 1);
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1));
    }
    98% { 
        opacity: 0.7;
        transform: translateX(-50%) scale(0.98, 1);
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    }
    98.5% { 
        opacity: 0.9;
        transform: translateX(-50%) scale(1.01, 1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.9));
    }
}

@keyframes lightning-strike-2 {
    0%, 96%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    }
    96.5% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 25px rgba(0, 200, 255, 0.9));
    }
    97% { 
        opacity: 0.5;
        filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.6));
    }
    97.5% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 30px rgba(0, 200, 255, 1));
    }
}

@keyframes lightning-strike-3 {
    0%, 95%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(0, 255, 200, 0.3));
    }
    96% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 30px rgba(0, 255, 200, 1));
    }
    96.5% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.7));
    }
    97% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 25px rgba(0, 255, 200, 0.9));
    }
}

@keyframes lightning-strike-4 {
    0%, 94%, 100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(0, 255, 230, 0.3));
    }
    95% { 
        opacity: 0.7;
        filter: drop-shadow(0 0 15px rgba(0, 255, 230, 0.8));
    }
    95.5% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 25px rgba(0, 255, 230, 1));
    }
    96% { 
        opacity: 0.5;
        filter: drop-shadow(0 0 20px rgba(0, 255, 230, 0.6));
    }
    96.5% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 30px rgba(0, 255, 230, 0.9));
    }
}

/* Flash effects */
@keyframes common-flash {
    0%, 96%, 100% { 
        background-color: rgba(0, 0, 0, 0.8);
        filter: brightness(1);
    }
    97% {
        background-color: rgba(180, 230, 255, 0.2);
        filter: brightness(1.3);
    }
    97.5% {
        background-color: rgba(200, 240, 255, 0.3);
        filter: brightness(1.5);
    }
    98% {
        background-color: rgba(0, 0, 0, 0.8);
        filter: brightness(1);
    }
}

/* Apply common flash to medium bolts */
.bolt-3 ~ .storm::after { animation: common-flash 20s infinite; animation-delay: 8s; }
.bolt-4 ~ .storm::after { animation: common-flash 25s infinite; animation-delay: 16s; }
.bolt-5 ~ .storm::after { animation: common-flash 22s infinite; animation-delay: 12s; }

/* Intensify flash when massive bolts strike */
@keyframes massive-flash {
    0%, 98%, 100% { 
        background-color: rgba(0, 0, 0, 0.8);
        filter: brightness(1);
    }
    98.2%, 98.8% {
        background-color: rgba(220, 250, 255, 0.25);
        filter: brightness(1.5);
    }
    98.4% {
        background-color: rgba(200, 240, 255, 0.4);
        filter: brightness(1.8);
    }
    99% {
        background-color: rgba(180, 230, 255, 0.3);
        filter: brightness(1.3);
    }
}

/* Apply massive flash effect to storm container */
.storm::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
    animation: massive-flash 40s infinite;
}

.bolt-m1 ~ .storm::after { animation-delay: 5s; }
.bolt-m2 ~ .storm::after { animation-delay: 15s; }

/* Lightning flash effect on the background */
@keyframes lightning-flash {
    0%, 96%, 100% { 
        background-color: rgba(0, 0, 0, 0.8); 
    }
    97% { 
        background-color: rgba(200, 240, 255, 0.15);
    }
    97.5% { 
        background-color: rgba(150, 220, 255, 0.25);
    }
    98% { 
        background-color: rgba(200, 240, 255, 0.1);
    }
    99% { 
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Apply the flash effect to the storm container */
.storm {
    animation: lightning-flash 25s infinite;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Add subtle movement to the background */
@keyframes cloud-movement {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

.storm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 100, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 40%, rgba(100, 100, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(100, 100, 100, 0.1) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: cloud-movement 60s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Make sure content stays above storm effects */
.glow-container {
    position: relative;
    z-index: 1;
}

/* Background with glow effect */
body {
    background: #000000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.glow-container {
    position: relative;
    z-index: 1;
}

/* Background glow */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 204, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.15) 0%, transparent 30%),
        #000000;
    z-index: -1;
    animation: glowPulse 8s infinite alternate;
    pointer-events: none;
}

/* Lightning effect - simplified */
.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    overflow: hidden;
}

/* About Section */
#about {
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
    position: relative;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.05);
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 15px;
    margin: -1px;
    pointer-events: none;
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.1), 
                    inset 0 0 0 1px rgba(0, 255, 204, 0.05);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 204, 0), 
                    inset 0 0 0 1px rgba(0, 255, 204, 0.1);
    }
}

#about .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 !important;
    margin: 0;
    overflow: visible;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    height: 80px;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Enhanced Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-text {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: float 3s ease-in-out infinite;
}

.hero-subtext {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    opacity: 0.9;
    text-shadow: 0 0 15px var(--primary-color);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: float 4s ease-in-out infinite;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 5px 0;
}

.logo:hover {
    transform: scale(1.03);
}

/* Logo image styles */
.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 32px var(--primary-color)) drop-shadow(0 0 48px #fff) brightness(1.28);
}
.logo-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.45) 30%, rgba(104,223,195,0.18) 60%, transparent 100%);
    opacity: 1;
    animation: logo-shine 2.5s infinite linear;
}
@keyframes logo-shine {
    0% { opacity: 0.85; filter: blur(0.5px); }
    50% { opacity: 1; filter: blur(2px); }
    100% { opacity: 0.85; filter: blur(0.5px); }
}

/* Logo text on the left */
.logo-text-container {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #68dfc3;
    position: relative;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.3s ease;
}

.logo-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
    filter: blur(12px) drop-shadow(0 0 24px var(--primary-color));
    z-index: -1;
    animation: text-glow 2s ease-in-out infinite;
    transform: translateZ(0);
}

.logo-text-container:hover .logo-text {
    transform: scale(1.05) translateZ(0);
}

@keyframes text-glow {
    0%, 100% {
        filter: blur(12px) drop-shadow(0 0 24px var(--primary-color));
        opacity: 0.7;
    }
    50% {
        filter: blur(16px) drop-shadow(0 0 40px var(--primary-color));
        opacity: 1;
    }
}

.logo-text {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.logo-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(0, 255, 204, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    filter: blur(6px);
    z-index: -1;
    animation: text-glow 2s ease-in-out infinite;
    transform: translateZ(0);
}

.logo-text:hover {
    transform: translateY(-10px) scale(1.05) translateZ(0);
}

.logo-text:hover::before {
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
    }
    50% {
        text-shadow: 0 0 25px rgba(0, 255, 204, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
    }
}

/* Navbar layout */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
    margin-top: 0;
    height: 80px;
}

/* Left side - Logo text container */
.navbar .logo-text-container {
    justify-self: start;
    z-index: 1;
    margin-top: -5px;
}

/* Center - Logo */
.navbar .logo {
    justify-self: center;
    align-self: center;
    height: 85px;
    width: 85px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar .logo:hover {
    transform: scale(1.1);
}

/* Right side - Navigation links */
.navbar .nav-links {
    justify-self: end;
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1;
    margin-top: -5px;
}

/* Navbar logo image */
.navbar .logo-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.6));
    transition: transform 0.3s ease;
    transform: scale(1);
    position: relative;
    z-index: 1;
}

/* Navbar logo glow effect */
.navbar .logo-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/Projekt bez nazwy (2).png') center/contain no-repeat;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    animation: logo-glow 2s ease-in-out infinite;
}

/* Navbar logo hover effect */
.navbar .logo:hover .logo-img {
    transform: scale(1.1);
}

.navbar .logo:hover .logo-img::before {
    filter: blur(10px);
    opacity: 0.8;
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: blur(8px) drop-shadow(0 0 20px rgba(0, 255, 204, 0.6));
        opacity: 0.6;
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 255, 204, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.6));
    }
}

/* Adjust logo text to align better with the new logo */


/* Adjust navigation height to accommodate larger logo */
header {
    padding: 0.5rem 2rem !important;
    height: 80px;
    display: flex;
    align-items: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    height: 100%;
    font-size: 1.1rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Section Styles */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Section */
.hero-text {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Clean Button with Lightning Bolt */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: var(--primary-color);
    color: #001a1e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
    background: #2ec4b6;
    color: #001a1e;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(64, 224, 208, 0.3);
    background: #2ec4b6;
    color: #001a1e;
}

.cta-button::after {
    content: '⚡';
    margin-left: 10px;
    font-size: 1.1em;
    display: inline-block;
    animation: lightning 2s infinite;
    opacity: 0.9;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 255, 204, 0.1),
        rgba(0, 255, 204, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon i {
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.15);
}

/* Portfolio Section */
#portfolio {
    text-align: center;
    padding: 5rem 2rem;
}

.portfolio-description {
    text-align: center;
    color: var(--text-color);
    margin-top: -2rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    display: block;
    width: 100%;
}

.portfolio-description::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        transparent);
    animation: borderPulse 4s ease-in-out infinite;
}

.portfolio-subdescription {
    text-align: center;
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.portfolio-container {
    position: relative;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, #68dfc3, transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 255, 204, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(100%);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    z-index: 1;
}
.portfolio-overlay::before,
.portfolio-overlay::after {
    position: absolute;
    z-index: 2;
}
.portfolio-overlay h3 {
    position: relative;
    z-index: 3;
    color: var(--primary-color);
    text-shadow: 0 2px 8px var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.portfolio-item:hover .portfolio-overlay::before {
    transform: scaleX(1);
}

.portfolio-item:hover .portfolio-overlay::after {
    transform: scaleX(1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
    }
}

/* Add lightning effect on hover */
.portfolio-item:hover {
    animation: lightningFlash 2s infinite;
}

@keyframes lightningFlash {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* Contact Section */
.contact-form {
    margin-top: 3rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 255, 204, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    .hero-subtext {
        font-size: 1.2rem;
    }
    .logo-text-container {
        justify-self: start;
        padding-left: 0;
        margin-left: 0.5rem;
        left: 0;
    }
}

.thunder-text-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.thunder-text {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 1rem 0;
    text-shadow: 0 0 10px var(--primary-color);
    animation: thunderText 3s infinite;
}

.thunder-text::before,
.thunder-text::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #68dfc3;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
    animation: boltFlash 2s infinite;
}

.thunder-text::before {
    left: -40px;
    animation-delay: 0.5s;
}

.thunder-text::after {
    right: -40px;
    animation-delay: 1s;
}

@keyframes thunderText {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 204, 0.8),
                     0 0 30px rgba(0, 255, 204, 0.6);
    }
}

@keyframes boltFlash {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Why Us Section */
.why-us-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 2rem auto;
}

.why-us-list li {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-us-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.why-us-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-list li:hover {
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 204, 0.2);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.1);
}

.why-us-list li:hover::before {
    opacity: 1;
}

.why-us-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .why-us-list li {
        font-size: 1rem;
        padding: 0.7rem 1rem;
        margin-bottom: 0.8rem;
    }
}

/* How We Work Section */
.work-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-top: -1rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.work-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        transparent);
    animation: borderPulse 4s ease-in-out infinite;
}

.work-steps {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.work-contact-button {
    text-align: center;
    margin-top: 1rem;
}

.work-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
}

.work-step:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
}

.step-number {
    background: var(--primary-color);
    color: var(--background-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .work-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    position: relative;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    opacity: 1;
}
.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.active .hamburger-line {
    opacity: 0;
    transform: translateY(-6px) scale(0.8);
}
.hamburger.active .close-icon {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 500px) {
    .hamburger {
        width: 32px;
        height: 32px;
    }
}

.mobile-menu {
    position: absolute;
    top: 70px;
    right: 0;
    width: 320px;
    background: #000;
    border-radius: 16px 0 0 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 0.75rem 0;
    display: none;
    flex-direction: column;
    z-index: 2000;
    font-size: 1.1rem;
    list-style: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu:not(.active) {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}
.mobile-menu li {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.15rem;
    border: none;
    background: none;
    text-align: center;
    border-radius: 10px;
    margin: 0.25rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}
.mobile-menu a:hover {
    background: var(--primary-color);
    color: #001a1e;
    box-shadow: 0 2px 12px rgba(104,223,195,0.15);
}
@media (max-width: 500px) {
    .mobile-menu {
        width: 100vw;
        border-radius: 0;
    }
}

/* Center the last two items if they are alone in the last row */
@media (min-width: 700px) {
    .portfolio-grid > .portfolio-item:nth-last-child(-n+2):nth-child(odd) {
        grid-column: 2 / span 1;
    }
}
