@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    --dark: #202b40;
    --gold: #a36e4f;
    --gold-light: #e6c982;
    --cream: #fffdf9;
    --text: #222222;
    --muted: #77766f;
    --border: #e5ded3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.navbar {
    width: 100%;
    padding: 22px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid #e9e1d6;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.brand {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--dark);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navbar nav a {
    font-size: 12px;
    font-weight: 700;
    color: #5f5f5a;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--gold);
}

.nav-button {
    padding: 11px 19px;
    background: var(--dark);
    color: white;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.nav-button:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.hero {
    min-height: 650px;
    padding: 85px 10%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
    background:
        radial-gradient(ellipse at 0% 0%, #e8d5b866, transparent 35%),
        var(--cream);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--dark);
    font-size: clamp(60px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -5px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.hero-text {
    max-width: 440px;
    margin-top: 28px;
    color: #686862;
    font-size: 15px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 23px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    background: var(--dark);
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.primary-button:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px #a36e4f30;
}

.text-button {
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    isolation: isolate;
}

.image-frame {
    width: 100%;
    height: 480px;
    position: relative;
    overflow: visible;
    border: none;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}
.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 10px;
    box-shadow: none;
}
.image-label {
    position: absolute;
    right: -25px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px #202b4014;
    z-index: 5;
}

.image-label p {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #76a86c;
    box-shadow: 0 0 0 4px #76a86c20;
}

.decorative-circle {
    position: absolute;
    z-index: -1;
    top: 30px;
    right: -35px;
    width: 110px;
    height: 110px;
    border: 1px dashed #c6a15c;
    border-radius: 50%;
}


.hero-visual::before {
content: "</>";
position: absolute;
z-index: 3;
top: 0;
left: 0;
display: grid;
place-items: center;
width: 76px;
height: 76px;
border-radius: 22px;
background: rgba(255, 253, 249, 0.95);
border: 1px solid #d9c49b;
box-shadow: 0 16px 35px #202b4017;
color: var(--gold);
font: 700 22px monospace;
animation: floatBadge 5s ease-in-out infinite;
}

.floating-code-card {
    position: absolute;
    z-index: 4;
    left: -55px;
    bottom: 75px;
    width: 220px;
    padding: 13px 16px 16px;
    border: 1px solid #ffffff55;
    border-radius: 13px;
    background: #202b40ed;
    color: var(--cream);
    box-shadow: 0 18px 40px #202b4030;
    backdrop-filter: blur(10px);
    animation: floatBadge 6s ease-in-out infinite reverse;
}

.code-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--gold-light);
}

.floating-code-card pre {
    margin-top: 12px;
    white-space: pre-wrap;
    font: 11px/1.8 monospace;
}

.floating-code-card pre span {
    color: var(--gold-light);
}

.section {
    padding: 100px 10%;
}

.section-heading h2,
.contact-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(35px, 4vw, 53px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--dark);
}

.section-heading h2 span,
.contact-cta h2 span {
    color: var(--gold);
    font-style: italic;
}

.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
    background: white;
}

.about-content > p {
    color: #696963;
    font-size: 14px;
    line-height: 2;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.skill-tags span {
    padding: 9px 14px;
    border: 1px solid #e5d7bf;
    border-radius: 25px;
    background: #fffaf1;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    transition: 0.3s ease;
}

.skill-tags span:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-3px);
}

.projects {
    background: #f8f5ef;
}

.project-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 45px;
}

.section-description {
    max-width: 310px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e0d4;
    border-radius: 17px;
    background: white;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px #202b4012;
}

