/* ---------------------- */
/* Global Styles          */
/* ---------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: white;
    background: radial-gradient(circle at bottom, #0a0f1f, #050910 90%);
    overflow-x: hidden;
    position: relative;
}

/* ---------------------- */
/* Header & Logo Styling  */
/* ---------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background: rgba(10, 15, 31, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* ---------------------- */
/* Animated Logo Core     */
/* ---------------------- */

.logo-icon {
    position: relative;
    width: 70px;
    height: 70px;
    opacity: 0;
    transform: scale(0.6);
    filter: drop-shadow(0 0 8px #4CC9F0) brightness(1.2);
    animation: logoIntro 2.2s ease-out forwards, pulseGlow 2.5s infinite alternate 2.2s;
    transform-origin: center;
    transition: transform 0.6s ease, filter 0.6s ease;
}

    /* rotating pseudo-layer so hover scale doesn't conflict */
    .logo-icon::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url("/images/logo.png") no-repeat center/contain;
        animation: spinLogo 28s linear infinite;
    }

/* Hover – zoom dramatically */
.logo:hover .logo-icon {
    transform: scale(2.5);
    filter: drop-shadow(0 0 40px #00E0FF) brightness(2);
}

/* Glow pulse effect */
@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 10px #4CC9F0) brightness(1.2);
    }

    to {
        filter: drop-shadow(0 0 35px #00E0FF) brightness(1.6);
    }
}

/* Continuous rotation */
@keyframes spinLogo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Intro fade + zoom-in */
@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
        filter: drop-shadow(0 0 0px #4CC9F0);
    }

    60% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
        filter: drop-shadow(0 0 18px #00E0FF);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px #4CC9F0);
    }
}

/* ---------------------- */
/* Navigation             */
/* ---------------------- */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        nav ul li a:hover {
            color: #4CC9F0;
        }

/* ---------------------- */
/* Hero Section           */
/* ---------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 30px;
}

.btn-glow {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #4CC9F0, #4361EE);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 15px #4CC9F0;
    transition: 0.3s;
}

    .btn-glow:hover {
        box-shadow: 0 0 25px #4361EE;
        transform: scale(1.05);
    }

/* ---------------------- */
/* Sections               */
/* ---------------------- */
section {
    padding: 100px 80px;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.about-section p {
    max-width: 700px;
    margin: auto;
    color: #cbd5e1;
}

/* ---------------------- */
/* Services Section       */
/* ---------------------- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(100, 255, 255, 0.1);
    transition: all 0.4s;
}

    .card:hover {
        box-shadow: 0 0 20px #38bdf8;
        transform: translateY(-5px);
    }

/* ---------------------- */
/* Projects Section       */
/* ---------------------- */
.projects-section p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* ---------------------- */
/* Contact Section        */
/* ---------------------- */
.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}

input, textarea {
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
    resize: none;
}

/* ---------------------- */
/* Footer Section         */
/* ---------------------- */
footer {
    background: rgba(10, 15, 31, 0.8);
    text-align: center;
    padding: 25px 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

    footer .social img {
        width: 28px;
        margin: 0 10px;
        opacity: 0.85;
        filter: drop-shadow(0 0 6px #4CC9F0);
        transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    }

        footer .social img:hover {
            transform: scale(1.2);
            opacity: 1;
            filter: drop-shadow(0 0 15px #4CC9F0);
        }

/* ---------------------- */
/* Background Animation   */
/* ---------------------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #050910, #0b1325, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------------------- */
/* Glow Links             */
/* ---------------------- */
.glow-link {
    color: #4CC9F0;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

    .glow-link:hover {
        text-shadow: 0 0 10px #4CC9F0;
        color: #93c5fd;
    }
