:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 40, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f2f5;
    --text-secondary: #a0aec0;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --accent-secondary: #3a7bd5;
    
    --nav-height: 80px;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    cursor: none;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

a, button {
    cursor: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0b0f19;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-terminal {
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.preloader-terminal .terminal-body {
    min-height: 250px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 1.5rem;
    color: #e2e8f0;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    transition: opacity 0.2s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-glow);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.cursor-text {
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    position: absolute;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
}

.cursor-hover-text {
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    border-color: transparent;
    color: #0b0f19;
    mix-blend-mode: exclusion;
}

.cursor-hover-text .cursor-text {
    opacity: 1;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Dynamic Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    animation-delay: -5s;
}

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

/* Layout Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Glassmorphism Card */
.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: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15), 0 0 20px rgba(0, 210, 255, 0.1) inset;
    border-color: rgba(0, 210, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

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

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

.btn-download {
    background: linear-gradient(135deg, #27c93f, #1aa531);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 201, 63, 0.4);
    animation: pulse-btn 2s infinite;
}

.btn-download:hover {
    box-shadow: 0 6px 20px rgba(39, 201, 63, 0.6);
    transform: translateY(-2px);
    animation: none;
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

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

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

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

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 2rem) 2rem 6rem;
}

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

.hero-content {
    text-align: left;
}

/* Profile Picture Layout */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    align-self: flex-start;
    margin-top: 2rem;
}

.profile-pic-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 15px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 2;
}

.profile-pic {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    z-index: 3;
    border: 2px solid rgba(0, 210, 255, 0.2);
    display: block;
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border-radius: 35px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-badge {
    position: absolute;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 4;
    animation: archFloat 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent);
    font-size: 1.2rem;
}

.badge-top {
    top: 10%;
    right: -15px;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 15%;
    left: -15px;
    animation-delay: 2s;
}

