body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    background-color: white;
    overflow-x: hidden;
    transition: background-color 0.8s ease;
    cursor: none;
}

/* black bar */
.top-bar {
    background-color: black;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.brand-name {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* intro */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    transition: transform 1.2s ease-in-out, height 1.2s ease-in-out;
}

#intro-name {
    color: white;
    font-size: 42px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

#intro-screen.shrink-to-bar {
    transform: translateY(0);
    height: 40px;
    align-items: center;
}

#intro-name.move-to-bar {
    font-size: 16px;
    transition: font-size 1.2s ease-in-out;
}

.top-bar .brand-name {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-bar .brand-name.show {
    opacity: 1;
}

/* navbar fixed under black bar */
.color-navbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 70px;
    width: 100%;
    position: fixed;
    top: 40px;
    left: 0;
    z-index: 15;
}

.nav-box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: white;
    transform: translateY(-60px);
    opacity: 0;
}

.nav-box.slide-down {
    animation: slideDown 0.5s ease forwards;
}

.nav-box:hover {
    filter: brightness(1.05);
}


@keyframes slideDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.about-box {
    background-color: #2C6E91;
}

.projects-box {
    background-color: #9ed5de;
    color: white;
}

.contact-box {
    background-color: #C48A93;
}

/* left white column fixed */
.left-dropdown {
    width: 33.3333%;
    background-color: white;
    position: fixed;
    top: 110px; /* 40 top bar + 70 navbar */
    left: 0;
    height: calc(100vh - 110px);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    z-index: 10;
}

.left-dropdown h1 {
    font-size: 80px;
}



.left-dropdown.show {
    animation: dropdownReveal 0.7s ease forwards;
}

.left-dropdown-content {
    padding: 30px 25px;
    box-sizing: border-box;
    height: 100%;
    opacity: 0;
    transform: translateY(-20px);
    overflow-y: auto;
}

.left-dropdown.show .left-dropdown-content {
    animation: dropdownContentReveal 0.5s ease forwards;
    animation-delay: 0.2s;
}

/* right content area only */
#page-content {
    margin-top: 110px;
    margin-left: 33.3333%;
    width: 66.6667%;
    min-height: calc(100vh - 110px);
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 50px 30px;
    box-sizing: border-box;
}

#page-content.show {
    opacity: 1;
}

#content-inner {
    opacity: 0;
    transform: translateX(40px);
}

#content-inner.reveal-text {
    animation: fadeSlideIn 0.9s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dropdownReveal {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: calc(100vh - 110px);
        opacity: 1;
    }
}

@keyframes dropdownContentReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.about-section {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 250px;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

.about-text h1 {
    margin-top: 0;
    font-size: 40px;
}

.about-text p {
    font-size: 20px;
}


.about-divider {
    width: 100%;
    height: 2px;
    background-color: black;
    margin: 40px 0;
    opacity: 0.2;
}

.about-extra {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
}



.about-extra p {
    font-size: 20px;
}

.about-extra h1 {
    margin-top: 0;
    font-size: 40px;
}

.about-extra h2 {
    font-size: 30px;
}

.left-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.side-link {
    text-decoration: none;
    color: black;
    font-size: 30px;
    transition: color 0.25s ease;
}

.side-link.active {
    color: gray;
}

html {
    scroll-behavior: smooth;
}

.spy-section {
    scroll-margin-top: 140px;
}

.social-link {
    position: relative;
    width: fit-content;
    text-decoration: none;
    color: black;
    font-size: 18px;
}

/* animated underline */
.social-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-link:hover::after {
    transform: scaleX(1);
}

.left-column-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
}



/* Projects */

/* Projects */

.projects-section {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card {
    position: relative;
    box-sizing: border-box;
    min-height: 380px;
    overflow: hidden;
    border: none;
}

/* vertical divider for left-side cards: 1, 3, 5, etc. */
.project-card:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #1f1f1f;
    transform: scaleY(0);
    transform-origin: top;
}

