/* ----------------------------------------------------
   GLOBAL STYLES + BACKGROUND GRADIENT ANIMATION
-----------------------------------------------------*/

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

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 20% 20%, #5327ff 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, #ff3e8f 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, #00eaff 0%, transparent 40%);
    animation: bgMove 14s infinite alternate ease-in-out;
    z-index: -1;
    opacity: 0.45;
}

@keyframes bgMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.3) translate(60px, -40px); }
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

/* ----------------------------------------------------
   NAVIGATION
-----------------------------------------------------*/

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(15px);
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff3e8f;
}

#menu-toggle {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
}

/* ----------------------------------------------------
   HERO SECTION
-----------------------------------------------------*/

#hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text span {
    background: linear-gradient(90deg, #ff3e8f, #5327ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text p {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
}

.hero-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 4px solid rgba(255,255,255,0.15);
    animation: float 4s infinite ease-in-out;
}

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

/* Button */
.btn {
    padding: 14px 35px;
    background: linear-gradient(90deg, #ff3e8f, #5327ff);
    border-radius: 30px;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

/* ----------------------------------------------------
   SECTION TITLES
-----------------------------------------------------*/

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* ----------------------------------------------------
   PROJECT CARDS (SUPER MODERN GLASS UI)
-----------------------------------------------------*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    transition: 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.project-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.12);
}

.project-links a {
    color: #00eaff;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    transition: 0.3s;
}

.project-links a:hover {
    color: #ff3e8f;
}

/* ----------------------------------------------------
   CONTACT FORM (GLASS UI)
-----------------------------------------------------*/

#contact {
    padding: 100px 0;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 1rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #00eaff;
    outline: none;
}

#form-status {
    margin-top: 10px;
    font-weight: 600;
}

/* ----------------------------------------------------
   FOOTER
-----------------------------------------------------*/

footer {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
-----------------------------------------------------*/

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.6);
        padding: 20px;
        border-radius: 12px;
        position: absolute;
        right: 20px;
        top: 70px;
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-img {
        width: 260px;
        height: 260px;
    }
}
