:root {
    --bg-main: #fcfcfc;
    --bg-alt: #f3f4f6;
    --accent: #0d9488; /* Deep Teal */
    --accent-gold: #d97706; /* Soft Gold */
    --accent-glow: rgba(13, 148, 136, 0.1);
    --text-main: #111827; /* Dark Charcoal */
    --text-muted: #4b5563; /* Gray 600 */
    --border: rgba(13, 148, 136, 0.15);
    --gold-border: rgba(217, 119, 6, 0.3);
    --card-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.05);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Typography */
h1 { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; color: #064e3b; }
h2 { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 700; margin-bottom: 1.5rem; color: #064e3b; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 50px; height: 4px; background: var(--accent-gold); border-radius: 2px; }
h2.center::after { left: 50%; transform: translateX(-50%); }

h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: #064e3b; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span { color: var(--accent-gold); }

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--accent); }

/* Sections */
.section { padding: 9rem 0; }
.alt-bg { background: linear-gradient(to bottom, #fcfcfc, #f3f4f6); }

.section-header { margin-bottom: 5rem; }
.section-header.center { text-align: center; }

.sub-title {
    display: block;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}

/* Premium Card */
.glass {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 3rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(13, 148, 136, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn.primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn.secondary:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.role {
    font-size: 1.6rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
    font-size: 1.6rem;
    color: #9ca3af;
}

.social-links a:hover { color: var(--accent); transform: translateY(-5px); }

.hero-btns { display: flex; gap: 1.5rem; }

.hero-visual { 
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.2);
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
}

.visual-card {
    background: #fff;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 2.5rem;
    width: fit-content;
    box-shadow: 20px 20px 0px rgba(13, 148, 136, 0.05);
    z-index: 5;
}

.visual-card i { font-size: 3rem; color: var(--accent-gold); margin-bottom: 1.5rem; }
.stat { font-size: 3rem; font-weight: 900; display: block; color: #064e3b; letter-spacing: -2px; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.floating {
    position: absolute;
    bottom: -40px;
    right: -20px;
    box-shadow: -20px -20px 0px rgba(217, 119, 6, 0.03);
    border: 1px solid var(--border);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-gold));
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 5px solid var(--accent);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.1);
}

.date {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(217, 119, 6, 0.05);
    padding: 0.2rem 1rem;
    border-radius: 4px;
}

.company { font-weight: 800; margin-bottom: 1.2rem; display: block; font-size: 1.2rem; color: #064e3b; }

.timeline-item ul {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item li {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    list-style-type: square;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid var(--border);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.skill-card h3 { font-size: 1.2rem; }

/* Featured Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.project-card {
    padding: 3rem;
    text-align: center;
}

.project-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.project-card h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.project-card p { font-size: 1.05rem; color: var(--text-muted); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3.5rem;
}

.testimonial-card {
    padding: 3.5rem;
    position: relative;
}

.testimonial-card i.fa-quote-left {
    font-size: 2.5rem;
    color: var(--accent-glow);
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.author {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.author strong { display: block; color: #064e3b; font-size: 1.1rem; }
.author span { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

/* Achievements */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.achievement-item i { font-size: 2.5rem; color: var(--accent-gold); }
.achievement-item p { font-weight: 700; font-size: 1.1rem; color: #064e3b; }

/* Resume & Languages */
.resume-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.lang-tags {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.8rem 1.8rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
    display: inline-block;
}

.tag:hover {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.05);
}

.center-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lang-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-weight: 500;
}

.resume-download p { margin-bottom: 2.5rem; font-size: 1.1rem; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-method { text-align: center; }
.contact-method i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; }
.contact-method a:hover { color: var(--accent-gold); }

/* Footer */
footer {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    background: #fff;
    letter-spacing: 1px;
}

/* Animations */
[class*="animate-"] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-up { transform: translateY(50px); }
.animate-left { transform: translateX(-50px); }
.animate-right { transform: translateX(50px); }

.show {
    opacity: 1 !important;
    transform: none !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 2000;
}

.back-to-top.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.3);
}

/* Stagger Logic */
.stagger-container .animate-up,
.stagger-container .animate-left,
.stagger-container .animate-right {
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.achievement-item:hover i {
    animation: pulse-gold 1.5s infinite;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .social-links { justify-content: center; }
    .resume-split { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-item::before { left: 11px; }
}
