/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Dark Theme Variables (Default) */
    --bg-primary:    #0A0A0F;
    --bg-secondary:  #0F0F1A;
    --bg-card:       #13131F;
    --accent-cyan:   #00E5FF;
    --accent-violet: #7C3AED;
    --accent-green:  #00FF88;
    --text-primary:  #F0F0F0;
    --text-muted:    #6B7280;
    --border:        #1E1E2E;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-primary:    #FAFAFA;
    --bg-secondary:  #F0F2F5;
    --bg-card:       #FFFFFF;
    --accent-cyan:   #0066FF;
    --accent-violet: #6A2BE2;
    --accent-green:  #00A859;
    --text-primary:  #1A1A1A;
    --text-muted:    #555555;
    --border:        #E2E8F0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Light Mode Texture Background */
[data-theme="light"] body {
    background-image: 
        linear-gradient(rgba(250, 250, 250, 0.95), rgba(250, 250, 250, 0.95)),
        radial-gradient(var(--accent-violet) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px;
    background-position: center;
}

[data-theme="light"] .hero-background {
    opacity: 0.05;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   NAVIGATION & THEME TOGGLE
   ========================================================================== */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.nav-glass.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav-glass.scrolled {
    background: rgba(250, 250, 250, 0.85);
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    animation: pulseGlow 3s infinite alternate;
}

[data-theme="light"] .logo {
    text-shadow: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    order: 2; /* keep menu toggle on right */
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

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

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--bg-primary), var(--bg-primary)),
        radial-gradient(var(--accent-violet) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    animation: panBackground 20s linear infinite;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.terminal-cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

.hero-role {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 500;
}

.hero-subline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.tech-stack-line {
    font-family: var(--font-mono);
    color: var(--accent-violet);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
}

.stat-pill {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transform-style: preserve-3d;
}

[data-theme="light"] .stat-pill {
    background: rgba(0, 168, 89, 0.05);
    border: 1px solid rgba(0, 168, 89, 0.2);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-cyan);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(128, 128, 128, 0.05);
}

.whatsapp-btn {
    background: #25D366; /* WhatsApp Brand Color */
    color: #FFF;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
    margin-top: 1rem;
    border: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

[data-theme="light"] .whatsapp-btn {
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

/* ==========================================================================
   ABOUT SECTION & PROFILE IMAGE
   ========================================================================== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-avatar {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.avatar-placeholder {
    width: 280px;
    height: 280px;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

[data-theme="light"] .avatar-placeholder {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent-violet), transparent 30%);
    animation: rotateGradient 4s linear infinite;
    z-index: 0;
}

.profile-img {
    width: 276px;
    height: 276px;
    object-fit: cover;
    border-radius: 19px;
    z-index: 1;
    position: relative;
    background: var(--bg-card);
    padding: 5px; /* Gives a nice border effect inside */
    transform: translateZ(20px);
}

.bio-text {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.fact-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* ==========================================================================
   ACHIEVEMENTS
   ========================================================================== */
.achievements-section {
    padding: 6rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-out, border-color 0.3s ease;
    transform-style: preserve-3d;
}

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

.terminal-card::before {
    content: '>_';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    color: var(--border);
    font-size: 1.2rem;
    transform: translateZ(10px);
}

.terminal-card .metric {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.terminal-card .label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transform: translateZ(15px);
}

.terminal-card .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    transform: translateZ(10px);
}

/* ==========================================================================
   WORK EXPERIENCE
   ========================================================================== */
.experience-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.timeline-layout {
    position: relative;
    padding-left: 2rem;
}

.timeline-bar {
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.exp-card {
    position: relative;
    margin-bottom: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    transform-style: preserve-3d;
}

.exp-card:last-child {
    margin-bottom: 0;
}

.exp-card .node {
    position: absolute;
    top: 2rem;
    left: -2rem;
    width: 16px;
    height: 16px;
    background: var(--accent-violet);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-violet);
    animation: pulseNode 2s infinite;
}

[data-theme="light"] .exp-card .node {
    box-shadow: none;
    animation: none;
}

.exp-header {
    margin-bottom: 1.5rem;
    transform: translateZ(15px);
}

.exp-header h3 {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.exp-bullets {
    list-style: none;
    transform: translateZ(10px);
}

.exp-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects-section {
    padding: 6rem 0;
}

.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    transition: transform 0.1s ease-out, border-color 0.3s ease;
    transform-style: preserve-3d;
}

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

.card-content {
    transform: translateZ(20px);
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.featured-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-url {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

.project-url:hover {
    color: var(--accent-cyan);
}

.featured-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stack-strip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-violet);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.scroll-strip-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-primary);
}

.scroll-strip-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-strip-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.scroll-strip-container::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
}

