:root {
    --primary-color: #4a7c59;       /* Billiard green */
    --secondary-color: #2c3e35;     /* Deep forest */
    --accent-color: #c9a96e;        /* Maple wood gold */
    --bg-color: #f5f0e8;            /* Warm ivory / parchment */
    --text-color: #3d3530;
    --card-bg: #ffffff;
    --nav-bg: rgba(245, 240, 232, 0.96);
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.8;
    padding-top: 70px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(6px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover { color: var(--primary-color); }

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* Header */
header {
    padding: 50px 0 40px;
    text-align: center;
    border-bottom: 2px dashed var(--accent-color);
    margin-bottom: 50px;
    background: linear-gradient(180deg, #ede8de 0%, var(--bg-color) 100%);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-bottom: 20px;
    background-color: #fff;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

header .tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 6px;
}

header .location {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 22px;
}

header .location i { margin-right: 5px; }

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
section { margin-bottom: 65px; }

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About */
.about-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: justify;
}

.about-content p { margin-bottom: 18px; }
.about-content p:last-of-type { margin-bottom: 0; }

.motto-block {
    margin-top: 28px;
    padding: 20px 25px;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--secondary-color);
}

.personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item a {
    color: var(--text-color);
    text-decoration: none;
}

.detail-item a:hover { color: var(--primary-color); }

/* Timeline */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.timeline-item {
    padding: 22px 28px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
}

.timeline-year {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.timeline-item ul {
    margin-left: 18px;
    margin-top: 6px;
}

.timeline-item ul li { margin-bottom: 4px; }

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px dashed var(--accent-color);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    border-style: solid;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.97rem;
}

.skill-rating {
    color: var(--accent-color);
    font-size: 0.88rem;
}

/* Brand / Products */
.brand-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.brand-card-body {
    padding: 35px 40px 40px;
}

.brand-card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: var(--secondary-color);
}

.brand-card-body p {
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.8;
}

.brand-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 124, 89, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 53, 0.3);
}

.btn-primary i { margin-left: 6px; }

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: #9ca3af;
    border-top: 1px solid #e8e3d8;
}

/* Scroll to Top */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 99;
    border: none; outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 50px; height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn[style*="display: block"] { display: flex !important; }

#scrollTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.08);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active { left: 0; }

    header h1 { font-size: 2.2rem; }

    .about-content { padding: 24px; }

    .brand-card-body { padding: 25px 20px 30px; }
}
