/* ═══════════════════════════════════════════════════
   HARISH RAO YADAGIRI — PORTFOLIO DESIGN SYSTEM
   Dark theme with glassmorphism & gradient accents
   ═══════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Colors */
    --bg-primary: #07071a;
    --bg-secondary: #0c0c2b;
    --bg-card: rgba(15, 15, 45, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8f0;
    --text-secondary: #9898b8;
    --text-muted: #6868a0;
    --accent-1: #6366f1;  /* Indigo */
    --accent-2: #8b5cf6;  /* Purple */
    --accent-3: #06b6d4;  /* Cyan */
    --accent-4: #22d3ee;  /* Light Cyan */
    --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-alt: linear-gradient(135deg, var(--accent-3), var(--accent-4));
    --gradient-bg: linear-gradient(180deg, #07071a 0%, #0d0d30 50%, #0a0a22 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Effects */
    --glass-blur: blur(20px);
    --card-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 6px;
}

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

html::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

body {
    font-family: var(--font-main);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Section Common ─── */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-3);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-3);
    border: 1px solid rgba(6, 182, 212, 0.25);
    backdrop-filter: var(--glass-blur);
}

.btn-ghost:hover {
    border-color: var(--accent-3);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 7, 26, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.nav-logo:hover {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
}

.nav-github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-github-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-name {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-name-accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--accent-3);
    margin-bottom: 20px;
    min-height: 1.5em;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-3);
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

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

.scroll-arrow svg {
    opacity: 0.5;
}

/* ─── Animate In (Hero Elements) ─── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.3s; }
.animate-in:nth-child(3) { animation-delay: 0.5s; }
.animate-in:nth-child(4) { animation-delay: 0.7s; }
.animate-in:nth-child(5) { animation-delay: 0.9s; }
.animate-in:nth-child(6) { animation-delay: 1.1s; }

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

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

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

.about-intro {
    font-size: 1.15rem !important;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(8px);
}

.highlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gradient-main);
    color: white;
}

.highlight-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* About Terminal Card */
.about-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 100px;
}

.about-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28ca41; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-code {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
    color: var(--text-secondary);
}

.code-key { color: #7dd3fc; }
.code-string { color: #86efac; }
.code-number { color: #fbbf24; }

/* ═══════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════ */
.skills-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.skill-category {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.category-title svg {
    color: var(--accent-1);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.skill-chip:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.skill-icon {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}

.project-link-icon:hover {
    color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
}

a.project-icon-link {
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

a.project-icon-link:hover {
    background: var(--gradient-main);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-3);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.projects-cta {
    text-align: center;
    margin-top: 48px;
}

/* ═══════════════════════════════════════════════════
   TIMELINE SECTION
   ═══════════════════════════════════════════════════ */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-1), var(--accent-2), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 48px;
}

.timeline-item[data-side="right"] {
    justify-content: flex-end;
    padding-left: calc(50% + 32px);
}

.timeline-item[data-side="left"] {
    justify-content: flex-start;
    padding-right: calc(50% + 32px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--gradient-main);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--bg-primary);
    z-index: 2;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.timeline-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    width: 100%;
}

.timeline-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-3);
    font-weight: 500;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.timeline-org {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-content {
    text-align: center;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.contact-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    margin: 0 auto 16px;
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--gradient-main);
    color: white;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-glass);
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

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

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════
   ABOUT AVATAR
   ═══════════════════════════════════════════════════ */
.about-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-main);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
}

.about-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--bg-primary);
}

/* ═══════════════════════════════════════════════════
   SERVICES / WHAT I BRING
   ═══════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-main);
    color: white;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-tools {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-3);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════
   GITHUB ACTIVITY — BLACK/GREEN TERMINAL THEME
   ═══════════════════════════════════════════════════ */
.gh-terminal {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gh-terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.gh-terminal-body {
    padding: 32px 24px;
}

.gh-heatmap-row {
    text-align: center;
    margin-bottom: 24px;
}

.gh-heatmap-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.gh-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid #30363d;
}

.gh-stat-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.gh-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #39d353;
    font-family: var(--font-mono);
}

.gh-stat-label {
    font-size: 0.82rem;
    color: #8b949e;
    font-family: var(--font-mono);
}

.gh-profile-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #39d353;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid #39d353;
    border-radius: 6px;
    transition: var(--transition);
}

.gh-profile-link:hover {
    background: rgba(57, 211, 83, 0.1);
    box-shadow: 0 0 16px rgba(57, 211, 83, 0.2);
    transform: translateY(-1px);
}

.code-comment {
    color: #6a737d;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-categories {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 7, 26, 0.97);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .nav-github-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card-inner {
        position: static;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gh-stats-bar {
        flex-direction: column;
        gap: 16px;
    }

    .gh-profile-link {
        width: fit-content;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item[data-side="right"],
    .timeline-item[data-side="left"] {
        padding-left: 52px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
