/* ==========================================================================
   Base CSS & Variables
   ========================================================================== */
:root {
    --bg-dark: #0a0712;
    --bg-card: rgba(18, 12, 28, 0.5);
    --bg-card-hover: rgba(28, 20, 44, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(249, 115, 22, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #f97316;
    --primary-light: #fdba74;
    --secondary: #f43f5e;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-card-hover: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
    
    --glow-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
    --glow-shadow-lg: 0 0 35px rgba(249, 115, 22, 0.45);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Background Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: all;
    background-color: var(--bg-dark);
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.glow-animation {
    animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.1), inset 0 0 5px rgba(99, 102, 241, 0.05);
    }
    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), inset 0 0 10px rgba(99, 102, 241, 0.1);
        border-color: rgba(99, 102, 241, 0.5);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Layout Utilities */
.section-padding {
    padding: 7rem 0;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, #ffffff 30%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.2rem auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-shadow);
}

/* ==========================================================================
   Header & Navbar Styling
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(8, 11, 17, 0.85);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.3);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--primary-light);
    font-weight: 400;
}

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

.nav-menu {
    display: flex;
    gap: 2.2rem;
}

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-height: 55px;
}

.typing-text {
    color: var(--primary-light);
    border-right: none;
}

.cursor {
    color: var(--primary-light);
    font-weight: 100;
    animation: blink 0.7s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.social-icon-btn i {
    font-size: 1.2rem;
}

.social-icon-btn.github {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.social-icon-btn.github:hover {
    background: #ffffff;
    color: #080b11;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.social-icon-btn.linkedin {
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.3);
    color: #0a66c2;
}

.social-icon-btn.linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(10, 102, 194, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.7;
    transition: var(--transition);
}

.mouse:hover {
    opacity: 1;
    border-color: var(--primary-light);
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   About Section Styling
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.image-border-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 28px;
    background: var(--gradient-primary);
    z-index: 1;
    opacity: 0.35;
    filter: blur(15px);
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-image-wrapper:hover .image-border-glow {
    opacity: 0.6;
    filter: blur(25px);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-heading {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

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

/* Skills section inside About */
.skills-container {
    margin-top: 2rem;
}

.skills-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.skills-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    border-color: var(--border-color-glow);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.skill-category h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-light);
}

.skill-category h5 i {
    color: var(--accent);
}

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

