/* Custom Design System for Baasim Ahmed's Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #030712;
    --bg-secondary: #090d16;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(255, 75, 114, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon gradients */
    --grad-cyan-blue: linear-gradient(135deg, #ff4b72 0%, #ff7e40 100%);
    --grad-purple-pink: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --grad-dark-card: linear-gradient(145deg, rgba(20, 24, 39, 0.7) 0%, rgba(9, 13, 22, 0.85) 100%);
    
    /* Accents */
    --accent-cyan: #ff4b72;
    --accent-blue: #ff7e40;
    --accent-purple: #8b5cf6;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Background Canvas Container */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glow Background Effects */
.bg-glow-1, .bg-glow-2 {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    z-index: -2;
    pointer-events: none;
}
.bg-glow-1 {
    top: -10%;
    right: -10%;
    background: var(--accent-cyan);
}
.bg-glow-2 {
    bottom: -10%;
    left: -10%;
    background: var(--accent-purple);
}

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

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

/* Custom Utilities */
.gradient-text {
    background: var(--grad-cyan-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: var(--grad-purple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.08);
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-cyan-blue);
    box-shadow: 0 0 10px var(--accent-cyan);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-cyan-blue);
    transition: var(--transition-fast);
}

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

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

/* Menu Toggle for Mobile */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Sections Common Layout */
section {
    padding: 7.5rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

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

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

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

.hero-tag {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.pulse-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

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

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
    font-weight: 400;
}

/* Typist cursor custom styling */
.typewrite-text {
    border-right: 2px solid var(--accent-cyan);
    animation: blink 0.75s step-end infinite;
    padding-right: 4px;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-cyan-blue);
    color: #07090e;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.35);
}

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

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-2px);
}

/* Hero Avatar Container */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 24px;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-inner img {
    transform: scale(1.05);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Decorative rotating particles around avatar */
.avatar-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 2px dashed rgba(0, 242, 254, 0.15);
    border-radius: 50%;
    animation: rotate 24s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stats Ribbon */
.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

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

.stat-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

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

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

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.skill-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.sc-1 { background: rgba(255, 75, 114, 0.06); border: 1px solid rgba(255, 75, 114, 0.15); color: var(--accent-cyan); }
.sc-2 { background: rgba(139, 92, 246, 0.06); border: 1px solid rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.sc-3 { background: rgba(255, 126, 64, 0.06); border: 1px solid rgba(255, 126, 64, 0.15); color: var(--accent-blue); }

.skill-card:hover .skill-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.skill-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sb-1 { background: rgba(255, 75, 114, 0.1); color: var(--accent-cyan); }
.sb-2 { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.sb-3 { background: rgba(255, 126, 64, 0.1); color: var(--accent-blue); }

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Custom interactive details within skill card */
.skill-details-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-item span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spf-1 { background: var(--grad-cyan-blue); width: 0; } /* Set width with JS on scroll */
.spf-2 { background: var(--grad-purple-pink); width: 0; }
.spf-3 { background: linear-gradient(135deg, var(--accent-blue) 0%, #f59e0b 100%); width: 0; }

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Left & Right placement */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-cyan);
    top: 2rem;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 18px var(--accent-cyan);
    transform: scale(1.25);
}

.timeline-item:nth-child(even) .timeline-dot.alt {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-item:nth-child(even):hover .timeline-dot.alt {
    background: var(--accent-purple);
    box-shadow: 0 0 18px var(--accent-purple);
}

/* Timeline Card */
.timeline-card {
    position: relative;
}

.time-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.timeline-item:nth-child(even) .time-badge {
    color: var(--accent-purple);
}

.timeline-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-card .company {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item:nth-child(odd) .company {
    justify-content: flex-end;
}

.company-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.timeline-item:nth-child(even) .company-bullet {
    background: var(--accent-purple);
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-card ul {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0 1.25rem;
}

.timeline-item:nth-child(odd) .timeline-card li {
    padding-left: 0;
    padding-right: 1.25rem;
}

.timeline-card li::before {
    content: '→';
    position: absolute;
    color: var(--accent-cyan);
    font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-card li::before {
    right: 0;
}

.timeline-item:nth-child(even) .timeline-card li::before {
    left: 0;
    color: var(--accent-purple);
}

/* Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.edu-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edu-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--accent-cyan);
}

.edu-card:nth-child(even) .edu-icon {
    color: var(--accent-purple);
}

.edu-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.edu-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.edu-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edu-meta span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.edu-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-cyan);
    transform: translateX(6px);
}

.contact-method-card:nth-child(2):hover {
    border-color: var(--accent-purple);
}

.cm-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.contact-method-card:nth-child(2) .cm-icon {
    background: rgba(168, 85, 247, 0.08);
    color: var(--accent-purple);
}

.contact-method-card:nth-child(3) .cm-icon {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
}

.cm-details h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.cm-details p {
    font-size: 1rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form-card {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Form success overlay styling */
.form-success-msg {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease forwards;
}

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

/* Footer Section */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #05070a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-top-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-top-btn:hover {
    background: var(--accent-cyan);
    color: #07090e;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    transform: translateY(-3px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-tag {
        align-self: center;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-ribbon {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .company {
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-card li {
        padding-right: 0;
        padding-left: 1.25rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-card li::before {
        left: 0;
        right: auto;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
