/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-color: #020202;
    --second-bg-color: #0a0a0a;
    --text-color: #ffffff;
    --main-color: #ffffff;
    /* Clean White */
    --accent-color: #b0b0b0;
    /* Silver Grey */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syne', 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%;
    overflow-x: hidden;
    background: var(--bg-color);
}

body {
    background: transparent;
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/topo_bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    /* Increased for better visibility */
    z-index: -1;
    pointer-events: none;
    filter: contrast(1.1);
    /* Removed brightness reduction */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--main-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.logo:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Glassmorphism Section Style */
section {
    min-height: 100vh;
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-frame {
    width: 100%;
    max-width: 1300px;
    min-height: 85vh;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    /* Sophisticated thin border */
    border-radius: 6rem;
    padding: 6rem 5%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home .section-frame {
    flex-direction: row;
    text-align: left;
}

.about .section-frame,
.skills .section-frame,
.projects .section-frame,
.contact .section-frame {
    flex-direction: column;
}

.heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 800;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, var(--text-color), var(--main-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.2);
}

.highlight {
    color: var(--main-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.flashy-text {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.home-content p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 60rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 1.8rem 4.5rem;
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 40px var(--main-color);
}

.btn:hover::before {
    left: 0;
}

.social-icons 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: 2.5rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: 0 0 25px var(--main-color);
    background: transparent;
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

/* Home Image & Glowing Box */
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.home-img::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--main-color);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 0;
}

.glowing-circle {
    width: 450px;
    height: 450px;
    position: relative;
    border-radius: 50%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--main-color), var(--accent-color));
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

/* Blending effect */
.glowing-circle {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.glowing-circle:hover img {
    transform: scale(1.05);
}

.glowing-circle img {
    transition: 0.5s ease;
}

/* Skills Section */
.about-content p {
    font-size: 1.8rem;
    /* Increased from default 1.6rem */
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    background: transparent;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
}

/* Glassmorphism Components */
.skill-box,
.project-box,
.contact-form,
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    /* Slightly more rounded */
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.skill-box:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--main-color) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.5s ease;
    z-index: 0;
}

.skill-box:hover:before {
    width: 200%;
    height: 200%;
    opacity: 0.05;
}

.skill-box:hover,
.project-box:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) scale(1.05);
}

.skill-box i {
    position: relative;
    z-index: 1;
    font-size: 6rem;
    /* Larger icons */
    color: var(--main-color);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--main-color));
    transition: 0.5s ease;
}

.skill-box:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.skill-box h3 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
    height: 300px;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.project-box:hover img {
    transform: scale(1.1);
    filter: brightness(30%);
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-box:hover .project-layer {
    transform: translateY(0);
}

.project-layer h4 {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--main-color);
    margin-bottom: 1rem;
}

.project-layer p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.project-layer a i {
    font-size: 2rem;
    color: var(--bg-color);
}

/* Contact Section */
.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;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 4rem 9%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

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

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
    }

    .input-box input {
        width: 100% !important;
    }
}

@media (max-width: 617px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}