/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #1e3a8a;
    --accent-color: #2563eb;
    --gold-accent: #f59e0b;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-medium: #334155;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
    --shadow-lg: 0 20px 50px rgba(30, 64, 175, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.08);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 140px 0 90px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.highlight {
    color: #fbbf24;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.2s backwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.2rem;
    font-weight: 600;
    animation: fadeInUp 0.8s 0.3s backwards;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s 0.6s backwards;
}

.stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.stat h3 {
    font-size: 2.75rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.stat p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s 0.8s backwards;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(30, 64, 175, 0.45);
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 90px 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-accent));
    margin: 1rem auto 0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* About Section */
.about {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(30, 64, 175, 0.12);
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-of-type {
    border-bottom: none;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 24px;
}

.about-info .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Experience Section */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--gold-accent));
    border-radius: 999px;
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 0 6px rgba(30, 64, 175, 0.12), 0 4px 12px rgba(30, 64, 175, 0.25);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(30, 64, 175, 0.18), 0 6px 16px rgba(30, 64, 175, 0.35);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.1);
    margin: 0 2rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--gold-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(30, 64, 175, 0.18);
    border-color: rgba(30, 64, 175, 0.2);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-content h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 700;
}

.timeline-date {
    background: linear-gradient(135deg, var(--bg-light), #eff6ff);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.timeline-content li:hover {
    color: var(--text-dark);
    transform: translateX(4px);
}

.timeline-content li strong {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.timeline-content li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.timeline-content li:hover::before {
    transform: scale(1.3);
    color: var(--accent-color);
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 52px rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.45);
}

.project-icon i {
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.8;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.project-tech span {
    background: linear-gradient(135deg, var(--bg-light), #eff6ff);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 2px solid var(--border-color);
}

.metric {
    text-align: center;
    min-width: 0;
}

.metric strong {
    display: block;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    font-weight: 800;
    word-wrap: break-word;
}

.metric span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
}

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

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.15);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skill-category i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Skill Items with Progress Bars */
.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item.past-skill {
    opacity: 0.6;
}

.skill-item.past-skill .skill-name {
    font-style: italic;
    opacity: 0.8;
}

.skill-item.past-skill .skill-bar {
    opacity: 0.7;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.6s ease;
}

.skill-item:hover .skill-level {
    background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
}

.skill-level-text {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags span {
    background: var(--bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.skill-tags span:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3);
}

.skill-tags span.past-skill {
    opacity: 0.6;
    font-style: italic;
}

.skill-tags span.past-skill:hover {
    opacity: 0.9;
}

.skill-tag-highlight {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(37, 99, 235, 0.1)) !important;
    border: 1px solid rgba(30, 64, 175, 0.2) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.skill-tag-highlight:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
    border: 1px solid transparent !important;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.contact-method:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 32px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.25);
}

.contact-method div {
    display: flex;
    flex-direction: column;
}

.contact-method strong {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 36px rgba(30, 64, 175, 0.12);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    border-top: 3px solid var(--gold-accent);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-container {
        text-align: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}