/* =========================================================================
   CSS variables and basic reset
   ========================================================================= */
:root {
    --bg-color: #0d0d0d;
    --bg-color-alt: #0a0a0a;
    --text-primary: #e0f2fe;
    --text-secondary: #9ca3af;
    --accent-primary: #00FF41; /* Pure Terminal Green */
    --accent-secondary: #008F11; /* Dark Terminal Green */
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --card-bg: rgba(0, 255, 65, 0.03);
    --card-border: rgba(0, 255, 65, 0.2);
    --glass-shadow: 0 4px 15px 0 rgba(0, 255, 65, 0.1);
    
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Fira Code', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed navbar */
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* =========================================================================
   Utility Classes
   ========================================================================= */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px; /* Sharper for terminal look */
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.25);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.btn-high-contrast {
    background: var(--accent-primary);
    color: #000 !important;
    border: none;
    font-weight: 700;
}

.btn-high-contrast:hover {
    background: #00e63a;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.section {
    padding: 6rem 10%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-darker {
    background-color: var(--bg-color-alt);
    max-width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 10%;
    z-index: 1000;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 10%;
}

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

.logo {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
}

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

.nav-links a.btn::after {
    display: none;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 40px 10%; /* Added top/bottom padding to prevent navbar overlap */
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.role {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role::before {
    content: 'parth@production-env:~$ ';
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.static-text {
    white-space: nowrap;
}

.dynamic-text {
    position: relative;
    display: inline-block;
    height: 1.5em;
    overflow: hidden;
    color: #fff;
    width: 27ch; /* Exactly fits the longest string "GenAI Evaluation Pipelines" */
    vertical-align: middle;
}

.dynamic-text .word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 1.5em; /* Match container height */
    white-space: nowrap; /* Prevent words from stacking */
    transform: translateY(100%);
    animation: slide-up 10s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* 4 Items * 2.5s each = 10s total animation cycle */
.dynamic-text .word:nth-child(1) { animation-delay: 0s; }
.dynamic-text .word:nth-child(2) { animation-delay: 2.5s; }
.dynamic-text .word:nth-child(3) { animation-delay: 5s; }
.dynamic-text .word:nth-child(4) { animation-delay: 7.5s; }

@keyframes slide-up {
    0%, 5% { transform: translateY(100%); opacity: 0; }
    10%, 20% { transform: translateY(0); opacity: 1; }
    25%, 100% { transform: translateY(-100%); opacity: 0; }
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.15); /* Solid visible circle */
    border: 1px solid var(--accent-primary);
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

/* Status Bar */
.status-bar {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.status-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 4px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px; /* Terminal block */
    opacity: 0.15;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-primary);
    top: 20%;
    right: 10%;
    animation-delay: -5s;
    border-radius: 4px; /* Terminal block */
    opacity: 0.15;
}

.hero-image-placeholder {
    width: clamp(200px, 40vw, 350px);
    height: clamp(200px, 40vw, 350px);
    border-radius: 8px; /* Sharper */
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid var(--accent-primary);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Adjusted to frame face better */
    transition: transform 0.5s ease;
}

.hero-image-placeholder:hover .profile-image {
    transform: scale(1.05);
}

.main-icon {
    font-size: 5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* =========================================================================
   About & Timeline Section
   ========================================================================= */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 3rem;
    padding-left: 60px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-secondary);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-details {
    color: var(--text-secondary);
    list-style-type: disc;
    padding-left: 1.2rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

/* =========================================================================
   Experience Section
   ========================================================================= */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-card {
    padding: 2.5rem;
}

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

.card-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.card-header h4 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-top: 0.2rem;
}

.card-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.date-badge {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.05);
    font-size: 0.85rem;
    color: var(--accent-primary);
    border: 1px solid var(--card-border);
    font-family: var(--font-heading);
}

.last-modified {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    opacity: 0.7;
}

.card-list {
    color: var(--text-secondary);
    list-style-type: none;
}

.card-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.card-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* =========================================================================
   Projects Section (Horizontal Scroll)
   ========================================================================= */
.horizontal-scroll-container {
    position: relative;
    background-color: var(--bg-color-alt);
    height: 300vh; /* Dynamic height calculated in JS */
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.horizontal-scroll-content {
    display: flex;
    align-items: center;
    padding: 0 10vw;
    gap: 4rem;
    will-change: transform;
}

.section-intro {
    min-width: 300px;
    flex-shrink: 0;
}

.section-intro .section-title {
    margin-bottom: 1rem;
    text-align: left;
}

.scroll-instruction {
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: bounceRight 2s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.projects-track {
    display: flex;
    gap: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    width: clamp(300px, 40vw, 420px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-normal);
}

.project-card:hover {
    transform: perspective(1000px) rotateY(-2deg) translateZ(10px) !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.terminal-tab {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
}

.terminal-tab::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
    margin-right: 35px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-meta {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.subtitle-badge {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-left: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-details li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
    list-style-type: none;
}

.project-details li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

/* =========================================================================
   Skills Section Code Blocks
   ========================================================================= */

.marquee-category-title {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin: 3rem 0 1rem;
    padding-left: 10vw;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

.code-block {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.code-block .terminal-tab {
    margin: 0;
}

.code-content {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word; /* Prevent long words pushing layout on mobile */
    overflow-x: auto; /* Enable horizontal scrolling for the code blocks */
}

.keyword { color: #ff7b72; }
.variable { color: #79c0ff; }
.string { color: #a5d6ff; }
.operator { color: #c9d1d9; }
.function { color: #d2a8ff; }

/* Keep existing overflow-hidden just in case */

.skill-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

/* Fallback override for non-colored icons */
.skill-item i:not(.colored) {
    color: var(--text-secondary);
}
.skill-item:hover i:not(.colored) {
    color: var(--accent-primary);
}

/* Force dark logos to be bright green to match theme when hovered */
.skill-item:hover i.invert-dark {
    filter: brightness(0) saturate(100%) invert(60%) sepia(35%) saturate(1476%) hue-rotate(113deg) brightness(97%) contrast(92%);
}

/* =========================================================================
   Recent Activity (LinkedIn Posts) Section
   ========================================================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
}

.post-meta h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.post-meta span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-time {
    margin-top: 0.2rem;
    font-size: 0.75rem !important;
    opacity: 0.7;
}

.linkedin-icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    color: #0a66c2; /* Authentic LinkedIn blue */
    background: white;
    border-radius: 4px; /* for square icon with white bg */
    line-height: 1;
}

/* Adjust linkedin icon for dark mode so it fits */
.post-card .linkedin-icon {
    font-size: 1.8rem;
    color: var(--text-primary);
    background: transparent;
    transition: color var(--transition-fast);
}

.post-card .linkedin-icon:hover {
    color: #0a66c2;
}

.post-content {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-footer {
    margin-top: auto;
}

/* =========================================================================
   Achievements Section
   ========================================================================= */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
}

.achievement-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.achievement-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

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

/* =========================================================================
   Contact & Footer
   ========================================================================= */
.footer {
    padding: 6rem 10% 2rem;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

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

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================================================
   Animations & Keyframes
   ========================================================================= */
@keyframes float {
    0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); }
    33% { transform: translate(-50%, -50%) translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-50%, -50%) translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Media Queries
   ========================================================================= */
@media (max-width: 1024px) {
    .section {
        padding: 5rem 5%;
    }

    .horizontal-scroll-container {
        height: auto !important;
    }
    
    .sticky-wrapper {
        position: static;
        height: auto;
    }
    
    .horizontal-scroll-content {
        flex-direction: column;
        padding: 0 5%;
        gap: 3rem;
        transform: none !important;
    }
    
    .projects-track {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
    }
    
    .section-intro {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .scroll-instruction {
        display: none;
    }
    
    .project-card {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .role {
        justify-content: center;
    }
    
    .hero-visual {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color-alt);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--card-border);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -9px;
    }
    
    .contact-methods {
        flex-direction: column;
    }

    .title {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: center;
    }

    .static-text {
        margin-bottom: 0.2rem;
    }

    .dynamic-text {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .dynamic-text .word {
        text-align: center;
    }
    
    .hero-actions {
        flex-wrap: wrap;
    }
    
    .status-bar {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 1.5rem; /* Reduce side padding slightly */
    }

    .title {
        font-size: 2rem;
    }
    
    .status-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .terminal-tab {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }
    
    .code-content {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .contact-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
