@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ===== BASIC ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #f7f3ed;
    color: #28231f;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ===== NAVBAR ===== */
.header {
    min-height: 76px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 243, 237, 0.96);
    border-bottom: 1px solid #e2d8cc;
    box-shadow: 0 4px 20px rgba(55, 42, 32, 0.04);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #332820;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #5d534c;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #b27648;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #332820;
    font-size: 27px;
    cursor: pointer;
}


/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 76px);
    padding: 70px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;

    background:
        radial-gradient(circle at 87% 30%,
        rgba(213, 170, 119, 0.28),
        transparent 27%),
        linear-gradient(135deg, #faf7f2, #f1e7dc);
}

.hero-text {
    width: 55%;
    max-width: 650px;
}

.small-title {
    display: inline-block;
    padding: 7px 13px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: #f0dfce;
    color: #a8663d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 23px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(43px, 5vw, 66px);
    line-height: 1.08;
    color: #29221d;
}

.hero-description {
    max-width: 570px;
    margin-bottom: 32px;
    color: #6d625a;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ===== BUTTONS ===== */
.primary-btn,
.secondary-btn,
.project-btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.primary-btn,
.project-btn {
    background: #b97849;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(153, 91, 49, 0.18);
}

.primary-btn:hover,
.project-btn:hover {
    background: #9f633c;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(153, 91, 49, 0.25);
}

.secondary-btn {
    color: #45372e;
    background: rgba(255,255,255,0.55);
    border: 1px solid #cdb8a5;
}

.secondary-btn:hover {
    color: #a6633b;
    border-color: #a6633b;
    transform: translateY(-3px);
}


/* ===== HERO IMAGE ===== */
.hero-image {
    width: 38%;
    max-width: 400px;
    padding: 9px;
    background: rgba(255,255,255,0.65);
    border: 1px solid #dac9ba;
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(68, 48, 34, 0.15);
    transform: rotate(0deg);
}

.hero-image img {
    width: 100%;
    height: 475px;
    object-fit: cover;
    object-position: center top;
    border-radius: 15px;
}


/* ===== SECTIONS ===== */
.about,
.skills,
.projects,
.services,
.contact {
    padding: 85px 8%;
}

.about,
.projects,
.contact {
    background: #f1e8de;
}

.skills,
.services {
    background: #fbf9f6;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 42px;
}

.section-heading > p {
    margin-bottom: 8px;
    color: #ad6d42;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.7px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    color: #302720;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
}


/* ===== ABOUT ===== */
.about-content {
    max-width: 950px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.about-content p {
    padding: 27px;
    background: rgba(255,255,255,0.78);
    color: #6b615a;
    border: 1px solid #dfd2c6;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(71, 52, 38, 0.06);
}


/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    min-height: 145px;
    padding: 27px;
    background: #ffffff;
    border: 1px solid #e3d9cf;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(63, 47, 36, 0.05);
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #c9946d;
    box-shadow: 0 15px 35px rgba(72, 51, 36, 0.10);
}

.skill-card h3 {
    margin-bottom: 9px;
    color: #332820;
    font-size: 19px;
}

.skill-card p {
    color: #776d66;
    font-size: 14px;
}


/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ddcfc2;
    border-radius: 17px;
    box-shadow: 0 15px 38px rgba(67, 47, 33, 0.08);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(67, 47, 33, 0.14);
}

.project-card > img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    object-position: top;
}

.project-content {
    padding: 27px;
}

.project-content h3 {
    margin-bottom: 9px;
    font-family: 'Playfair Display', serif;
    color: #302720;
    font-size: 24px;
}

.project-content p {
    margin-bottom: 21px;
    color: #746a63;
}


/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    min-height: 170px;
    padding: 29px;
    background: #ffffff;
    border: 1px solid #e3d9cf;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(63, 47, 36, 0.05);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #c9946d;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #332820;
    font-size: 19px;
}

.service-card p {
    color: #776d66;
    font-size: 14px;
}


/* ===== CONTACT ===== */
.contact {
    text-align: center;
    background:
        radial-gradient(circle at center,
        rgba(211, 167, 121, 0.20),
        transparent 38%),
        #f1e8de;
}

.contact .section-heading {
    margin-left: auto;
    margin-right: auto;
}

.contact-text {
    max-width: 550px;
    margin: -18px auto 28px;
    color: #70665f;
}


/* ===== FOOTER ===== */
.footer {
    padding: 25px 8%;
    text-align: center;
    background: #332820;
    border-top: 1px solid #493a30;
}

.footer p {
    color: #d9cec5;
    font-size: 13px;
}


/* ===== TABLET ===== */
@media (max-width: 900px) {

    .hero {
        gap: 35px;
    }

    .hero-text {
        width: 55%;
    }

    .hero-image {
        width: 42%;
    }

    .hero-image img {
        height: 420px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .header {
        min-height: 70px;
        padding: 0 6%;
    }

    .logo {
        font-size: 19px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        background: #f7f3ed;
        border-bottom: 1px solid #dfd2c6;
        box-shadow: 0 12px 25px rgba(55,42,32,0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 55px 6% 70px;
        flex-direction: column;
        text-align: center;
        gap: 45px;
    }

    .hero-text {
        width: 100%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 335px;
        transform: none;
    }

    .hero-image img {
        height: 400px;
    }

    .about,
    .skills,
    .projects,
    .services,
    .contact {
        padding: 70px 6%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-card > img {
        height: 240px;
    }
}


/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        max-width: 290px;
    }

    .hero-image img {
        height: 350px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .project-card > img {
        height: 200px;
    }
}