/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fafafa;
}

body.dark {
    --bg: #0e0e11;
    --text: #f5f5f5;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
}

/* Light & Dark Toggle */
.theme-toggle.floating {
    position: fixed;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.theme-toggle.floating:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body.dark .theme-toggle.floating {
    border-color: rgba(255,255,255,0.15);
}

/* Blob */
.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    transform: translate(-50%, -50%);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
}

.logo span {
    color: #ff4d6d;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 400;
}

nav a:hover {
    font-weight: 700;
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(225,110,196,0.6),rgba(120,115,245,0.4)), url(assets/hero-image-background.jpg);
    color: white;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    margin: 1rem 0 2rem;
    max-width: 500px;
}

.btn {
    background: white;
    color: #222;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
}

.hero .btn:hover {
    background:#222;
    color: #f1f1f1;
}

/* Sections */
section {
    padding: 4rem 3rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* About */
.about p {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

/* Work */
.work {
    padding: 5rem 5%;
}

.work h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.project {
    position: relative;
    border-radius: 20px;
    cursor: pointer;
}

.project img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s;
}

.card {
    background: white;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 500;
}

.card:hover {
    scale: 1.05;
    transition: 0.25s;
}

/* Skills */
.skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.skills li {
    background: #f1f1f1;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: #222;
}

/* Contact */
.contact {
    text-align: center;
    /*background: #222;*/
}

.contact .btn {
    background: #f1f1f1;
}

.contact .btn:hover {
    background:#222;
    color: #f1f1f1;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: white;
    background: linear-gradient(135deg, #ff4d6d, #6c63ff);
}

/* ===================== */
/* Media Queries */
/* ===================== */
@media (max-width: 768px) {
    .theme-toggle.floating {
        right: 45px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .hero {
        height: auto;
        padding: 4rem 1.5rem;
    }
}