/* horizontal divider for every row after the first */
.project-card:nth-child(n + 3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1f1f1f;
    transform: scaleX(0);
    transform-origin: left;
}

/* content hidden before animation */
.project-card__content {
    padding: 32px 28px;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(24px);
}

/* animate vertical dividers */
.projects-grid.animate-projects .project-card:nth-child(odd)::after {
    animation: drawVertical 0.6s ease forwards;
}

/* animate horizontal dividers */
.projects-grid.animate-projects .project-card:nth-child(n + 3)::before {
    animation: drawHorizontal 0.6s ease forwards;
}

/* show ALL project content */
.projects-grid.animate-projects .project-card .project-card__content {
    animation: fadeUpContent 0.6s ease forwards;
}

/* staggered text animation delays */
.projects-grid.animate-projects .project-card:nth-child(1) .project-card__content {
    animation-delay: 0.25s;
}

.projects-grid.animate-projects .project-card:nth-child(2) .project-card__content {
    animation-delay: 0.4s;
}

.projects-grid.animate-projects .project-card:nth-child(3) .project-card__content {
    animation-delay: 0.55s;
}

.projects-grid.animate-projects .project-card:nth-child(4) .project-card__content {
    animation-delay: 0.7s;
}

.projects-grid.animate-projects .project-card:nth-child(5) .project-card__content {
    animation-delay: 0.85s;
}

.projects-grid.animate-projects .project-card:nth-child(6) .project-card__content {
    animation-delay: 1s;
}

/* staggered divider delays */
.projects-grid.animate-projects .project-card:nth-child(1)::after {
    animation-delay: 0.1s;
}

.projects-grid.animate-projects .project-card:nth-child(3)::before,
.projects-grid.animate-projects .project-card:nth-child(4)::before {
    animation-delay: 0.35s;
}

.projects-grid.animate-projects .project-card:nth-child(3)::after {
    animation-delay: 0.45s;
}

.projects-grid.animate-projects .project-card:nth-child(5)::before,
.projects-grid.animate-projects .project-card:nth-child(6)::before {
    animation-delay: 0.6s;
}

.projects-grid.animate-projects .project-card:nth-child(5)::after {
    animation-delay: 0.7s;
}

.project-card h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 600;
}

.project-date {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.4;
}

.project-card ul {
    margin: 0;
    padding-left: 20px;
}

.project-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1rem;
}

.project-tech {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.5;
}

/* animations */
@keyframes drawHorizontal {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes drawVertical {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes fadeUpContent {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* tablet/mobile layout */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
    }

    .project-card:nth-child(odd)::after {
        display: none;
    }

    .project-card:nth-child(n + 3)::before {
        display: none;
    }

    .project-card:nth-child(n + 2)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #1f1f1f;
        transform: scaleX(0);
        transform-origin: left;
        display: block;
    }

    .projects-grid.animate-projects .project-card:nth-child(n + 2)::before {
        animation: drawHorizontal 0.6s ease forwards;
    }
}



.contact-section {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.contact-left {
    flex: 1.2;
    min-width: 320px;
}

.contact-right {
    flex: 0.8;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 18px;
    color: black;
}

.form-group input,
.form-group textarea {
    border: none;
    border-bottom: 1px solid black;
    background: transparent;
    outline: none;
    font-size: 18px;
    padding: 8px 0;
    font-family: 'Nunito', sans-serif;
    resize: none;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;   /* stops full width */
    width: auto;

    padding: 12px 22px;
    background-color: transparent;
    border: 1px solid black;
    border-radius: 0;
    color: black;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;

    transition: padding 0.3s ease;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #C48A93 inset;
    box-shadow: 0 0 0 1000px #C48A93 inset;
    -webkit-text-fill-color: black;
    caret-color: black;
    border: none;
    border-bottom: 1px solid black;
    transition: background-color 9999s ease-in-out 0s;
}

.btn-text {
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-8px);
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease;
}

