/* =========================================
   Base & Variables
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --second-bg-color: #1e293b;
    /* Slate 800 */
    --text-color: #f8fafc;
    /* Slate 50 */
    --main-color: #0ea5e9;
    /* Sky 500 */
    --main-color-hover: #0284c7;
    /* Sky 600 */
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #6366f1);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-primary);
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    font-family: var(--font-heading);
    margin-bottom: 3rem;
}

.heading span {
    color: var(--main-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Header & Navbar
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.sticky {
    padding: 1.5rem 9%;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    letter-spacing: 1px;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: #cbd5e1;
    /* Slate 300 */
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--gradient-primary);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

/* =========================================
   Hero Section (Home)
   ========================================= */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.3;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content p {
    font-size: 1.6rem;
    color: #94a3b8;
    /* Slate 400 */
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 3rem;
}

.social-links {
    margin-bottom: 3rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
    transform: translateY(-3px);
}

.home-img .blob-wrapper {
    position: relative;
    width: 32vw;
    height: 32vw;
    background: url('profile.jpg') center/cover no-repeat;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
    animation: blob-bounce 5s infinite ease-in-out alternate;
    border: 4px solid var(--main-color);
}

.home-img .blob-content {
    font-size: 3.5rem;
    /* Reduced from 10rem to fit the longer text */
    text-align: center;
    padding: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes blob-bounce {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* =========================================
   About Section
   ========================================= */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--second-bg-color);
}

.about-img .img-box {
    width: 30vw;
    height: 30vw;
    border-radius: 2rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    transition: 0.3s;
}

.about-img .img-box:hover {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.4);
    transform: scale(1.02);
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 1rem 0 2rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.6rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* =========================================
   Skills Section
   ========================================= */
.skills {
    background: var(--bg-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-box {
    background: var(--second-bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid transparent;
    transition: 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-box i {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    display: inline-block;
    transition: 0.3s;
}

.skill-box:hover i {
    transform: scale(1.1);
}

.skill-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-box p {
    font-size: 1.4rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* =========================================
   Projects Section
   ========================================= */
.projects {
    background: var(--second-bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--bg-color);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 250px;
    background: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-img i {
    color: var(--main-color);
    opacity: 0.5;
}

.project-info {
    padding: 2.5rem;
}

.project-info h4 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-info p {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-info a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--second-bg-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.6rem;
    transition: 0.3s ease;
}

.project-info a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    background: var(--bg-color);
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid transparent;
    transition: 0.3s;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
    margin-bottom: 2rem;
}

.contact form .btn {
    margin-top: 1rem;
    cursor: pointer;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text p {
    font-size: 1.5rem;
    color: #94a3b8;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .3s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }

    .header.sticky {
        padding: 1.5rem 5%;
    }

    section {
        padding: 10rem 5% 2rem;
    }

    .footer {
        padding: 2rem 5%;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-content p {
        margin: 0 auto 3rem;
    }

    .about {
        flex-direction: column;
    }

    .about-img .img-box {
        width: 50vw;
        height: 50vw;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center;
    }

    .home-img .blob-wrapper {
        width: 60vw;
        height: 60vw;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}