/* ============================================
   PRASAD RANKHAMBE - PORTFOLIO STYLES
   Light Theme Default
   ============================================ */

/* CSS Variables for Light Theme (Default) */
html, :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #0891b2;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --card-border: #e2e8f0;
    --tag-bg: rgba(37, 99, 235, 0.08);
    --tag-border: rgba(37, 99, 235, 0.2);
    --dock-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --glow-primary: rgba(37, 99, 235, 0.12);
    --glow-secondary: rgba(124, 58, 237, 0.08);
    --logo-bg: #f8fafc;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
html[data-theme="dark"] {
    --bg-primary: #0c0c0c;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-muted: #909090;
    --accent-primary: #60a5fa;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #22d3ee 100%);
    --border-color: #2a2a2a;
    --border-light: #3a3a3a;
    --card-border: #2a2a2a;
    --tag-bg: rgba(96, 165, 250, 0.1);
    --tag-border: rgba(96, 165, 250, 0.25);
    --dock-bg: rgba(18, 18, 18, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-primary: rgba(96, 165, 250, 0.15);
    --glow-secondary: rgba(167, 139, 250, 0.1);
    --logo-bg: #1a1a1a;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-medium);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   AMBIENT BACKGROUND EFFECTS
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: 
        radial-gradient(ellipse 60% 40% at 50% 0%, var(--glow-primary) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 70% 10%, var(--glow-secondary) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 30% 10%, var(--glow-secondary) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

/* ============================================
   FLOATING NAVIGATION DOCK
   ============================================ */
.dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--dock-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 4px 24px var(--shadow-color),
        0 0 0 1px var(--border-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.dock:hover {
    box-shadow: 
        0 8px 40px var(--shadow-color),
        0 0 60px var(--glow-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) translateY(-2px);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.dock-item:hover {
    color: var(--accent-primary);
    background: var(--tag-bg);
    transform: translateY(-4px) scale(1.1);
}

.dock-item.active {
    color: var(--accent-primary);
    background: var(--tag-bg);
}

/* Dock Tooltips */
.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 8px 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.dock-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Theme Toggle Icons */
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */
.main-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 28px 140px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 40px 0 60px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

/* Name highlight - Simple white/black, no gradient */
.highlight {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 28px;
}

/* Hero Contact Chips */
.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.contact-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--glow-primary);
    background: var(--tag-bg);
}

.contact-chip.location {
    cursor: default;
}

.contact-chip.location:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--tag-border);
    color: var(--text-secondary);
}

.contact-chip svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Profile Image */
.profile-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    padding: 4px;
    background: var(--accent-gradient);
    box-shadow: 
        0 0 40px var(--glow-primary),
        0 0 80px var(--glow-secondary);
    transition: all var(--transition-medium);
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-primary);
    z-index: 0;
}