.contact-btn:hover {
    width: auto;
    background-color: transparent;
    color: black;
}

.contact-btn:hover .btn-icon {
    width: 20px;
    margin-left: 10px;
    opacity: 1;
    transform: translateX(0);
}

.contact-btn:hover .btn-icon i {
    transform: translateX(2px) translateY(-1px);
    transition: transform 0.3s ease;
}

.btn-icon i {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    font-style: normal;
}

.contact-block h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.contact-block p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.contact-socials {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-socials a {
    position: relative;
    text-decoration: none;
    color: black;
    font-size: 16px;
}

.contact-socials a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-socials a:hover::after {
    transform: scaleX(1);
}


.home-parallax {
    opacity: 1 !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    padding: 0 8%;

    /* 🔥 Modern gradient background */
    background: linear-gradient(135deg, #e9f1f7, #dbe7f1);

    
}

/* LEFT SIDE (TEXT) */
.home-content {
    max-width: 600px;
}

.home-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0 !important;
    
}

.home-content h2 {
    font-size: 24px;
    color: #2f5d7c;
    margin: 0 !important;
    
}
.home-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #2f5d7c;
    margin: 0 !important;
    
}

.home-content p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin: none !important;
}

.btn-primary {
    padding: 12px 22px;
    background-color: #2f5d7c;
    border: 2px solid #2f5d7c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #244a63;
}


.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    border: 1px solid #2f5d7c;
    color: #2f5d7c;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    border: 2px solid #2f5d7c;
    transition: all 0.3s ease;
}

/* TEXT */
.home-btn .btn-text {
    white-space: nowrap;
}

/* ICON (hidden initially) */
.home-btn .btn-icon {
    display: inline-flex;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-8px);

    transition: 
        width 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        margin-left 0.3s ease;
}

/* HOVER ANIMATION */
.home-btn:hover .btn-icon {
    width: 20px;
    margin-left: 10px;
    opacity: 1;
    transform: translateX(0);
}

.home-btn:hover .btn-icon {
    transform: translateX(2px);
}
.btn-outline {
    padding: 12px 22px;
    border: 2px solid #2f5d7c;
    color: #2f5d7c;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #2f5d7c;
    color: white;
}

/* RIGHT SIDE (NO IMAGE – CLEAN DESIGN BOX) */
.home-visual {
    width: 400px;
    padding: 25px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    margin-top: 30px;
}

/* Background circle */
.home-visual::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(47, 93, 124, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    z-index: -1;
}

/* Chat rows */
.chat-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* User animation */
.user {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeLeft 0.7s ease forwards;
}

/* Bot animation */
.bot {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.9s;
}

/* Avatar */
.avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    background: #2f5d7c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.avatar i {
    line-height: 1;
}

.bot-avatar {
    background: #5aa0d6;
}

/* Message bubbles */
.bubble {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 260px;
}

/* Bot response bubble */
.response {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: fit-content;
    max-width: 280px;
    min-width: 70px;
    min-height: 22px;
    overflow: hidden;
    transition: all 0.25s ease;
}

/* Typing dots */
.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 20px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: #2f5d7c;
    border-radius: 50%;
    animation: bounce 0.8s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Bot text */
#botText {
    line-height: 1.5;
    white-space: normal;
}

/* Content inside bot */
.title {
    margin-bottom: 10px;
    font-weight: 500;
}

.item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.item span {
    color: #2f5d7c;
}

.item p {
    font-size: 12px;
    margin: 2px 0 0;
    color: #555;
}

/* Input bar */
.input-bar {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 10px;

    flex-shrink: 0; /* prevents shrinking */
}

.response {
    flex-grow: 0; /* prevents pushing input away weirdly */
}

.input-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
}

.input-bar button {
    background: #2f5d7c;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.input-bar button:hover {
    background: #244d69;
    
}