.subtitle {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.typing-text {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    animation: blink 1s infinite;
}

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

.hero .description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.terminal-mockup {
    background: #0b0f19;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.1);
    margin: 3rem auto 2rem;
    max-width: 650px;
    text-align: left;
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #141a28;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transform: translateX(-24px); /* offset for the dots */
}

.terminal-body {
    padding: 20px;
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-body p {
    margin-bottom: 0.5rem;
}

.terminal-body .prompt {
    color: #27c93f;
    margin-right: 10px;
    font-weight: 600;
}

.terminal-body .term-output {
    color: #a0aec0;
    margin-left: 1.5rem;
}
.terminal-body .term-output.success {
    color: var(--accent);
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #fff;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.hero-scroll a:hover {
    color: var(--accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Metrics Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.metric-card {
    padding: 2rem;
}

.metric-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.metric-card .shield-icon i {
    font-size: 3rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-box h4 i {
    color: var(--accent);
    font-size: 1.3rem;
}

.bento-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Architecture Diagram */
.architecture-diagram {
    margin-top: 4rem;
    padding: 3rem;
    text-align: center;
    overflow: hidden;
}

.arch-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-node {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    min-width: 140px;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.arch-node.floating {
    animation: archFloat 3s ease-in-out infinite;
}

@keyframes archFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.arch-node.pulse-border {
    animation: archPulse 2s infinite, archFloat 3s ease-in-out infinite;
}

@keyframes archPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.node-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.arch-line {
    flex-grow: 1;
    height: 2px;
    background: var(--card-border);
    position: relative;
    min-width: 50px;
}

.packet {
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: flow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

@keyframes flow {
    0% { left: 0; opacity: 0; transform: scale(0.5); }
    15% { opacity: 1; transform: scale(1.5); }
    85% { opacity: 1; transform: scale(1.5); }
    100% { left: 100%; opacity: 0; transform: scale(0.5); }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .arch-flow {
        flex-direction: column;
    }
    .arch-line {
        width: 2px;
        min-height: 40px;
        min-width: 2px;
    }
    .packet {
        top: 0;
        left: -3px;
        animation: flowVertical 2s infinite linear;
    }
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--card-border);
}

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

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

.timeline-dot {
    position: absolute;
    top: 24px;
    left: -49px; /* 60 - 20(line) / adjusts centering */
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Tech Stack Badges */
.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--accent);
    color: #0b0f19;
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

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

.timeline-desc {
    list-style-type: none;
}

.timeline-desc li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

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

.timeline-header, .edu-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.timeline-header h3, .timeline-header h4,
.edu-header h4, .edu-header p {
    margin-bottom: 0.1rem;
}

.company-logo {
    height: 48px;
    max-width: 140px;
    border-radius: 6px;
    object-fit: contain;
    background-color: #fff; /* Ensure transparent logos have a white background */
    padding: 4px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

/* Certifications Grid */
.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.cert-badge {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}

.cert-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    flex-shrink: 0;
}

.cert-icon-wrapper i {
    font-size: 2rem;
    color: var(--accent);
}

.cert-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
}

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

.folder-icon i {
    font-size: 2.5rem;
    color: var(--accent);
}

.project-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    display: inline-block;
}

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

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

.project-tech span {
    background: rgba(0, 210, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 210, 255, 0.1);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.column-title i {
    color: var(--accent);
}

.edu-card {
    margin-bottom: 1.5rem;
}

.edu-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.edu-inst {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.edu-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.edu-detail {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

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

.contact-item:hover {
    color: var(--accent);
}

.lg-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content .social-links {
    margin-bottom: 0.5rem;
}

.footer-small {
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(80px) rotateX(-15deg) scale(0.95);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

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

/* Infinite Marquee */
.marquee-wrapper {
    overflow: hidden;
    padding: 3rem 0;
    background: transparent;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
    display: flex;
    position: relative;
    user-select: none;
}

.marquee {
    display: flex;
    animation: scrollMarquee 25s linear infinite;
}

.marquee span {
    font-size: clamp(3rem, 5vw, 6rem);
    font-family: var(--font-main);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-secondary);
    text-transform: uppercase;
    padding: 0 1rem;
    letter-spacing: 2px;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-color);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text-primary);
    transform: translateY(-5px) scale(1.1);
}

/* Media Queries - Fully Responsive Design */

/* 4K & 8K Ultra Wide / TV Screens */
@media screen and (min-width: 2560px) {
    .container {
        max-width: 1800px;
    }
    .title {
        font-size: 7rem;
    }
    .subtitle {
        font-size: 2.5rem;
    }
    .hero-content {
        transform: scale(1.3);
        transform-origin: center;
    }
    .section {
        padding: 180px 0;
    }
}

/* Standard Ultra Wide / Large Laptops */
@media screen and (min-width: 1600px) and (max-width: 2559px) {
    .container {
        max-width: 1400px;
    }
    .title {
        font-size: 5rem;
    }
    .hero-content {
        transform: scale(1.1);
        transform-origin: center;
    }
    .section {
        padding: 120px 0;
    }
}

/* Tablet Landscape / Small Laptops */
@media screen and (max-width: 968px) {
    .hero-layout, .about-grid, .education-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 50px;
    }
    
    .timeline-dot {
        left: -39px;
    }
}

/* Tablets Portrait */
@media screen and (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile Devices */
@media screen and (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }

    .terminal-title {
        transform: none;
        text-align: center;
        display: block;
        margin-top: 5px;
    }

    .terminal-body {
        font-size: 0.85rem;
        padding: 15px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .company-logo {
        max-width: 120px;
    }

    .timeline-desc li {
        font-size: 0.95rem;
    }

    .cursor-dot, .cursor-outline {
        display: none !important; /* Hide custom cursor on mobile */
    }

    .tech-stack-badges {
        justify-content: flex-start;
    }
}

/* Ultra-Small Phones (e.g. Galaxy Fold, iPhone SE) */
@media screen and (max-width: 350px) {
    .title {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .container {
        padding: 0 1rem;
    }
    .bento-box h4 {
        font-size: 1rem;
    }
    .timeline-item {
        margin-left: 10px;
    }
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.2);
    --accent-secondary: #3b82f6;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .title {
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .subtitle {
    color: #0369a1;
    font-weight: 600;
}

body.light-mode .terminal-mockup {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #0f172a;
}

body.light-mode .terminal-header {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .terminal-title,
body.light-mode .terminal-body p,
body.light-mode .prompt,
body.light-mode .term-output {
    color: #e2e8f0; /* Ensure terminal text stays light */
}

body.light-mode .arch-node {
    background: #ffffff;
}

body.light-mode .bento-box h4,
body.light-mode .project-title,
body.light-mode .edu-card h4,
body.light-mode .cert-card h4,
body.light-mode .timeline-role {
    color: var(--text-primary);
}

body.light-mode .skill-tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .timeline::before {
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(0,0,0,0.15) 100%);
}

body.light-mode .glass-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.theme-toggle-btn:hover {
    color: var(--accent);
}