.profile-image-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 0 60px var(--glow-primary),
        0 0 120px var(--glow-secondary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Profile Contact Info */
.profile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.profile-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.profile-contact-item.location {
    cursor: default;
}

.profile-contact-item.location:hover {
    color: var(--text-secondary);
}

.profile-contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

/* ============================================
   TEXT LINKS
   ============================================ */
.text-link {
    color: var(--accent-primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.text-link:hover {
    color: var(--accent-secondary);
}

.text-link:hover::after {
    width: 100%;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 50px 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title-large {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TIMELINE STYLES
   ============================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.timeline-item:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.timeline-link {
    cursor: pointer;
}

.timeline-link:hover .timeline-company {
    color: var(--accent-primary);
}

.timeline-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--logo-bg);
    border: 1px solid var(--border-color);
    padding: 6px;
}

.logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.logo-placeholder.geo {
    background: linear-gradient(135deg, #10b981, #059669);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.timeline-role-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-institution {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-projects,
.timeline-work {
    margin-top: 10px;
}

.projects-label,
.work-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.timeline-projects ul,
.timeline-work ul {
    list-style: none;
    padding-left: 0;
}

.timeline-projects li,
.timeline-work li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
}

.timeline-projects li::before,
.timeline-work li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.timeline-date {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 
        0 20px 60px var(--shadow-color),
        0 0 40px var(--glow-primary);
}

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

.project-image {
    height: 180px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications {
    text-align: center;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.publication-item:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.publication-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--logo-bg);
    border: 1px solid var(--border-color);
    padding: 6px;
}

.publication-logo .pub-logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.publication-logo.review-logo {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 0;
}

.publication-content {
    flex: 1;
    min-width: 0;
}

.publication-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.publication-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 6px;
    line-height: 1.45;
    transition: all var(--transition-fast);
}

.publication-item:hover .publication-title {
    color: var(--accent-secondary);
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.publication-journal {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.publication-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    transition: all var(--transition-fast);
}

.publication-link:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.award-item:hover {
    transform: translateX(4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.award-item:hover::before {
    opacity: 1;
}

.award-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.award-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    text-align: center;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.contact-card:hover .contact-icon {
    color: var(--accent-primary);
}

.contact-icon {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.contact-card span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.hero-content { animation: fadeInUp 0.8s ease forwards; }
.about { animation: fadeInUp 0.8s ease 0.1s forwards; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets */
@media (max-width: 1024px) {
    .main-content {
        max-width: 700px;
        padding: 50px 28px 130px;
    }

    .hero { min-height: 65vh; }
    .projects-grid { gap: 20px; }
}

/* Tablets and Mobile */
@media (max-width: 768px) {
    .main-content {
        padding: 40px 24px 140px;
    }

    body::before {
        height: 350px;
    }

    .hero {
        min-height: auto;
        padding: 30px 0 50px;
    }

    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 32px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-title { 
        font-size: 2.4rem; 
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 24px;
        font-size: 1rem;
        text-align: center;
    }

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

    .hero-image {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .profile-contact {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-contact-item {
        display: flex;
        justify-content: center;
    }

    .profile-social {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .section-title::after { display: none; }

    .timeline-item {
        flex-wrap: wrap;
        padding: 16px;
    }

    .timeline-date {
        width: 100%;
        margin-top: 8px;
        padding-left: 64px;
    }

    .projects-grid { grid-template-columns: 1fr; }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dock {
        padding: 8px 14px;
        gap: 4px;
    }

    .dock-item {
        width: 40px;
        height: 40px;
    }

    .dock-item::before { display: none; }
}

/* Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 30px 18px 130px;
    }

    body::before { height: 280px; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }

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

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

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

    .contact-chip {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-image {
        align-items: center;
    }

    .profile-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .profile-contact {
        align-items: center;
        text-align: center;
    }

    .profile-contact-item {
        font-size: 0.8rem;
        justify-content: center;
    }

    .profile-social {
        justify-content: center;
        gap: 10px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }

    section { padding: 40px 0; }

    .timeline-logo,
    .publication-logo {
        width: 42px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
    }

    .logo-img,
    .pub-logo-img {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
    }

    .project-image { height: 150px; }
    .project-content { padding: 18px; }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-card {
        padding: 18px 12px;
    }

    .contact-card span {
        font-size: 0.75rem;
    }

    .dock {
        bottom: 16px;
        padding: 6px 12px;
    }

    .dock-item {
        width: 36px;
        height: 36px;
    }

    .dock-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .main-content { padding: 24px 14px 120px; }
    .hero-title { font-size: 1.8rem; }
    
    .profile-image-wrapper {
        width: 130px;
        height: 130px;
    }

    .profile-contact {
        align-items: center;
    }

    .dock-item {
        width: 34px;
        height: 34px;
    }
}

/* Print */
@media print {
    .dock, body::before { display: none; }
    .main-content { padding: 20px; max-width: 100%; }
    body { background: white; color: black; }
}
