:root {
    --bg-0: #050a12;
    --bg-1: #0b1320;
    --bg-2: #121e33;
    --surface: rgba(13, 23, 39, 0.72);
    --surface-strong: rgba(21, 35, 58, 0.78);
    --text-0: #f7fbff;
    --text-1: #d4e2f8;
    --line: rgba(112, 156, 230, 0.28);
    --line-strong: rgba(84, 232, 255, 0.55);
    --accent-cyan: #54e8ff;
    --accent-blue: #2f7dff;
    --accent-green: #3be087;
    --accent-color: #2f7dff;
    --card-bg-color: rgba(13, 24, 42, 0.48);
    --header-h: 132px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-lg: 0 24px 44px rgba(0, 0, 0, 0.42);
    --max-w: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 10px);
}


/* Project Grid Styles */
.project-grid {
    display: grid;
    gap: 2rem;
    padding: 0 1.5rem;
}

/* Project Card Styles */
.project-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.project-content {
    padding: 1.5rem;
    color: var(--text-color);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Project Link Style */
.project-card a {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.project-card a:hover {
    background: #1a1a1a;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
    line-height: 1.65;
    color: var(--text-0);
    background:
        radial-gradient(circle at 10% -15%, rgba(47, 125, 255, 0.32) 0%, rgba(47, 125, 255, 0) 35%),
        radial-gradient(circle at 84% 0%, rgba(84, 232, 255, 0.2) 0%, rgba(84, 232, 255, 0) 32%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-0) 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(116, 158, 226, 0.35);
    background: rgba(5, 10, 18, 0.78);
    backdrop-filter: blur(12px);
}

.header-wrap {
    width: min(100% - 2rem, var(--max-w));
    margin: 0 auto;
    padding: 16px 0 14px;
    display: grid;
    gap: 10px;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.eyebrow {
    margin: 0;
    color: #97add4;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font: 600 0.72rem/1.3 "JetBrains Mono", monospace;
}

h1 {
    margin: 3px 0 0;
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    letter-spacing: 0.01em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
}

nav a {
    text-decoration: none;
    color: var(--text-1);
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: border-color 0.22s ease, transform 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #ffffff;
    border-color: rgba(84, 232, 255, 0.45);
    background-color: rgba(84, 232, 255, 0.1);
    transform: translateY(-1px);
}

.portfolio-grid {
    width: min(100% - 2rem, var(--max-w));
    margin: 0 auto;
    padding-top: clamp(18px, 3vw, 28px);
    padding-bottom: 26px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(21, 35, 58, 0.78) 0%, rgba(13, 23, 39, 0.76) 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 2.6vw, 30px);
    scroll-margin-top: calc(var(--header-h) + 12px);
    animation: cardFade 0.55s ease both;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(84, 232, 255, 0.08) 0%, rgba(84, 232, 255, 0) 36%);
    pointer-events: none;
}

.panel-about {
    grid-column: span 12;
    border-color: rgba(84, 232, 255, 0.35);
}

.panel-experience {
    grid-column: span 7;
}

.panel-projects {
    grid-column: span 5;
}

.panel-certificates {
    grid-column: span 4;
}

.panel-education {
    grid-column: span 8;
}

h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120, 165, 242, 0.26);
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 750;
    line-height: 1.2;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

p {
    margin: 0 0 10px;
    color: var(--text-1);
}

.meta {
    margin-bottom: 10px;
    color: #d2def4;
    font: 500 0.88rem/1.45 "JetBrains Mono", monospace;
}

ul {
    margin: 0;
    padding-left: 1.12rem;
    color: #e5efff;
}

li + li {
    margin-top: 8px;
}

a {
    color: #9fd1ff;
}

.skills-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cards-grid {
    display: grid;
    gap: 12px;
}

.mini-card,
.role-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(120, 165, 242, 0.24);
    background: rgba(13, 24, 42, 0.48);
    backdrop-filter: blur(7px);
    padding: 14px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    animation: cardFade 0.65s ease both;
}

.mini-card:hover,
.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(84, 232, 255, 0.25);
}

.project-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-weight: 600;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: saturate(1.1);
}

.contact-links .linkedin-btn {
    background: linear-gradient(140deg, #0a66c2 0%, #1277de 100%);
}

.contact-links .linkedin-btn:hover,
.contact-links .linkedin-btn:focus-visible {
    background: linear-gradient(140deg, #0651a6 0%, #0b68c9 100%);
}

.contact-links .email-btn {
    background: linear-gradient(140deg, #d93025 0%, #ef5549 100%);
}

.contact-links .email-btn:hover,
.contact-links .email-btn:focus-visible {
    background: linear-gradient(140deg, #b3261e 0%, #db4135 100%);
}

.contact-links .github-btn {
    background: linear-gradient(140deg, #24292f 0%, #3a414b 100%);
}

.contact-links .github-btn:hover,
.contact-links .github-btn:focus-visible {
    background: linear-gradient(140deg, #121418 0%, #2a2f37 100%);
}

.contact-links .linkedin-icon,
.contact-links .email-icon,
.contact-links .github-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.contact-links a span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 980px) {
    :root {
        --header-h: 168px;
    }

    .panel-experience,
    .panel-projects,
    .panel-certificates,
    .panel-education {
        grid-column: span 12;
    }

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

@media (max-width: 700px) {
    :root {
        --header-h: 196px;
    }

    .header-wrap {
        width: min(100% - 1rem, var(--max-w));
        padding-top: 12px;
    }

    nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 3px;
    }

    .header-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .portfolio-grid {
        width: min(100% - 1rem, var(--max-w));
        gap: 12px;
    }

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

    .contact-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
    z-index: 1000;
}

/* Active Navigation Link */
nav a.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

@media (max-width: 768px) {
  h1, h2 {
    font-size: 1.5rem;
  }
  
  .header-wrap {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  nav a {
    display: block;
    padding: 1rem;
  }
}

.panel-software {
    grid-column: span 12;
    padding: clamp(20px, 2.6vw, 30px);
}

.software-grid {
  display: grid;
    gap: 12px;
  width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    padding: 0;
}

.software-item {
    width: 100%;
}

.proficiency-list {
    display: none;
}

.software-groups {
    display: grid;
    gap: 14px;
}

.proficiency-group {
    border: 1px solid rgba(120, 165, 242, 0.2);
    border-radius: 10px;
    padding: 12px;
    background: rgba(13, 24, 42, 0.42);
}

.proficiency-group h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #d6e6ff;
}

.skill-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag-list li {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(112, 156, 230, 0.32);
    background: rgba(47, 125, 255, 0.13);
    color: #d9e8ff;
    font: 600 0.84rem/1.2 "JetBrains Mono", monospace;
}

@media (max-width: 768px) {
    .proficiency-group {
        padding: 10px;
    }
}
