/* ========================================================
   SELVA KARTHIYAYINI | TECH WRITER & SCRUM MASTER
   Theme: Agile Board / Tech Developer Dark Mode
   Fonts: Fira Code (Monospace Accents), Plus Jakarta Sans (Body)
   Colors: IDE Dark (Charcoal/Navy), Code Green, Syntax Blue
   ======================================================== */

:root {
    /* Colors */
    --bg-main: #0d1117;
    /* GitHub Dark / IDE Background */
    --bg-alt: #161b22;
    /* Slightly lighter panel bg */
    --bg-card: #21262d;
    /* Card Background */

    --color-primary: #58a6ff;
    /* Syntax Blue / Link Blue */
    --color-accent: #3fb950;
    /* Agile/Success Green */
    --color-warn: #d29922;
    /* Warning / In-Progress Yellow */

    --text-main: #c9d1d9;
    /* Standard IDE Text */
    --text-light: #f0f6fc;
    /* White/Bright */
    --text-muted: #8b949e;
    /* Comments / Muted text */

    --border-color: #30363d;
    --border-hover: #8b949e;

    /* Typography */
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* === GENERAL Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-light);
    line-height: 1.2;
    font-weight: 700;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

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

/* Tech Dots Background */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bg-dark {
    background-color: var(--bg-card);
}

.center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-sm {
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: var(--font-mono);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 160, 67, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-light);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    z-index: 101;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-light);
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

/* === HEADINGS === */
.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-primary);
    background: rgba(88, 166, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.tag-scrum {
    color: var(--color-accent);
    border-color: rgba(63, 185, 80, 0.3);
    background: rgba(63, 185, 80, 0.1);
}

.tag-api {
    color: var(--color-primary);
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(88, 166, 255, 0.1);
}

.tag-ai {
    color: #bc8cff;
    border-color: rgba(188, 140, 255, 0.3);
    background: rgba(188, 140, 255, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-block h3 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual Array */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.card-stack {
    position: relative;
    width: 340px;
    height: 420px;
}

.bg-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transform: rotate(5deg) translate(15px, 15px);
    z-index: 1;
    opacity: 0.5;
}

.img-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.mac-dots span:nth-child(1) {
    background: #ff5f56;
}

.mac-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mac-dots span:nth-child(3) {
    background: #27c93f;
}

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

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

/* Floating Dev Tags */
.float-box {
    position: absolute;
    background: rgba(33, 38, 45, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.fb-icon {
    font-size: 1.2rem;
}

.fb-1 {
    top: 10%;
    right: -25%;
    animation: float 6s infinite ease-in-out;
}

.fb-2 {
    bottom: 20%;
    left: -20%;
    animation: float 7s infinite ease-in-out reverse;
}

.fb-3 {
    bottom: -5%;
    right: 10%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* === DDLC COMPETENCIES (API Grid) === */
.grid-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
    transform: translateY(-3px);
}

.f-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 24px;
}

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

.f-tags span {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

/* === SPRINT / EXPERIENCE BOARD === */
.timeline-board {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
}

/* Status Indicators */
.tl-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 24px;
}

.tl-status .text-mono {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pulse-dot {
    width: 14px;
    height: 14px;
    background: var(--color-warn);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(210, 153, 34, 0.7);
    animation: pulseWarn 2s infinite;
}

@keyframes pulseWarn {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(210, 153, 34, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(210, 153, 34, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(210, 153, 34, 0);
    }
}

.check-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: bold;
}

/* Timeline Cards */
.tl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.active-sprint .tl-card {
    border-color: var(--color-warn);
    box-shadow: 0 0 20px rgba(210, 153, 34, 0.05);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-head h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.card-head h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 500;
    font-family: var(--font-sans);
}

.date-badge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 6px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.task-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-weight: bold;
}

.task-list strong {
    color: var(--text-light);
    font-weight: 600;
}

.task-list em {
    color: var(--color-warn);
    font-style: normal;
    font-weight: 500;
}

.tl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.small-card {
    padding: 24px;
}

.small-card h4 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.company-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-top: 4px;
}

/* === CERTIFICATIONS & TOOLS === */
.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.col-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.p-icon {
    font-size: 1.8rem;
}

.panel-header h2 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-list li {
    position: relative;
    padding-left: 20px;
}

.cert-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.cert-list h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

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

.edu-box {
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.edu-box h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

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

.tool-category {
    margin-bottom: 30px;
}

.tool-category:last-child {
    margin-bottom: 0;
}

.tool-category h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 600;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tags span {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    transition: var(--transition);
}

.tool-tags span:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(88, 166, 255, 0.05);
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.role-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.footer-brand .f-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
}

.footer-contacts h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.contact-link:not(.no-hover):hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.copy {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tl-status {
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
        align-items: center;
        gap: 12px;
    }

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

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .card-stack {
        width: 280px;
        height: 360px;
        margin: 0 auto;
    }

    .float-box {
        display: none;
    }

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

    .tl-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        flex-direction: column;
        text-align: left;
    }
}