/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* =========================
   ROOT COLOR
========================= */

:root {
    --bg-color: #f5f7ff;
    --text-color: #111;
    --card-color: rgba(255, 255, 255, 0.7);
    --primary: #6c63ff;
    --secondary: #8f94fb;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* =========================
   DARK MODE
========================= */

body.dark {
    --bg-color: #0f172a;
    --text-color: #ffffff;
    --card-color: rgba(255, 255, 255, 0.08);
    --shadow: rgba(255, 255, 255, 0.1);
}

/* =========================
   BODY
========================= */

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: 0.4s;
    overflow-x: hidden;
}

/* =========================
   HEADER
========================= */

header {
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

/* =========================
   NAVBAR
========================= */

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary);
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* =========================
   DARK MODE BUTTON
========================= */

#darkModeToggle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    transition: 0.3s;
}

#darkModeToggle:hover {
    transform: scale(1.1) rotate(10deg);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 8%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 65px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

/* =========================
   BUTTON
========================= */

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-5px);
}

/* =========================
   HERO IMAGE
========================= */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--primary);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.5);
}

.glow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

/* =========================
   CARD SECTION
========================= */

.cards-section {
    padding: 50px 8% 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-color);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* =========================
   ABOUT & CONTACT
========================= */

.about-page,
.contact-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 8%;
}

.about-container,
.contact-container {
    width: 100%;
    max-width: 900px;
    background: var(--card-color);
    padding: 50px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px var(--shadow);
}

.about-container h1,
.contact-container h1 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-container p {
    line-height: 1.8;
    margin-bottom: 30px;
}

/* =========================
   SKILLS
========================= */

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.skill-box:hover {
    transform: scale(1.05);
}

/* =========================
   FORM
========================= */

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
textarea {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
}

textarea {
    resize: none;
}

/* =========================
   SOCIAL MEDIA
========================= */

.social-media {
    margin-top: 40px;
    text-align: center;
}

.social-media h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 28px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social {
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.instagram {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
}

.whatsapp {
    background: linear-gradient(135deg, #00c853, #64dd17);
}

.social:hover {
    transform: translateY(-5px) scale(1.05);
}

/* =========================
   ANIMATION
========================= */

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 14px;
    }

    #darkModeToggle {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .glow-circle {
        width: 220px;
        height: 220px;
    }

    .cards-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .about-container,
    .contact-container {
        width: 100%;
        padding: 30px 20px;
        border-radius: 25px;
    }

    .about-container h1,
    .contact-container h1 {
        font-size: 30px;
        text-align: center;
    }

    .skills {
        grid-template-columns: 1fr 1fr;
    }

    .social-icons {
        flex-direction: column;
        align-items: center;
    }

    .social {
        width: 100%;
        justify-content: center;
    }
}