/* ===================================
   Modern Minimalist Portfolio
   =================================== */

/* CSS Variables - Dark Theme with Orange Accent */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #B8B8B8;
    --accent-color: #FF6B35;
    --accent-hover: #FF8555;
    --background-color: #0A0A0A;
    --light-bg: #151515;
    --card-bg: #1A1A1A;
    --border-color: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Nav resume button */
.navbar .btn.btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
}

/* Soft orange glow on the right to mimic reference */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 90% 30%, rgba(255, 107, 53, 0.25) 0%, rgba(255, 107, 53, 0.12) 35%, transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
}

.hero-role {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.1s;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    animation: fadeInUp 1s ease backwards;
    animation-delay: 0.2s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease backwards;
    animation-delay: 0.3s;
}

/* Hero quick contacts */
.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    color: var(--text-secondary);
}
.hero-contacts a {
    color: var(--text-secondary);
    font-weight: 500;
}
.hero-contacts a:hover { color: var(--accent-color); }
.hero-contacts .divider { color: var(--border-color); }

/* Grid layout for hero contact chips (2 columns like reference) */
.hero-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 0.75rem 2rem;
    margin-top: 1.25rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-weight: 600;
}
.contact-chip svg {
    color: var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    animation: fadeIn 1.5s ease;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-orange);
}

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

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

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.center .section-subtitle {
    margin: 0 auto;
}

/* ===================================
   Work Section
   =================================== */
.work {
    background-color: var(--background-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-item {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

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

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-orange);
    border-color: var(--accent-color);
}

.work-link {
    display: block;
}

.work-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--light-bg);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-view {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* ===================================
   Image Slider (Project pages)
   =================================== */
.image-slider {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
}
.image-slider .slides {
    position: relative;
    aspect-ratio: 16/9;
    background-color: var(--background-color);
}
.image-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-slider .slide.is-active { opacity: 1; }
.image-slider img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    display: block; 
}
.image-slider figcaption { position: absolute; left: 1rem; bottom: 1rem; color: #fff; background: rgba(0,0,0,.35); padding: .4rem .6rem; border-radius: 6px; font-size: .9rem; }

.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    transition: all .2s ease;
}
.slider-btn:hover { background: var(--accent-color); border-color: var(--accent-color); box-shadow: var(--glow-orange); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.image-slider .dots { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.image-slider .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.2); cursor: pointer; }
.image-slider .dot.active { background: var(--accent-color); border-color: var(--accent-color); }

/* 3D Model viewer */
.project-model {
    margin: 2rem 0;
}
.project-model model-viewer {
    width: 100%;
    height: 520px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.work-info {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.work-description {
    font-size: 0.938rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    padding: 0.375rem 0.875rem;
    background-color: var(--light-bg);
    border-radius: 100px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

/* ===================================
   About Section
   =================================== */
.about {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

.skills-section {
    margin: 2rem 0;
}

.skills-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.skill-category {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.15);
    transform: translateY(-4px);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

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

.skill-tag {
    padding: 0.625rem 1.25rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.938rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag .skill-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: var(--transition);
    object-fit: contain;
}

/* SVG icons */
.skill-tag svg.skill-icon {
    stroke: var(--primary-color);
}

.skill-tag:hover svg.skill-icon {
    stroke: white;
}

/* Image logos - keep original colors */
.skill-tag img.skill-icon {
    filter: none;
}

.skill-tag:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--glow-orange);
}

.skill-tag:hover img.skill-icon {
    filter: brightness(1.2);
}

/* ===================================
   About: Quick Contact Links (Email | LinkedIn | Call)
   =================================== */
.hero-contacts { margin-top: 1rem; }
.hero-contacts-split {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0.75rem;
}
.hero-contacts-split a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
}
.hero-contacts-split a:hover { color: var(--accent-color); }
.hero-contacts-split .contact-left { justify-self: start; }
.hero-contacts-split .contact-center { justify-self: center; }
.hero-contacts-split .contact-right { justify-self: end; }

/* ===================================
   Experience Section
   =================================== */
.experience {
    background-color: var(--background-color);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-bg);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    transform: translateX(8px);
    border-color: var(--accent-color);
}

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

.timeline-header h3 {
    font-size: 1.375rem;
    color: var(--primary-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-company {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

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

.contact-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-item p,
.contact-item a {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

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

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

.social-links a {
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--glow-orange);
    border-color: var(--accent-color);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--background-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    font-size: 0.938rem;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.75rem !important;
    opacity: 0.7 !important;
}

/* Footer "Get In Touch" section */
.footer-touch-section {
    margin-bottom: 1.5rem;
}

.footer-touch-title {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Footer contacts: simple 3-column layout */
.footer-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1rem 2rem;
    max-width: 100%;
}

.footer-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-contacts .contact-left {
    justify-self: start;
}

.footer-contacts .contact-center {
    justify-self: center;
}

.footer-contacts .contact-right {
    justify-self: end;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .work-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    /* Skills: 2 columns on tablet */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Hero contacts: 1 column on tablet */
    .hero-contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .navbar .btn.btn-primary {
        display: none; /* keep header clean on small screens */
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-contacts { font-size: 0.95rem; }
    
    /* Hero contact chips: stack to 1 column on mobile */
    .hero-contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    
    .contact-chip {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Skills grid: stack to 1 column */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About: 3-column quick contact links to stack */
    .hero-contacts-split {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .hero-contacts-split .contact-left,
    .hero-contacts-split .contact-center,
    .hero-contacts-split .contact-right {
        justify-self: center;
    }

    /* Footer contacts: stack vertically and center on mobile */
    .footer-contacts {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    
    .footer-contact-link {
        justify-self: center !important;
        justify-content: center;
        text-align: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -2rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1.25rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-role {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }
    
    .hero-contacts-grid {
        gap: 0.5rem;
    }
    
    .contact-chip {
        font-size: 0.8rem;
    }
    
    .contact-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }

    .work-info {
        padding: 1.25rem;
    }
    
    .work-title {
        font-size: 1.1rem;
    }
    
    .skill-category {
        padding: 1.25rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .timeline-company {
        font-size: 0.9rem;
    }
    
    .timeline-list {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .social-links a {
        width: 42px;
        height: 42px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Smooth Scrolling for all browsers */
html.smooth-scroll {
    scroll-behavior: smooth;
}

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

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

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

/* Additional dark theme enhancements */
.contact-icon {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.stat-number {
    color: var(--accent-color);
}

.section-label {
    color: var(--accent-color);
}
