:root {
    --bg-color: #000000;
    --text-color: #FFD700;
    --accent-color: #FFD700;
    --secondary-text: #888888;
    --padding: 2rem;
    --max-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Eloquent easing */
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(30, 30, 30, 0.3), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(40, 40, 40, 0.2), transparent 25%);
    z-index: -1;
    pointer-events: none;
    animation: gradientMove 20s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem var(--padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Home Banner Section */
.home-banner {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-color);
    /* Ensure background is solid color */
}

.banner-image {
    display: none;
    /* Hide background image */
}

/* Fallback/Placeholder style */
.banner-image .portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111 0%, #222 100%);
}


.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    margin-right: 100px;
    text-align: right;
}

.banner-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-image img {
    filter: grayscale(100%);
    /* Ensure B&W theme */
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 3rem;
    }
}

/* Sections */
.section {
    padding: 8rem var(--padding);
}

#works {
    padding: 8rem 0;
}

#works .container {
    padding: 0;
}

.work-tab:hover,
.work-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 4rem;
    opacity: 0.5;
}

/* About */
.about-content p {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    max-width: 900px;
    letter-spacing: -1px;
}

/* About Infographics */
.about-extra {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.experience-card,
.skills-container {
    width: 100%;
}

.experience-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05), transparent 70%);
}

.exp-icon {
    font-size: 4rem;
    color: var(--text-color);
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.exp-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.exp-years {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    display: block;
}

.exp-details {
    margin-left: auto;
    text-align: right;
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Skills Grid */
.skills h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--secondary-text);
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: #050505;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 120px;
}

.skill-card:hover {
    background: #111;
    transform: translateY(-5px);
    border-color: var(--text-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--icon-color);
    /* Use icon color */
    height: 50px;
    display: flex;
    align-items: center;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    /* Keep white for readability against yellow icons */
}

@media (max-width: 900px) {
    .experience-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .exp-details {
        margin: 0;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Works */

.work-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.work-tab {
    background: transparent;
    border: none;
    color: var(--secondary-text);
    font-size: 1rem;
    cursor: pointer;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.work-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #000;
}

.work-item img,
.work-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    opacity: 0.8;
}

.work-item:hover img,
.work-item:hover iframe {
    transform: scale(1.05);
    opacity: 1;
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-item:hover::after {
    opacity: 1;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.work-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.work-item:active .work-overlay {
    transform: scale(0.98);
}

/* Modal */
/* Modal - Full Page Scrollable */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    /* Full opacity background or slight transparency */
    overflow-y: auto;
    /* Enable vertical scrolling */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-scroll-container {
    width: 100%;
    min-height: 100%;
    position: relative;
    padding: 60px 0;
    /* Space for close button and bottom */
}

.project-modal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hide scrollbar for cleaner look if desired, but standard is fine */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #000;
}

.modal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Reuse project detail styles inside sidebar if needed, 
   but they are globally defined at the bottom of the file, so they should work. */


/* Contact */
/* Contact */
.phone-link {
    font-size: 4rem;
    font-weight: 900;
    display: block;
    margin: 2rem 0 1rem;
    word-break: break-all;
    line-height: 1;
    letter-spacing: -2px;
}

.email-link {
    font-size: 2rem;
    font-weight: 900;
    display: block;
    margin: 0 0 4rem;
    word-break: break-all;
    line-height: 1;
    letter-spacing: -1px;
}

.phone-link:hover,
.email-link:hover {
    color: var(--secondary-text);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 4rem var(--padding);
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        /* Text on top/bottom depending on preference, actually text on top usually better on mobile, but image first is also common. Let's stack naturally */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-image {
        width: 100%;
        height: 50vh;
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, simple implementation */
    }

    .about-content p {
        font-size: 1.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .phone-link {
        font-size: 2rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}

/* Project Detail Page */
.project-detail-page {
    min-height: 100vh;
    padding-bottom: 4rem;
}

.project-media {
    width: 100%;
    margin-bottom: 3rem;
}

.project-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project-media iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    display: block;
}

.project-info {
    max-width: 800px;
    margin: 0 auto;
}

.project-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.project-info p {
    font-size: 1.25rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(4) {
    transition-delay: 0.4s;
}