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

@import 'liquid.css';

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    color: #111111;
}

body.preloader-active {
    overflow: hidden;
    /* Hide scrollbar during preloader */
}

/* About Section */
.about-section {
    padding: 100px 5%;
    /* Generous padding */
    background: #ffffff;
    color: #111111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-height: 60vh;
    /* Takes up significant screen space */
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 2vw, 24px);
    /* Much smaller heading */
    margin-bottom: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 7vw, 90px);
    line-height: 1.1;
    max-width: 1400px;
    color: #111111;
    margin: 0;
    cursor: default;
    /* Indicate interactivity */
}

.text-part {
    transition: color 0.3s ease;
}

/* When hovering the paragraph, make all parts light gray */
.about-section p:hover .text-part {
    color: #d3d3d3;
}

/* But keep the specific part being hovered black */
.about-section p .text-part:hover {
    color: #111111;
}

/* Skills Section */
.skills-section {
    padding: 100px 5%;
    background: #ffffff;
    color: #111111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    /* Keep physics inside */
}

.skills-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-container {
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    border: 2px solid #111111;
    position: relative;
    overflow: hidden;

    background: #f9f9f9;
}

/* Projects Section */
/* Projects Section */
.projects-section {
    min-height: 400vh;
    /* More vertical space for 4 items */
    background: transparent;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-family: 'Oswald', sans-serif;
}

.project-showcase {
    width: 300px;
    background: #ffffff;
    border: 1px solid #000000;
    margin-top: 30vh;
    /* Reduced slightly to fit more items */
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    /* Default centering overridden by nth-child rules below */

    /* Interactive Effects */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-showcase:hover {
    transform: translateY(-10px);
    /* Pop up effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Alternate positioning */
.project-showcase:nth-of-type(odd) {
    align-self: flex-start;
    margin-left: 15%;
    /* Major gap from left */
}

.project-showcase:nth-of-type(even) {
    align-self: flex-end;
    margin-right: 15%;
    /* Major gap from right */
}

.project-img-holder {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
    border: 1px solid #eee;
}

.project-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Grayscale Effect */
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.project-showcase:hover .project-img-holder img {
    filter: grayscale(0%);
    /* Full color on hover */
    transform: scale(1.05);
    /* Slight zoom for extra pop */
}

.project-showcase h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
}


.projects-section .project-showcase .project-desc {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 8px !important;
    /* Force small size */
    color: #444;
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
}

.projects-section h2 {
    font-size: clamp(80px, 12vw, 150px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    text-align: center;
    line-height: 0.9;

    /* Sticky magic */
    position: sticky;
    top: 50vh;
    /* Center vertically */
    transform: translateY(-50%);
    /* Adjust for height */
    z-index: 1;
    /* Behind the card */
}

/* Experience Section */
.experience-section {
    min-height: 100vh;
    background: transparent;
    color: #000000;
    display: flex;
    flex-direction: row;
    position: relative;
    border-top: 1px solid #eee;
}


.experience-left {
    width: 40%;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    padding-left: 20px;
    border-right: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1;
    /* Behind the cards */
}

.experience-left h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(30px, 6vw, 80px);
    /* Reduced size to fit */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    transform: none;
    text-align: left;
}


.experience-right {
    width: 60%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 50px 5%;
    /* Reduced top padding to bring cards up */
    gap: 0;
}

.exp-card {
    background: #ffffff;
    border: 2px solid #000;
    padding: 40px;
    width: 450px;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 1);
    transition: transform 0.3s ease;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    /* In front of the EXPERIENCE text */
}

.exp-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 1);
}

