:root {
    --primary-color: #0d9488; /* Teal-600 */
    --primary-dark: #115e59; /* Teal-800 */
    --primary-light: #ccfbf1; /* Teal-100 */
    --accent-color: #f97316; /* Orange-500 */
    --accent-light: #fff7ed; /* Orange-50 */
    --bg-color: #f8fafc; /* Slate-50 */
    --text-color: #334155; /* Slate-700 */
    --text-light: #64748b; /* Slate-500 */
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.97);
    --border-color: #e2e8f0; /* Slate-200 */
    --border-radius: 16px;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

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.7;
    padding-top: 72px;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 0.9rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.bar {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 5px auto;
    background-color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg-color) 50%, var(--accent-light) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-tagline strong {
    color: var(--accent-color);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--body-font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Hero decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: -40px;
    right: 20%;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    top: 30%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========== SECTIONS ========== */
.section {
    padding: 90px 0;
}

.section-alt {
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
    position: relative;
}

.section-title span {
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title + .about-grid,
.section-title + .journey-content,
.section-title + .exp-cards,
.section-title + .edu-grid,
.section-title + .skills-categories,
.section-title + .projects-grid,
.section-title + .interests-grid,
.section-title + .contact-content {
    margin-top: 50px;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

/* ========== JOURNEY ========== */
.journey-content {
    max-width: 750px;
    margin: 50px auto 0;
}

.journey-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.85;
}

.journey-quote {
    margin: 40px 0 0;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-left: 5px solid var(--accent-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.journey-quote p {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.journey-quote footer {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========== EXPERIENCE ========== */
.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 50px auto 0;
}

.exp-card {
    background: var(--card-bg);
    padding: 36px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.exp-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
}

.exp-period {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.exp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.exp-company {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.exp-company i {
    color: var(--accent-color);
    margin-right: 6px;
}

.exp-card > p:last-child {
    color: var(--text-light);
    line-height: 1.75;
}

/* ========== EDUCATION ========== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.edu-card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.edu-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 20px;
}

.edu-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-school {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.edu-year {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== SKILLS ========== */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.skill-category {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border: none;
    padding: 48px;
}

.project-card.featured h3 {
    color: white;
    font-size: 1.6rem;
}

.project-card.featured p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
}

.project-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 8px;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(4px);
}

/* ========== INTERESTS ========== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.interest-item {
    text-align: center;
    padding: 40px 28px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-6px);
}

.interest-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-color);
    margin: 0 auto 20px;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.interest-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.interest-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact-content {
    text-align: center;
    max-width: 550px;
    margin: 50px auto 0;
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 40px 0;
    background: var(--primary-dark);
    color: var(--primary-light);
    font-size: 0.9rem;
}

/* ========== SCROLL TO TOP ========== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99;
    border: none;
    outline: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

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

#scrollTopBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid,
    .edu-grid,
    .skills-categories,
    .interests-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        padding: 24px 0;
        gap: 4px;
    }

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

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .about-grid,
    .edu-grid,
    .skills-categories,
    .interests-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: 1;
    }

    .edu-card h3 {
        min-height: auto;
    }

    .section {
        padding: 60px 0;
    }

    .about-card,
    .exp-card {
        padding: 28px;
    }

    .contact-content {
        padding: 32px;
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }
}
