/* 
   Premium Portfolio Stylesheet 
   Design System: Dark Mode Glassmorphism 
*/

:root {
    --bg-color: #0d0f14;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-color: #38bdf8;
    --secondary-color: #818cf8;
    --accent-glow: rgba(56, 189, 248, 0.15);

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(13, 15, 20, 0.85);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Background Gradients for depth */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.25rem;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Layout Containers */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 120px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    color: #f3ab2d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.name {
    font-size: clamp(3rem, 4.9vw, 4.5rem);
    margin-bottom: 0.5rem;
}

.role {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    min-height: 4.8rem;
    /* Prevents Cumulative Layout Shift when text wraps */
}

.summary {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* Hero Image Profile Config */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morph 4s ease-in-out infinite alternate;
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Skills */
.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

/* Projects */
.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    color: #f3ab2d;
    font-weight: 500;
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

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

.timeline-header h3 {
    font-size: 1.25rem;
}

.timeline-header .date {
    font-size: 0.85rem;
    color: #f3ab2d;
    font-weight: 600;
}

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

ul.bullet-list {
    list-style: none;
    margin-left: 0;
}

ul.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

ul.bullet-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Education */
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.edu-header h3 {
    font-size: 1.25rem;
}

.edu-header .date {
    font-size: 0.85rem;
    color: #f3ab2d;
    white-space: nowrap;
}

.edu-card h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.edu-card .gpa {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.edu-card .coursework,
.edu-card .location {
    font-size: 0.9rem;
}

/* Publications */
.full-width-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.full-width-card h2 {
    margin-bottom: 1.5rem;
}

.full-width-card .author {
    color: var(--text-color);
    margin-top: 0.5rem;
}

.full-width-card .journal {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    border-top: 1px solid var(--card-border);
    margin: 0;
}

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 2rem;
}

.footer p.copyright {
    margin-bottom: 0;
}

.copyright {
    margin-top: 4rem;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* Mobile Menu Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

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

/* Animations (Reveal on Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-right {
    transform: translateX(30px);
}

.fade-right.active {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        gap: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-wrapper {
        width: 220px;
        height: 220px;
    }
}

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--card-border);
        backdrop-filter: blur(12px);
    }

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

    .nav-item {
        margin: 1.5rem 0;
    }

    .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);
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .image-wrapper {
        width: 180px;
        height: 180px;
    }
}