.exp-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.exp-details .role {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.exp-details p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.exp-details ul {
    list-style: none;
    padding: 0;
}

.exp-details ul li {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.exp-details ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* Responsive: Tablets (768px and below) */
@media (max-width: 768px) {
    .experience-section {
        flex-direction: column;
    }

    .experience-left {
        width: 100%;
        height: auto;
        position: relative;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .experience-right {
        width: 100%;
        align-items: center;
        padding: 40px 20px;
    }

    .exp-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Responsive: Mobile (480px and below) */
@media (max-width: 480px) {
    .experience-left h2 {
        font-size: clamp(40px, 10vw, 60px);
    }

    .exp-card {
        padding: 30px;
        width: 100%;
        box-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
    }

    .exp-card:hover {
        transform: translate(-3px, -3px);
        box-shadow: 9px 9px 0px rgba(0, 0, 0, 1);
    }

    /* Skills section responsive */
    .skills-section {
        padding: 60px 20px;
    }

    .skills-section h2 {
        font-size: clamp(30px, 8vw, 50px);
    }

    .skills-container {
        height: 50vh;
        max-width: 100%;
    }
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-top: 1px solid #eee;
}

.contact-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
}

.contact-button {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    text-transform: lowercase;
    padding: 20px 60px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

.contact-button:hover {
    background: #fff;
    color: #000;
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 1);
}

/* Footer Section */
.footer-section {
    background: #000000;
    color: #ffffff;
    padding: 60px 5%;
    display: flex;
    justify-content: space-between;
    /* Space between KAVYA and social icons */
    align-items: center;
}

.footer-section h1 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #888;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    pointer-events: none;
    z-index: 0;
}

.grid-line {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
}

.grid-line:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}



.percentage-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 300;
    color: #d3d3d3;
    font-family: 'Arial', 'Helvetica', sans-serif;
    letter-spacing: 2px;
}

/* Logo */
.logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 30px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111111;
    font-family: 'Arial Black', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.logo:hover {
    transition: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 30px;
    opacity: 0;
}

.menu-box {
    position: relative;
}

.menu-toggle {
    background: #111111;
    color: #ffffff;
    border: 2px solid #111111;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.menu-toggle:hover {
    background: #ffffff;
    color: #111111;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #111111;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid #111111;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-link {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-link:last-child {
    border-bottom: none;
}

.menu-link:hover {
    background: #ffffff;
    color: #111111;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 0;
    opacity: 0;
    background: transparent;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px 40px;
}

.main-content h1,
.section h1,
.section h2 {
    font-size: 138px;
    margin-bottom: 20px;
    color: #111111;
}

.main-content p,
.section p {
    font-size: 60px;
    color: #111111;
}

/* Responsive */
@media (max-width: 768px) {


    .percentage-counter {
        bottom: 20px;
        right: 20px;
        font-size: clamp(20px, 3vw, 36px);
    }

    .logo {
        padding: 15px 20px;
        font-size: clamp(20px, 3vw, 28px);
    }

    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        padding: 10px 20px;
        font-size: 12px;
    }

    .menu-dropdown {
        min-width: 180px;
    }

    .main-content h1,
    .section h1,
    .section h2 {
        font-size: 36px;
    }
}

/* Animated Letters */
/* Animated Letters */
.anim-letter {
    display: inline-block;
    font-style: italic;
    color: #111111;
    /* Default black */
    background-image: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    cursor: default;
    transition: color 1s ease;
}

.anim-letter.active {
    color: transparent;
    /* Reveal gradient */
    animation: gradientMove 4s linear forwards;
}

.anim-letter:hover {
    filter: brightness(1.2);
    /* Just brighten on hover, no move */
    transition: all 0.3s ease;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Gallery Styles */
.gallery-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* z-index removed to allow children to interleave with text */
}

.gallery-img {
    position: absolute;
    width: 150px;
    height: auto;
    /* Square for perfect circle */
    object-fit: cover;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    /* Center on cursor and start small */
    border-radius: 8px;
    /* Make circle */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    /* Let clicks pass through */
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .gallery-img {
        width: 100px !important;
        /* Smaller on mobile */
        opacity: 0.5;
        /* Fade out a bit on mobile to focus on text */
    }
}

/* Ensure text is above gallery */
section.hero-section h1 {
    position: relative;
    z-index: 2;
}