.project-art {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-label {
    position: absolute;
    top: 17px;
    left: 17px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
}

.coffee-art {
    flex-direction: column;
    background:
        radial-gradient(circle at 75% 20%, #ffffff20 0 60px, transparent 61px),
        linear-gradient(135deg, #29251f, #6b4d35);
    color: #f4e8d4;
}

.coffee-logo {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    line-height: 1.1;
}

.coffee-art > p {
    margin-top: 17px;
    font-size: 9px;
    letter-spacing: 3px;
}

.women-art {
    background:
        radial-gradient(circle at 80% 25%, #ffffff25 0 60px, transparent 61px),
        linear-gradient(135deg, #e8c7b8, #a36e4f);
    color: #fffdf9;
}

.women-content {
    padding: 20px;
    text-align: center;
}

.women-content > p {
    font-size: 9px;
    letter-spacing: 3px;
}

.women-content h3 {
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.1;
}

.women-content > span {
    font-size: 9px;
    letter-spacing: 2px;
}

.portfolio-art {
    background:
        radial-gradient(circle at 15% 80%, #e6c98266, transparent 40%),
        #e9e3d8;
}

.mini-browser {
    width: 80%;
    min-height: 165px;
    overflow: hidden;
    border: 1px solid #ffffff;
    border-radius: 9px;
    background: #fffdf9;
    box-shadow: 0 15px 30px #202b4020;
}

.browser-dots {
    padding: 9px 12px;
    background: #f1ece4;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;
}

.mini-browser-content {
    padding: 18px;
}

.mini-browser-content > p {
    color: var(--gold);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mini-browser-content h3 {
    margin: 8px 0;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    line-height: 1.15;
}

.mini-browser-content > span {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 2px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 6px;
}

.project-info p {
    color: var(--muted);
    font-size: 10px;
}

.education {
    background: white;
}

.education .section-heading {
    margin-bottom: 40px;
}

.education-list {
    border-top: 1px solid var(--border);
}

.education-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.education-year {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.education-item h3 {
    margin-bottom: 7px;
    color: var(--dark);
    font-size: 17px;
}

.education-item p {
    color: var(--muted);
    font-size: 13px;
}

.contact-cta {
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 100%, #d8c09b55, transparent 45%),
        #f8f5ef;
}

.contact-cta h2 {
    max-width: 700px;
    margin: 0 auto 20px;
}

.contact-cta > p:not(.eyebrow) {
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 14px;
}
.skills-section {
    padding: 100px 10%;
    background: #fffdf9;
    color: #202b40;
}

.skills-heading {
    text-align: center;
    margin-bottom: 55px;
}

.skills-subtitle {
    color: #a36e4f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.skills-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 55px);
    font-weight: 500;
    margin-bottom: 15px;
}

.skills-heading h2 span {
    color: #a36e4f;
    font-style: italic;
}

.skills-heading > p:last-child {
    color: #77766f;
    font-size: 14px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 45px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #202b40;
    font-size: 14px;
    font-weight: 700;
}

.skill-info span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-info i {
    color: #a36e4f;
    font-size: 19px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e9e2d8;
}

.skill-progress {
    width: var(--progress);
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #a36e4f, #e6c982);
    transform-origin: left;
    animation: skillFill 1.4s ease-out both;
    transition: filter 0.3s ease;
}

.skill-item:hover .skill-progress {
    filter: brightness(1.1);
}

@keyframes skillFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 700px) {
    .skills-section {
        padding: 70px 7%;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .skills-heading {
        margin-bottom: 38px;
    }

    .skill-info {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skill-progress {
        animation: none;
    }
}


/* Contact section */

.contact {
    padding: 100px 8%;
    background: #fffdf9;
    color: var(--dark);
}

.contact > h2 {
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 500;
}

.contact-text {
    margin: 0 auto 45px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 35px;
    max-width: 1100px;
    margin: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px;
    background: white;
    border: 1px solid #e9e0cf;
    border-radius: 16px;
    box-shadow: 0 5px 15px #b8860b10;
    transition: 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    background: #fffaf0;
    box-shadow: 0 8px 22px #b8860b25;
}

.contact-icon {
    min-width: 36px;
    color: #9f740a;
    font-size: 26px;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 6px;
    color: #9b720a;
    font-size: 17px;
}

.contact-box p {
    color: #222222;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: white;
    border: 1px solid #a98613;
    border-radius: 20px;
    box-shadow: 0 5px 20px #0000000f;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 17px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    color: #111111;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #9c730c;
    box-shadow: 0 0 0 3px #b8860b15;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form button {
    padding: 16px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #b8860b, #e6c65c);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: var(--dark);
    color: var(--gold-light);
}

.form-note {
    color: var(--muted);
    font-size: 11px;
}

/* Footer */

.footer {
    display: block;
    width: 100%;
    padding: 0;
    background: #111111;
    color: white;
    border-top: 3px solid #b7931c;
    text-align: center;
}

.footer-content {
    padding: 45px 8% 35px;
}

.footer-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.footer-content h2 span {
    color: #d6b55f;
    font-style: italic;
}

.footer-content p {
    color: #cccccc;
    font-size: 13px;
}

.footer-bottom {
    width: 100%;
    padding: 20px 10px;
    border-top: 1px solid #59491e;
}

.footer-bottom p {
    margin: 0;
    color: #aaaaaa;
    font-size: 12px;
}

/* Animations */

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(12deg);
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet responsive design */

@media (max-width: 1000px) {
    .navbar {
        padding: 20px 5%;
    }

    .navbar nav {
        gap: 15px;
    }

    .navbar nav a {
        font-size: 11px;
    }

    .hero {
        gap: 35px;
        padding: 70px 6%;
    }

    .hero h1 {
        font-size: clamp(58px, 8vw, 78px);
    }

    .image-frame {
        height: 420px;
    }

    .section {
        padding: 80px 6%;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .floating-code-card {
        left: -15px;
    }

    .about {
        gap: 35px;
    }
}

/* Mobile responsive design */

@media (max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px 6%;
    }

    .brand {
        font-size: 18px;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .navbar nav a {
        font-size: 10px;
    }

    .nav-button {
        padding: 9px 12px;
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        min-height: auto;
        padding: 65px 7% 80px;
    }

    .hero h1 {
        font-size: clamp(58px, 14vw, 82px);
        letter-spacing: -3px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-visual {
        max-width: 340px;
    }

    .image-frame {
        height: 390px;
    }

    .image-label {
        right: -5px;
    }

    .floating-code-card {
        left: -8px;
        bottom: 35px;
        width: 190px;
    }

    .hero-visual::before {
        left: -8px;
        width: 58px;
        height: 58px;
        font-size: 18px;
    }

    .section {
        padding: 65px 6%;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-heading h2 {
        font-size: 39px;
    }

    .project-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-art {
        height: 240px;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    .contact {
        padding: 65px 6%;
    }

    .contact > h2 {
        font-size: 35px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 20px;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-content {
        padding: 35px 5%;
    }

    .footer-content h2 {
        font-size: 27px;
    }
}

@media (max-width: 380px) {
    .navbar nav {
        gap: 6px;
    }

    .navbar nav a {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}