/* ----- CSS RESET & VARIABLES ----- */
:root {
    --primary: #5c8ca7;      /* Soft blue */
    --primary-light: #94b9cd;
    --secondary: #d9e5ec;    /* Very light blue */
    --accent: #f0c38e;       /* Warm accent, soft orange/sand */
    --text-main: #2c3e50;
    --text-muted: #596b7c;
    --bg-main: #f9fbfd;
    --bg-light: #ffffff;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(92, 140, 167, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

/* ----- UTILITIES ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }
.bg-light { background-color: var(--bg-light); }

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: 0 12px 40px rgba(92, 140, 167, 0.15);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 140, 167, 0.3);
}

.btn-primary:hover {
    background-color: #4a758e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 140, 167, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--secondary);
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-links .btn-contact {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
}

.nav-links .btn-contact:hover {
    background-color: #4a758e;
    color: white;
}

/* ----- HERO SECTION ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #e8f0f4;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(240, 195, 142, 0.3); /* Accent soft */
    top: 30%;
    left: 40%;
    animation-duration: 12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ----- ABOUT SECTION ----- */
.about-card p {
    font-size: 1.15rem;
    line-height: 1.8;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-light);
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* ----- EDUCATION & SKILLS ----- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-item .year {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.edu-item h3 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.edu-item p {
    color: var(--text-muted);
}

.courses ul {
    list-style: circle;
    padding-left: 1.2rem;
    color: var(--text-muted);
}
.courses ul li {
    margin-bottom: 0.8rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: white;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 140, 167, 0.2);
}

/* ----- GALLERY ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    padding: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ----- FOOTER ----- */
.footer {
    position: relative;
    padding: 6rem 0 3rem;
    background-color: var(--secondary);
    overflow: hidden;
}

.footer-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: white;
    bottom: -300px;
    right: -100px;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255, 0.8);
}

.contact-box h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- ANIMATIONS ----- */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    
    .hero-content h1 {
        font-size: 2rem;
        white-space: nowrap;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -8px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}