.scroll-strip {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 10px 0;
}

.small-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    width: 300px;
    flex-shrink: 0;
    transform-style: preserve-3d;
}

.small-project-card > * {
    transform: translateZ(10px);
}

.small-project-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.stack-tags {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.btn-visit {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-top: auto;
    display: inline-block;
}

/* ==========================================================================
   GITHUB REPOS
   ========================================================================== */
.github-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.pinned-repos, .repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.repo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.repo-card.pinned {
    border-color: rgba(124, 58, 237, 0.3);
}

.repo-card.pinned:hover {
    border-color: var(--accent-violet);
}

.repo-header h3 a {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.repo-header h3 a:hover {
    text-decoration: underline;
}

.special-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-violet);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.repo-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1rem 0;
    flex-grow: 1;
}

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

.repo-tags span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.repo-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.lang-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.github-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   SKILLS MATRIX (PREMIUM REDESIGN)
   ========================================================================== */
.skills-section {
    padding: 6rem 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.skill-group:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.1);
}

[data-theme="light"] .skill-group:hover {
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.1);
}

.group-label {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    font-size: 1.2rem;
    font-weight: 700;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.premium-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 90px;
}

.premium-tag img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.premium-tag .tag-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* Invert solid black icons in dark mode so they become white and visible */
html:not([data-theme="light"]) .invert-dark {
    filter: invert(1) brightness(2);
}

.premium-tag:hover {
    background: var(--bg-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.15);
}

[data-theme="light"] .premium-tag:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
}

/* ==========================================================================
   EDUCATION (MAC IDE REDESIGN)
   ========================================================================== */
.education-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.ide-window {
    background: #1E1E1E; /* Keep dark even in light mode for IDE feel */
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin: 0 auto;
    max-width: 800px;
}

[data-theme="light"] .ide-window {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.ide-header {
    background: #2D2D2D;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.ide-title {
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: auto;
    padding-right: 44px; /* to offset dots visually */
}

.ide-body {
    padding: 2rem;
    overflow-x: auto;
}

.json-block {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #D4D4D4; /* VS Code default text */
    margin: 0;
}

.json-key {
    color: #9CDCFE; /* VS Code key color */
}

.json-string {
    color: #CE9178; /* VS Code string color */
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-headline {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.contact-links {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-links li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-links .icon {
    margin-right: 0.5rem;
    font-family: var(--font-mono);
    color: var(--accent-violet);
}

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

.terminal-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.btn-submit {
    width: 100%;
}

/* ==========================================================================
   AWESOME FOOTER
   ========================================================================== */
.awesome-footer {
    background: var(--bg-card);
    position: relative;
    padding: 0 0 3rem 0;
    overflow: hidden;
}

.footer-gradient-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), var(--accent-green));
    margin-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-brand .footer-logo {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-social {
    text-align: center;
}

.footer-social h4 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.social-icons a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-system {
    text-align: right;
    font-family: var(--font-mono);
}

.glowing-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: blink 2s infinite;
}

.copyright {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.built-with {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 229, 255, 0.9), 0 0 30px rgba(0, 229, 255, 0.4); }
}

@keyframes panBackground {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

@keyframes rotateGradient {
    100% { transform: rotate(360deg); }
}

@keyframes pulseNode {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* Background Orbs Animation */
.background-orbs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -2;
    filter: blur(80px);
    opacity: 0.5;
}

[data-theme="light"] .background-orbs {
    opacity: 0.7;
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.orb-1 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -10%; left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    bottom: -20%; right: -10%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
    top: 30%; left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-10%, -10%) scale(0.9); }
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-group .skill-tag {
    opacity: 0;
    transform: translateY(20px);
}
.stagger-group.visible .skill-tag {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Tilt effect utilities */
.tilt-effect {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* ==========================================================================
   HERO HIGHLIGHTS
   ========================================================================== */
.hero-role {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    display: inline-block;
    margin-top: 0.5rem;
}

.tech-stack-line {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    font-weight: 600;
}

/* Light Theme Highlights */
[data-theme="light"] .hero-role {
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(106, 43, 226, 0.2);
}

[data-theme="light"] .tech-stack-line {
    color: var(--accent-violet);
    background: rgba(106, 43, 226, 0.05);
    border-color: rgba(106, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(106, 43, 226, 0.1);
}

/* ==========================================================================
   QUICK FACTS PILLS
   ========================================================================== */
.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.quick-facts .fact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-facts .fact-pill:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

[data-theme="light"] .quick-facts .fact-pill {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .quick-facts .fact-pill:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 4px 15px rgba(106, 43, 226, 0.15);
}

/* ==========================================================================
   CONTACT LINKS REDESIGN
   ========================================================================== */
.contact-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
    border: none;
    padding: 0.3rem 0;
    box-shadow: none;
}

.contact-card:hover {
    color: var(--text-primary);
    transform: translateX(6px);
}

.contact-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    transition: var(--transition);
}

[data-theme="light"] .contact-card .icon {
    background: transparent;
}

.contact-card:hover .icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 229, 255, 0.3));
}

