/* ==========================================================================
   MOHAMMED BILAL M - PREMIUM PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-primary: #080b16;
    --bg-secondary: #0f1326;
    --bg-card: rgba(15, 20, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-hover: rgba(0, 242, 254, 0.3);
    
    --accent-blue: #4facfe;
    --accent-cyan: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.25);
    --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. RESET & BASE LAYOUT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Ambient glow blobs */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    animation: pulse-glow 15s ease-in-out infinite alternate;
}

.top-left {
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.bottom-right {
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(50px, 50px); opacity: 0.18; }
}

/* Engineering grid overlay */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

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

/* 2. NAVIGATION BAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    background: rgba(8, 11, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.9rem 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    color: var(--accent-cyan);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-snappy);
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary.mini-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}

.glow-btn:hover::before {
    left: 150%;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-snappy);
}

/* 3. HERO SECTION */
.hero-section {
    padding: 10rem 4rem 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-objective {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-objective .highlight {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-objective .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(79, 172, 254, 0.2);
    z-index: -1;
}

.contact-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-snappy);
}

.quick-link:hover {
    color: var(--accent-cyan);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Hero Visual Dashboard */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Hero Image Card Styling */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-card {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    z-index: 1;
}

.image-inner {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.image-card:hover .image-inner {
    border-color: var(--accent-cyan);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition-smooth);
}

.image-card:hover .profile-img {
    transform: scale(1.04) rotate(1.5deg);
}

.image-card .glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    filter: blur(20px);
    opacity: 0.2;
    z-index: 0;
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.image-card:hover .glow-bg {
    opacity: 0.45;
}

/* 4. SECTION STRUCTURING */
section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-header.align-left {
    text-align: left;
    margin: 0 0 3rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* 5. EXPERIENCE LAYOUT */
.experience-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-btn:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.05);
}

.tab-company {
    font-size: 1.05rem;
    font-weight: 700;
}

.tab-duration {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.tab-btn.active .tab-duration {
    color: var(--accent-cyan);
}

/* Tab panels */
.experience-panels {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    min-height: 400px;
    position: relative;
    backdrop-filter: blur(12px);
}

.tab-panel {
    display: none;
    animation: fade-in-panel 0.5s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fade-in-panel {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-role-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.company-accent {
    color: var(--accent-cyan);
}

.panel-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.panel-intro-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.panel-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style-type: none;
}

.panel-bullets li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.panel-bullets li strong {
    color: var(--text-primary);
}

/* 6. SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skills-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.25rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.skills-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
}

.skills-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Certifications list */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cert-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cert-badge {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Skill progress bars */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-line {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-line span {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: block;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

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

.tag {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: var(--transition-snappy);
}

.tag:hover {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    transform: scale(1.05);
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.tag-soft {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 7. PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-icon {
    font-size: 1.75rem;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-used {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* 8. EDUCATION & REFERENCES SPLIT */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    position: relative;
}

.edu-item {
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.edu-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.edu-school {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.edu-grade {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-top: 0.5rem;
}

/* References */
.references-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 16px;
    display: flex;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.reference-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

.ref-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ref-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ref-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

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

.ref-company {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ref-email {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
    transition: var(--transition-snappy);
}

.ref-email:hover {
    text-decoration: underline;
}

/* 9. CONTACT SECTION */
.contact-card-panel {
    background: linear-gradient(135deg, rgba(15, 20, 38, 0.85) 0%, rgba(8, 11, 22, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-card-panel.centered-panel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-info-col h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-info-col p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
}

.contact-methods-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 1.5rem 0;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.method-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-text {
    display: flex;
    flex-direction: column;
}

.method-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.method-text a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-snappy);
}

.method-text a:hover {
    color: var(--accent-cyan);
}

.contact-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
}

/* 10. FOOTER styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: rgba(8, 11, 22, 0.8);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* 11. RESPONSIVENESS */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.25rem 2rem;
    }
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
        order: 0 !important;
    }
    .hero-visual {
        order: 1 !important;
    }
    .hero-image-wrapper .image-card {
        width: 260px;
        height: 320px;
    }
    .hero-objective {
        margin: 0 auto;
    }
    .contact-quick-links {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .split-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-card-panel {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Hero layout: text first, photo below */
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
        order: 0 !important;
        width: 100%;
    }
    .hero-visual {
        order: 1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .hero-name {
        font-size: 1.85rem !important;
        white-space: nowrap;
        letter-spacing: -0.04em;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .hero-image-wrapper .image-card {
        width: 220px;
        height: 280px;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .contact-methods-row {
        flex-direction: column;
        align-items: center;
    }
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