.skill-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-category:hover .skill-tags span {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

/* ==========================================================================
   Projects Section Styling
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-shadow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.2rem;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    height: 100%;
}

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

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow), 0 0 20px rgba(99, 102, 241, 0.15);
}

.project-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #4338ca 100%);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.cv-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
}

.rl-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
}

.text-gen-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #5b21b6 100%);
}

.med-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #be185d 100%);
}

.ts-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #b45309 100%);
}

.project-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 11, 17, 0.9) 100%);
    z-index: 1;
}

.project-media-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8, 11, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 2;
    transition: var(--transition);
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.05);
}

.project-card:hover .project-media-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: rotate(360deg);
}

.project-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    margin-bottom: 0.8rem;
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.project-tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
    margin-top: auto;
}

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

.project-link:hover {
    color: var(--text-primary);
}

.project-link i {
    font-size: 1rem;
}

/* ==========================================================================
   Experience & Education Timeline Styling
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 31px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-bullet {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--glow-shadow);
    transition: var(--transition);
}

.bullet-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    transition: var(--transition);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--card-shadow);
}

.timeline-item:hover .timeline-bullet {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.timeline-item:hover .bullet-inner {
    background-color: var(--secondary);
    transform: scale(1.2);
}

.timeline-item:hover .timeline-card {
    transform: translateX(6px);
    border-color: var(--border-color-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow), 0 0 15px rgba(99, 102, 241, 0.08);
}

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

.timeline-duration {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-badge.education {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

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

.timeline-badge.achievement {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-details {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-details strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Contact Section Styling
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-panel-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.05);
}

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

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-link {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

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

.contact-value {
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 600;
}

.contact-social-row {
    display: flex;
    gap: 1.2rem;
}

.contact-social-row a {
    width: auto;
    height: auto;
}



/* Contact Form Panel */
.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--card-shadow);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

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

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-input {
    background: rgba(8, 11, 17, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(8, 11, 17, 0.8);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

textarea.form-input {
    resize: none;
}

.form-status-msg {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.form-status-msg.success {
    color: var(--success);
}

.form-status-msg.error {
    color: #ef4444;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: rgba(8, 11, 17, 0.9);
    position: relative;
    z-index: 10;
}

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

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

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(8, 11, 17, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition);
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-actions .btn {
        display: none; /* Hide standard action button on mobile header */
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        min-height: 45px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image-wrapper {
        max-width: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-line {
        left: 17px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-bullet {
        left: 6px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        min-height: 38px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-panel {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Slide Presentation Mode Styles (Screen & Print)
   ========================================================================== */

/* Hide Overlay by default on screen */
.presentation-overlay {
    display: none;
}

body.presentation-mode {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
    background-color: var(--bg-dark) !important;
}

body.presentation-mode #particle-canvas,
body.presentation-mode .navbar,
body.presentation-mode .footer,
body.presentation-mode .scroll-indicator {
    display: none !important;
}

body.presentation-mode main > section {
    display: none !important;
    position: fixed !important;
    top: 75px !important; /* Offset for presentation header */
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 150px) !important; /* Offset for header & footer controls */
    margin: 0 !important;
    padding: 2rem 5% !important;
    overflow-y: auto !important;
    opacity: 0 !important;
    z-index: 100 !important;
    background-color: var(--bg-dark) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.4s ease-in-out !important;
}

body.presentation-mode main > section.active-slide {
    display: flex !important;
    opacity: 1 !important;
}

/* Presentation Mode UI Overlay */
body.presentation-mode .presentation-overlay {
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.pres-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(8, 11, 17, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 10000;
}

.pres-title {
    font-family: var(--font-mono);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1rem;
}

.btn-exit {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-exit:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.pres-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-print {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-print:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow-shadow);
}

.pres-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(8, 11, 17, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10000;
}

.nav-btn-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn-arrow:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-shadow);
}

.pres-counter {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pres-instructions {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 11, 17, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 10000;
    pointer-events: none;
    text-align: center;
}

/* Adjust projects card sizes inside presentation mode */
body.presentation-mode .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.2rem !important;
    width: 100% !important;
    padding: 1rem 0 !important;
}

body.presentation-mode .project-card {
    height: auto !important;
}

body.presentation-mode .project-media {
    height: 120px !important;
}

body.presentation-mode .project-content {
    padding: 1.2rem !important;
}

body.presentation-mode .project-card-desc {
    margin-bottom: 0.8rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.presentation-mode .project-links {
    padding-top: 0.8rem !important;
    margin-top: auto !important;
}

body.presentation-mode .about-grid {
    grid-template-columns: 0.6fr 1.4fr !important;
    gap: 3rem !important;
    align-items: center !important;
}

body.presentation-mode .about-image-wrapper {
    max-width: 220px !important;
}

body.presentation-mode .skills-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
}

body.presentation-mode .timeline-wrapper {
    width: 100% !important;
    padding: 1rem 0 !important;
}

body.presentation-mode .timeline-card {
    padding: 1.2rem !important;
}

body.presentation-mode .timeline-item {
    margin-bottom: 1.5rem !important;
}

/* ==========================================================================
   Print Styles (@media print) for Landscape Slides PDF
   ========================================================================== */
@media print {
    @page {
        size: A4 landscape !important;
        margin: 0 !important;
    }

    html {
        font-size: 12px !important; /* Proportional scale down of all rem dimensions to fit A4 landscape */
        background-color: #080b11 !important;
        color: #f8fafc !important;
    }

    /* Reset background colors and adjust text for print output to keep exact colors */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Reset body behavior in presentation mode for print context */
    body,
    body.presentation-mode {
        background-color: #080b11 !important;
        background: #080b11 !important;
        color: #f8fafc !important;
        overflow: visible !important;
        height: auto !important;
        width: auto !important;
        position: static !important;
    }

    /* Hide screen UI controls only */
    #particle-canvas,
    .navbar,
    .footer,
    .scroll-indicator,
    #presentation-toggle,
    .project-filters,
    .pres-navigation,
    .pres-instructions,
    .btn-print,
    .btn-exit {
        display: none !important;
    }

    /* Display header with name on every slide page */
    .presentation-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: rgba(8, 11, 17, 0.9) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 9999 !important;
    }

    .pres-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 5% !important;
        background: transparent !important;
        border: none !important;
    }

    .pres-title {
        display: block !important;
        color: var(--primary-light) !important;
        font-family: var(--font-mono) !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    /* Force all slides to display in print context, even in presentation mode */
    main > section,
    body.presentation-mode main > section {
        display: flex !important;
        opacity: 1 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important; /* Replaced 100vw to avoid overflow blank pages */
        min-height: 100% !important; /* Replaced 100vh to avoid print canvas height bugs */
        height: auto !important; /* Allow section to expand to multiple pages if content overflows */
        page-break-after: always !important;
        break-after: always !important;
        box-sizing: border-box !important;
        padding: 4.5rem 6% 3rem 6% !important; /* More space for content, offset for header */
        margin: 0 !important;
        background-color: #080b11 !important;
        background: #080b11 !important;
        justify-content: flex-start !important; /* Layout from the top */
        align-items: center !important;
        overflow: visible !important; /* Prevent content truncation */
        z-index: auto !important;
        transition: none !important;
        flex-direction: column !important;
    }

    /* Keep the original dark text colors */
    .section-title,
    .hero-title,
    .timeline-title,
    .project-card-title,
    .about-heading,
    .contact-panel-title,
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
    }

    .gradient-text {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        color: var(--primary-light) !important;
    }

    .hero-subtitle,
    .hero-description,
    .about-text,
    .project-card-desc,
    .timeline-subtitle,
    .timeline-desc,
    .timeline-details,
    .contact-panel-desc,
    .contact-item,
    p, span, li, ul, strong {
        color: var(--text-secondary) !important;
    }

    .section-tag,
    .timeline-duration,
    .project-badge {
        color: var(--accent) !important;
    }

    /* Card adjustments for dark background */
    .skill-category,
    .project-card,
    .timeline-card {
        background-color: var(--bg-card) !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-secondary) !important;
        box-shadow: none !important;
    }

    .skill-tags span,
    .project-tech-tags span {
        background-color: rgba(255, 255, 255, 0.03) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: var(--text-secondary) !important;
    }

    .project-links {
        border-top: 1px solid var(--border-color) !important;
    }

    .project-link {
        color: var(--text-secondary) !important;
    }

    .timeline-details {
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .timeline-details strong {
        color: var(--text-primary) !important;
    }

    /* Adjust grids to fit standard page bounds without cutting off */
    .about-grid {
        grid-template-columns: 0.7fr 1.3fr !important;
        gap: 3rem !important;
        align-items: center !important;
        width: 100% !important;
    }

    .about-image-wrapper {
        max-width: 220px !important;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    /* Print projects in a 2-column grid to span cleanly across A4 pages without truncation */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .project-card {
        height: auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .project-media {
        height: 100px !important;
    }

    .project-content {
        padding: 1rem !important;
    }

    .project-card-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        display: block !important; /* Allow full description display in print */
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
    }

    /* Ensure timeline sections break cleanly across pages */
    .timeline-wrapper {
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
        height: auto !important;
    }

    .timeline-item {
        margin-bottom: 1.2rem !important;
        padding-left: 3rem !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .timeline-card {
        padding: 1.2rem !important;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
        width: 100% !important;
        align-items: center !important;
    }

    .contact-form-panel {
        display: none !important; /* Hide contact form on print version */
    }
}