.contact-card .icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .about-grid, .contact-layout, .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        text-align: center;
        gap: 2rem;
    }
    .footer-system {
        text-align: center;
    }
    .about-avatar {
        order: -1;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        color: var(--text-primary);
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        position: relative;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        left: 0;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-role {
        font-size: 1.5rem;
    }
    .featured-projects {
        grid-template-columns: 1fr;
    }
    .pinned-repos, .repos-grid {
        grid-template-columns: 1fr;
    }
    .timeline-layout {
        padding-left: 1rem;
    }
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skill-group {
        padding: 1.5rem;
    }
    .tags-cloud {
        justify-content: center;
    }
    .premium-tag {
        min-width: 80px;
        padding: 0.8rem 0.4rem;
    }
    .premium-tag img {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   INFINITE MARQUEE CAROUSEL
   ========================================================================== */
.marquee-wrapper {
    margin-top: 3rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

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

.marquee-group {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem; /* Exactly the same as gap to make it seamless */
}

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

.small-project-card {
    flex: 0 0 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    scroll-snap-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.small-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.1);
}

[data-theme="light"] .small-project-card:hover {
    border-color: var(--accent-violet);
    box-shadow: 0 8px 25px rgba(106, 43, 226, 0.15);
}

.small-project-card h4 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

[data-theme="light"] .small-project-card h4 {
    color: var(--accent-violet);
}

.small-project-card .project-url {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.small-project-card .project-url:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.small-project-card .stack-tags {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
    align-self: flex-start;
}

[data-theme="light"] .small-project-card .stack-tags {
    background: rgba(106, 43, 226, 0.08);
}

.small-project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.small-project-card .btn-visit {
    color: var(--accent-cyan);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

[data-theme="light"] .small-project-card .btn-visit {
    color: var(--accent-violet);
}

.small-project-card .btn-visit:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.dropdown-item-custom:hover {
    background: var(--bg-primary);
    color: var(--accent-cyan) !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .tilt-effect {
        transition: none !important;
        transform: none !important;
    }
}
/* ==========================================================================
   CAROUSEL PROJECTS
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Increased max-width so side cards are fully visible */
    margin: 0 auto 4rem;
    overflow: hidden;
    padding: 4rem 0; /* Increased padding to prevent top/bottom clipping of scaled center card */
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 600px; /* Increased height to accommodate the scaled center card */
}

/* Base styling for carousel card resembling repo-card */
.carousel-card {
    position: absolute;
    width: 450px;
    height: max-content; /* Sized to content so no scroll is needed */
    min-height: 300px; /* Reduced min-height so cards can be shorter if text is less */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.carousel-card::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

/* Override .featured-card padding if present */
.carousel-card.featured-card {
    padding: 1.5rem !important;
}

/* Hide image placeholder on non-active cards */
.carousel-card:not(.active) .card-image-placeholder {
    display: none;
}

.card-image-placeholder {
    width: 100%;
    height: 160px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    transform: none !important; /* override featured-card 3D transform */
}

.carousel-card.active {
    transform: translateX(0) scale(1.1);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
}

.carousel-card.prev {
    transform: translateX(-105%) scale(0.85);
    opacity: 0.6;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-card.next {
    transform: translateX(105%) scale(0.85);
    opacity: 0.6;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--accent-cyan);
    color: #fff;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-card {
        width: 300px;
    }
    .carousel-card.prev {
        transform: translateX(-30%) scale(0.8);
        opacity: 0;
    }
    .carousel-card.next {
        transform: translateX(30%) scale(0.8);
        opacity: 0;
    }
    .carousel-card.active {
        transform: translateX(0) scale(1);
    }
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