/* Animations */
@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 500px) {
    .home-visual {
        width: 100%;
        padding: 20px;
    }

    .home-visual::before {
        width: 350px;
        height: 350px;
    }

    .bubble {
        max-width: 220px;
        font-size: 13px;
    }
}


/* Mobile */

@media (max-width: 768px) {

    /* Hide left section completely on mobile */
    .left-dropdown {
        display: none !important;
    }

    /* Make content full width */
    #page-content {
        margin-left: 0;
        width: 100%;
        padding: 35px 22px;
    }

    /* Projects become one under another */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
    }

    .project-card::before,
    .project-card::after {
        display: none !important;
    }

    .project-card__content {
        opacity: 1;
        transform: none;
        padding: 28px 0;
        border-bottom: 1px solid black;
    }

    .projects-grid.animate-projects .project-card__content {
        animation: none;
    }

    /* Navbar mobile sizing */
    .color-navbar {
        height: 55px;
    }

    .nav-box {
        font-size: 16px;
    }

    #page-content {
        margin-top: 95px;
        min-height: calc(100vh - 95px);
    }

    .left-dropdown {
        top: 95px;
    }

    /* Contact/About content should also fit mobile */
    .contact-section,
    .about-section {
        flex-direction: column;
        gap: 35px;
    }

    .contact-left,
    .contact-right,
    .about-image,
    .about-text {
        min-width: 0;
        width: 100%;
    }
}

.mobile-footer-socials {
    display: none;
}

@media (max-width: 768px) {
    .mobile-footer-socials {
        display: flex;
        flex-direction: row;        /* side by side */
        gap: 20px;
        justify-content: space-between;
        margin-top: 45px;
        padding-top: 25px;
        border-top: 1px solid black;
    }

}

.mobile-highlights {
    display: none;
}

@media (max-width: 768px) {
    

    .home-parallax {
        background: linear-gradient(135deg, #e9f1f7, #dbe7f1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto !important;
    min-height: 0 !important;
    padding: 140px 22px 150px;

    gap: 25px;
    box-sizing: border-box;
    
    }

    .home-content {
        max-width: 100%;
        
    }

    .home-content h1 {
        font-size: 42px;
        line-height: 1;
    }

    .home-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .home-buttons {
        display: flex;
        gap: 10px;
        margin-top: 22px;
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-outline,
    .home-btn {
        padding: 10px 12px;
        font-size: 16px;
        white-space: nowrap;
    }

    .home-visual {
        display: none !important;
    }

    .mobile-highlights i{
        font-size: 30px;
    }

    .mobile-highlights {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
        width: 100%;
    }

    .highlight-item {
        background: rgba(255, 255, 255, 0.65);
        border: 1px solid rgba(47, 93, 124, 0.18);
        border-radius: 16px;
        padding: 18px 16px;
        color: #2f5d7c;
        box-shadow: 0 10px 25px rgba(0,0,0,0.06);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .highlight-item span {
        font-size: 22px;
        min-width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
    }

    .highlight-item p {
        margin: 0;
        font-size: 15px;
        line-height: 1.35;
        font-weight: 600;
    }

    .custom-cursor {
        display: none;
    }
}

/* hide default cursor */

/* custom cursor */
.custom-cursor {
    width: 14px;
    height: 14px;

    background: white;
    border-radius: 50%;

    position: fixed;
    top: 0;
    left: 0;

    pointer-events: none;
    transform: translate(-50%, -50%);

    transition:
        transform 0.15s ease,
        width 0.2s ease,
        height 0.2s ease,
        background-color 0.2s ease;

    z-index: 9999;

    mix-blend-mode: difference;
}
/* bigger on clickable elements */
.custom-cursor.active {
    width: 21px;
    height: 21px;

    background: rgba(255,255,255,0.9);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.75);
}

body,
button,
a,
input,
textarea,
select,
canvas,
* {
  cursor: none !important;
}

::selection {
  background: rgba(93, 53, 223, 0.2);
  color: white;
}