/* =====================================================
   1. RESET & GLOBAL BASE
===================================================== */

/* Reset default browser spacing and box behaviour */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable smooth scrolling across the page */
html {
    scroll-behavior: smooth;
}

/* Global body styling and background setup */
body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 20% 30%, #0d0d0d, #050505);
    color: #eaeaea;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Base styling for all sections */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

/* Section heading typography and visual treatment */
section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.6px;
    position: relative;
    animation: fadeIn 0.8s ease forwards;
}

/* Decorative underline for section headings */
section h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    border-radius: 2px;
    opacity: 0.8;
    transition: width 0.4s ease;
}

/* Hover expansion for section underline */
section h2:hover::after {
    width: 100px;
}

/* Paragraph styling inside sections */
section p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #d4d4d4;
}

/* =====================================================
   2. LAYOUT STRUCTURE
===================================================== */

/* Main layout wrapper */
.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Fixed left sidebar container */
.sidebar {
    width: 50vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Inner layout of the sidebar */
.sidebar-content {
    height: 100%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Scrollable main content area */
.main-content {
    margin-left: 50vw;
    width: 50vw;
    min-height: 100vh;
    position: relative;
    z-index: 1;

    padding: 80px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* =====================================================
   3. HEADER & NAVIGATION
===================================================== */

/* Sticky header container */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.85);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

/* Header title styling */
header h1 {
    color: #a855f7;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Navigation list layout */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

/* Base navigation link styling */
nav a {
    color: #eaeaea;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Navigation underline indicator */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #a855f7;
    transition: width 0.3s ease;
}

/* Hover staate for navigation links */
nav a:hover {
    color: #a855f7;
}

/* Hover underline animation */
nav a:hover::after {
    width: 100%;
}

/* Active navigation link */
nav a.active {
    color: #a855f7;
}

/* Active navigation underline */
nav a.active::after {
    width: 100%;
}

/* Side navigation container */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 100px;
}

/* Side navigation link styling */
.side-nav a {
    text-decoration: none !important;
    border: none !important;
    font-size: 0.9rem;
    color: #a1a1aa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

/* Side navigation hover state */
.side-nav a:hover {
    color: #a855f7;
    transform: translateX(4px);
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

/* Disable underline for side nav */
.side-nav a::after {
    content: none !important;
}

/* Active side navigation link */
.side-nav a.active {
    color: #c084fc;
    text-shadow:
        0 0 6px rgba(168, 85, 247, 0.9),
        0 0 14px rgba(168, 85, 247, 0.7),
        0 0 25px rgba(192, 132, 252, 0.5);
    transform: translateX(6px);
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* =====================================================
   4. HERO / INTRO SECTION
===================================================== */

/* Hero container layout */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Intro label above main heading */
.intro-tag {
    color: #8b5cf6;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Main hero heading */
.hero-name {
    font-size: 3.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #8a5cf6, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 5px 0 10px;
}

/* Subtitle / role text */
.hero-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Short descriptive line under title */
.hero-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c3b9ff;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Hero description text */
.hero-desc {
    font-size: 0.95rem;
    color: #d1d1d1;
    max-width: 300px;
    line-height: 1.6;
    margin: 0 auto 25px;
}

/* Primary call-to-action button */
.hero-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Hover effect for primary button */
.hero-btn:hover {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

/* Button shine animation */
.hero-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.hero-btn:hover::after {
    left: 125%;
    opacity: 1;
}

/* Wrapper for hero content spacing */
.intro-block {
    margin-top: 40px;
}

/* Social icons container */
.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 22px;
    margin-top: 150px;
}

/* Social icon images */
.social-icons a img {
    width: 26px;
    height: 26px;
    filter: invert(79%) sepia(43%) saturate(7475%) hue-rotate(240deg) brightness(99%) contrast(103%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Social icon hover effect */
.social-icons a:hover img {
    transform: scale(1.15);
    filter: invert(84%) sepia(52%) saturate(6665%) hue-rotate(270deg) brightness(103%) contrast(105%);
}

/* Email link container */
.email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Email icon styling */
.mail-icon {
    width: 26px;
    height: 26px;
    filter: invert(79%) sepia(43%) saturate(7475%) hue-rotate(240deg) brightness(99%) contrast(103%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Email icon hover state */
.email-link:hover .mail-icon {
    transform: scale(1.15);
    filter: invert(84%) sepia(52%) saturate(6665%) hue-rotate(270deg) brightness(103%) contrast(105%);
}


/* Social profile link layout */
.linkedin-link,
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Social icon styling */
.linkedin-icon,
.github-icon {
    width: 18px;
    height: 18px;
    stroke: #a855f7;
    transition: transform 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

/* Social icon hover effect */
.linkedin-link:hover .linkedin-icon,
.github-link:hover .github-icon {
    transform: translateY(-2px);
    stroke: #c084fc;
    filter: drop-shadow(0 0 6px #a855f7) drop-shadow(0 0 12px #c084fc);
}

/* =====================================================
   5. OVERVIEW / ABOUT SECTION
===================================================== */

/* About section container */
.about-section {
    font-size: 1.05rem;
    color: #d6d6d6;
    line-height: 1.8;
    max-width: 720px;
    margin: 60px auto 40px auto;
    text-align: left;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeIn 1s ease forwards;
    padding: 0 20px;
}

/* About section paragraph text */
.about-section p {
    color: #d1d1d1;
    margin-bottom: 20px;
}

/* Highlighted quote inside about section */
.about-section em {
    display: block;
    text-align: right;
    color: #a855f7;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.9;
}

/* Centered quote text */
.about-quote {
    font-style: italic;
    color: #a855f7;
    margin-top: 10px;
    display: block;
    text-align: center;
    opacity: 0.9;
}

/* Contact section container */
#contact {
    text-align: left;
    margin-top: 60px;
}

/* Contact list layout */
#contact ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

/* Individual contact list item */
#contact li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Contact links */
#contact a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Contact link hover state */
#contact a:hover {
    color: #c084fc;
    text-shadow: 0 0 8px #a855f7;
}

/* =====================================================
   6. PROJECTS SECTION
===================================================== */

/* Project grid layout */
#projects .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Individual project card */
#projects .card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Project card hover effect */
#projects .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Project thumbnail image */
#projects .card img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

/* Project card content */
#projects .card .content {
    padding: 20px;
    color: #eaeaea;
}

/* Project title */
#projects .card .content h3 {
    font-size: 1.2rem;
    color: #8b5cf6;
    margin-bottom: 10px;
}

/* Project status label */
.status-tag {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Primary button styling */
.btn {
    display: inline-block;
    position: relative;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

/* Button hover state */
.btn:hover {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

/* Disabled / coming-soon button */
.btn[disabled],
.btn.coming-soon {
    position: relative;
    overflow: visible;
    background-color: #333;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Disabled button hover override */
.btn[disabled]:hover,
.btn.coming-soon:hover {
    background-color: #333;
    transform: none;
}

/* Tooltip for diabled buttons */
.btn.coming-soon::after {
    content: "Under Development 👷‍♀️";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
    color: #f3e8ff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #7e22ce;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    word-wrap: break-word;
}

/* Tooltip arrow */
.btn.coming-soon::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #5b21b6 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Tooltip visibility on hover */
.btn.coming-soon:hover::after,
.btn.coming-soon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* =====================================================
   7. FOOTER
===================================================== */

/* Footer container */
footer {
    text-align: center;
    padding: 35px 20px;
    font-size: 0.9rem;
    color: rgba(220, 220, 220, 0.7);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(15, 15, 15, 0.8) 80%);
    backdrop-filter: blur(8px);
    letter-spacing: 0.4px;
    margin-top: 80px;
}

/* Footer etxt styling */
footer p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Emphasised text inside footer */
footer strong {
    color: #a855f7;
    font-weight: 600;
}

/* =====================================================
   8. EFFECTS & EXTRAS (cursor, glow, hover)
===================================================== */

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 700px;
    height: 700px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(0, 0, 0, 0) 80%);
    filter: blur(120px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease, left 0.1s ease-out, top 0.1s ease-out;
}

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 0 10px #8b5cf6, 0 0 20px #a855f7;
}

/* Scroll-to-top hover state */
#scrollTopBtn:hover {
    background-color: #a855f7;
    box-shadow: 0 0 20px #a855f7, 0 0 40px #c084fc;
    transform: translateY(-3px);
}

/* =====================================================
   9. ANIMATIONS
===================================================== */

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulsing glow animation */
@keyframes pulseGlow {
    0%,
    100% {
        text-shadow:
            0 0 6px rgba(168, 85, 247, 0.9),
            0 0 14px rgba(168, 85, 247, 0.7),
            0 0 25px rgba(192, 132, 252, 0.5);
    }

    50% {
        text-shadow:
            0 0 12px rgba(168, 85, 247, 1),
            0 0 28px rgba(168, 85, 247, 0.8),
            0 0 42px rgba(192, 132, 252, 0.7);
    }
}

/* =====================================================
   10. RESPONSIVE (MEDIA QUERIES)
===================================================== */

@media (max-width: 1100px) {
    .btn.coming-soon::after {
        left: 40%;
        transform: translateX(-40%);
    }

    .btn.coming-soon::before {
        left: 40%;
        transform: translateX(-40%);
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 10px;
    }

    section {
        padding: 60px 15px;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 60px 30px;
        align-items: center;
        text-align: center;
        background: #0b0b0b;
    }

    .hero-name {
        font-size: 2.6rem;
    }

    .hero-role {
        font-size: 1.2rem;
    }

    .hero-desc {
        max-width: 90%;
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .social-icons {
        justify-content: center;
        gap: 18px;
        margin-top: 30px;
    }

    .social-icons a img {
        width: 22px;
        height: 22px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 60px 25px;
        text-align: justify;
    }

    #projects .grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }   
}

@media (max-width: 600px) {
    .btn.coming-soon::after {
        left: 30%;
        transform: translateX(-30%);
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .btn.coming-soon::before {
        left: 30%;
        transform: translateX(-30%);
    }
}