/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #030712;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --primary: #6366f1;       /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4;     /* Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.15);
    --accent: #a855f7;        /* Purple */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.3);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing & Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden; /* Default 100vh layout: no scrollbars on the main viewport */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

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

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

/* Custom SVG / XDA Icon */
.xda-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xda-icon svg {
    transition: var(--transition-normal);
}

.social-icon-btn:hover .xda-icon svg {
    color: #fff;
    filter: drop-shadow(0 0 5px var(--secondary));
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--secondary);
    background: var(--secondary-glow);
    transform: translateY(-2px);
}

.mobile-only {
    display: none !important;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    flex-shrink: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #fff;
}

.logo-cursor {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
    animation: logo-blink 1.2s infinite;
}

@keyframes logo-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: var(--transition-normal);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   LAYOUT CONTAINER & GLOBAL HEADER
   ========================================================================== */
.container {
    flex-grow: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.section {
    padding: 0; /* Adjusted for 100vh layout */
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

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

/* ==========================================================================
   HOME PAGE (HERO & TERMINAL)
   ========================================================================== */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

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

.hero-content h2 {
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-socials-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.02);
}

.social-icon-btn:hover {
    color: #fff;
    border-color: var(--secondary);
    background: var(--secondary-glow);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px var(--secondary-glow);
}

/* Interactive Terminal Window */
.terminal-window {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.08);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    max-height: 460px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.terminal-header {
    background: #111827;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

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

.terminal-body {
    background: #090d16;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
    overflow-y: auto;
    color: #a7f3d0; /* Green tint */
}

.terminal-output {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-output.system { color: var(--text-secondary); }
.terminal-output.accent { color: var(--secondary); }
.terminal-output.error { color: var(--error); }
.terminal-output.highlight { color: #facc15; }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--primary);
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
}

/* ==========================================================================
   ABOUT PAGE & TAB SYSTEM
   ========================================================================== */
.about-tab-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.about-tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-normal);
}

.about-tab-btn.active,
.about-tab-btn:hover {
    color: #fff;
    border-color: var(--secondary);
    background: var(--secondary-glow);
}

/* Main scrollable panel for active about tab */
.about-tab-panel {
    flex-grow: 1;
    overflow-y: auto;
    display: none;
}

.about-tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

/* Tab 1: Bio layout */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
    padding: 10px 0;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

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

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    opacity: 0.5;
}

.avatar-glow {
    position: absolute;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(10px);
}

.about-details h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.about-bio {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-bio span {
    color: var(--text-primary);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    padding: 16px;
    text-align: center;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Tab 2: Education layout */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 10px 0;
}

.edu-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.edu-card h5 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.edu-school {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.edu-school span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.edu-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.edu-gpa {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

/* Tab 3: Skills layout */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 10px 0;
}

.skills-card {
    padding: 24px;
}

.skills-card h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.skills-card h4 span {
    color: var(--secondary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   EXPERIENCE PAGE (PROFESSIONAL VERTICAL TABS)
   ========================================================================== */
.exp-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    flex-grow: 1;
    overflow: hidden;
    margin-top: 10px;
}

/* Left sidebar of companies */
.exp-tabs {
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 0;
    margin-left: 10px;
}

.exp-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 16px 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    width: 100%;
}

.exp-tab-btn:hover {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.02);
}

.exp-tab-btn.active {
    color: var(--secondary);
    background: var(--secondary-glow);
}

/* Indicator highlight slider bar */
.exp-tab-indicator {
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 56px; /* matches button height + padding approx */
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    transition: transform var(--transition-normal);
}

/* Right side content panels */
.exp-contents {
    overflow-y: auto;
    padding-right: 12px;
}

.exp-panel {
    display: none;
}

.exp-panel.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.exp-panel-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.exp-panel-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 1.1rem;
    font-weight: 500;
}

.exp-date-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.exp-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

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

.exp-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exp-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ==========================================================================
   PROJECTS PAGE
   ========================================================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    border-color: var(--secondary);
    background: var(--secondary-glow);
}

/* Scrollable container for the project card list */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 16px;
    padding-right: 8px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-type-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.badge-ds {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-rom {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-se {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.project-link:hover {
    color: #fff;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.contact-info-panel {
    padding: 32px;
}

.contact-info-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
}

.contact-text h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-text p {
    font-size: 1rem;
    font-weight: 600;
}

.contact-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    flex-shrink: 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(3, 7, 18, 0.8);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

/* ==========================================================================
   ANIMATIONS & DYNAMIC UTILITIES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    /* Release vertical limits on mobile/tablet screen sizes for proper scrolling */
    body {
        overflow-y: auto;
        height: auto;
    }

    .container {
        height: auto;
        overflow: visible;
        padding-top: 40px;
    }

    .navbar {
        padding: 0 5%;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        overflow: visible;
    }

    .hero-content p {
        margin: 0 auto 28px auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-socials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .terminal-window {
        height: 400px;
        max-height: none;
        text-align: left !important;
    }

    .terminal-body {
        font-size: 0.65rem;
        padding: 12px;
        overflow-x: auto;
        text-align: left !important;
    }

    .terminal-input {
        font-size: 0.65rem;
        text-align: left !important;
    }

    .terminal-output {
        white-space: pre;
        word-break: normal;
        text-align: left !important;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .about-tab-panel {
        overflow-y: visible;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-visual {
        order: -1;
    }

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

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .exp-wrapper {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .exp-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        overflow-x: auto;
        margin-left: 0;
        margin-bottom: 20px;
        padding-bottom: 0;
    }

    .exp-tab-btn {
        text-align: center;
        padding: 12px 16px;
        white-space: nowrap;
    }

    .exp-tab-indicator {
        left: 0;
        bottom: -2px;
        top: auto;
        width: 80px; /* will be adjusted by JS or dynamic widths on mobile */
        height: 2px;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        overflow: visible;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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