/* MTech & IT Portfolio — Professional Design System */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --bg-main:       #F8FAFC;
    --bg-deep:       #FFFFFF;
    --bg-panel:      #FFFFFF;
    --bg-card:       #F1F5F9;
    --accent:        #2563EB;
    --accent-dim:    #EFF6FF;
    --accent-mid:    #BFDBFE;
    --accent-dark:   #1D4ED8;
    --teal:          #0EA5E9;
    --teal-dim:      #E0F2FE;
    --text-primary:  #0F172A;
    --text-muted:    #64748B;
    --text-faint:    #94A3B8;
    --border:        #E2E8F0;
    --border-bright: #CBD5E1;
    --shadow-sm:     0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.06);
    --shadow-md:     0 4px 12px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.06);
    --shadow-lg:     0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
    --font-display:  'Plus Jakarta Sans', sans-serif;
    --font-body:     'Inter', sans-serif;
    --radius-sm:     6px;
    --radius-md:     8px;
    --radius-lg:     12px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

.container, section, nav, footer {
    position: relative;
    z-index: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.text-accent   { color: var(--accent); }
.text-teal     { color: var(--teal); }
.text-muted-custom { color: var(--text-muted); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.preloader-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.custom-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.custom-navbar.scrolled {
    padding: 0.6rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand-slogan {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.navbar-nav .nav-link::before { display: none; }

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
    background: var(--accent-dim);
}

.navbar-toggler {
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    background: var(--accent-dim);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.section-label::before,
.section-label::after { display: none; }

.section-title-main {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* ============================================================
   SECTION STRUCTURE
   ============================================================ */
.section-padding {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-card);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(160deg, var(--bg-main) 0%, #EFF6FF 60%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: fadeSlideDown 0.6s ease both;
}

.hero-eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    animation: fadeSlideDown 0.6s 0.1s ease both;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-title .highlight::after { display: none; }

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.6s 0.2s ease both;
}

.hero-subtitle .role-tag {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.75;
    animation: fadeSlideDown 0.6s 0.3s ease both;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.6s 0.4s ease both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: fadeSlideDown 0.8s 0.2s ease both;
}

/* Professional feature card (replaces terminal window) */
.hero-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-card-header {
    background: var(--accent);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-card-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.hero-card-header-text h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.hero-card-header-text span {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
}

.hero-card-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-service-item {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-service-item:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-sm);
}

.hero-service-item i {
    font-size: 1.4rem;
    color: var(--accent);
}

.hero-service-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-service-item small {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Legacy terminal classes — hidden or stripped */
.terminal-window { display: none; }
.t-line, .t-prompt, .t-cmd, .t-out, .t-ok, .t-cursor { display: none; }

/* Stats row in hero */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.25rem;
    animation: fadeSlideDown 0.6s 0.5s ease both;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: var(--radius-md);
    clip-path: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline-gold:hover {
    background: var(--accent-dim);
    color: var(--accent-dark);
    transform: translateY(-1px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 2.5rem;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-item {
    background: var(--bg-deep);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: background 0.2s ease;
}

.stat-item:hover {
    background: var(--accent-dim);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.35rem;
    display: block;
}

.tech-orbit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

.tech-chip {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: default;
    box-shadow: var(--shadow-sm);
}

.tech-chip i {
    font-size: 1.75rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.tech-chip:hover {
    border-color: var(--accent-mid);
    background: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tech-chip:hover i {
    transform: scale(1.1);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skill-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.skill-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.skill-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-pct {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.skill-track {
    height: 6px;
    background: var(--border);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    border-radius: 100px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.skill-fill::after { display: none; }

.skill-sub {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

.skill-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

.skill-cat-card {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skill-cat-card::before { display: none; }

.skill-cat-card:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.skill-cat-card i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.skill-cat-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-cat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.project-card {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    clip-path: none;
}

.project-card::after { display: none; }

.project-card:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: var(--border-bright);
    transition: all 0.3s ease;
}

.project-placeholder i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-placeholder i {
    color: var(--accent);
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37,99,235,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
    clip-path: none;
}

.project-link:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-num {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    margin-bottom: 0.4rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-content h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

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

.project-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent-mid);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    text-transform: none;
    background: var(--accent-dim);
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

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

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content li {
    padding-left: 0;
    padding-right: 1.25rem;
}

.timeline-item:nth-child(odd) .timeline-content li::before {
    left: auto;
    right: 0;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 1.25rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--accent-mid);
    background: var(--accent-dim);
    border-radius: 100px;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.8rem;
}

.timeline-content {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-content h5 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--teal);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    line-height: 1.7;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.timeline-content li {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 1.25rem;
    padding-bottom: 0.3rem;
    position: relative;
}

.timeline-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--border);
    font-weight: 800;
}

.testimonial-card:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-content p {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.author-info h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    border: none;
}

.contact-details h5 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    border-color: var(--accent-mid);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

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

.form-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: 0;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    border-radius: var(--radius-md);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: var(--bg-deep);
}

.form-control::placeholder {
    color: var(--text-faint);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
    background: var(--text-primary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

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

.footer-logo {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.footer-section .brand-name {
    color: #fff;
}

.footer-section .brand-slogan {
    color: var(--text-faint);
}

.footer-section .logo-icon {
    background: var(--accent);
}

.footer-content p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-faint);
}

.footer-links {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================================
   WOW.JS VISIBILITY
   ============================================================ */
.wow { visibility: hidden; }
.animated { visibility: visible; }

/* ============================================================
   PROJECT DETAIL PAGES
   ============================================================ */
.project-icon { display: inline-block; }

.text-gold { color: var(--accent); }

.project-tech-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.project-tech-large .tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
}

.project-details {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.project-details h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.project-details p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.feature-item {
    padding: 1.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease, border-color 0.2s, transform 0.2s;
}

.feature-item:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.75rem;
    margin-bottom: 0.9rem;
    display: block;
    color: var(--accent);
}

.feature-item h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.65;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    color: var(--text-muted);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.tech-list li:last-child { border-bottom: none; }
.tech-list strong { color: var(--accent); font-weight: 600; font-family: var(--font-body); }

.project-stats h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
}

.project-stats p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================
   WORKFLOW / SUPPORT / LEGAL
   ============================================================ */
.workflow-steps { margin-top: 2rem; }

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h5 { color: var(--text-primary); font-weight: 600; margin-bottom: 0.35rem; }
.step-content p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.contact-card {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-card .contact-icon {
    font-size: 2rem;
    color: var(--accent);
    display: block;
    margin: 0 auto 1rem;
    width: auto;
    height: auto;
    border: none;
    background: none;
    border-radius: 0;
}

.contact-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.contact-card p { color: var(--text-muted); margin: 0; }
.contact-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-card a:hover { color: var(--accent-dark); text-decoration: underline; }

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

.social-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    border-color: var(--accent-mid);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-4px);
}

.support-content {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.support-content h3 { color: var(--text-primary); margin-bottom: 1.5rem; font-weight: 700; }

.support-option {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.support-option:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.support-option-icon { font-size: 1.6rem; flex-shrink: 0; color: var(--accent); }
.support-option-content h4 { color: var(--text-primary); margin-bottom: 0.3rem; font-weight: 600; }
.support-option-content p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.support-option-content a { color: var(--accent); text-decoration: none; }
.support-option-content a:hover { color: var(--accent-dark); text-decoration: underline; }

.faq-section h4 { color: var(--text-primary); font-weight: 700; }

.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }
.faq-item h5 { color: var(--text-primary); font-weight: 600; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); margin: 0; line-height: 1.75; font-size: 0.92rem; }

.contact-support {
    background: var(--accent-dim);
    border: 1.5px solid var(--accent-mid);
    border-radius: var(--radius-md);
}

.contact-support h4 { color: var(--accent); font-weight: 700; }
.contact-support p  { color: var(--text-muted); }

.legal-content {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h3:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.legal-content ul { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .timeline::before { left: 20px; }
    .timeline-node { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
    .timeline-item:nth-child(odd) .timeline-content li { padding-left: 1.25rem; padding-right: 0; }
    .timeline-item:nth-child(odd) .timeline-content li::before { left: 0; right: auto; }
    .timeline-date { min-width: 110px; font-size: 0.75rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .skill-category-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .hero-stats { gap: 1.5rem; }
    .section-padding { padding: 70px 0; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .contact-form { padding: 1.5rem; }
    .hero-card-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .brand-name { font-size: 1rem; }
    .brand-slogan { font-size: 0.62rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-num { font-size: 1.75rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-card-body { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    clip-path: none;
}

.lang-btn:hover,
.lang-switcher.open .lang-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.lang-btn i { font-size: 0.75rem; }

.lang-chevron {
    font-size: 0.65rem !important;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 150px;
    z-index: 1000;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lang-dropdown.open { display: flex; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.lang-option:last-child { border-bottom: none; }

.lang-option:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.lang-option.lang-active {
    color: var(--accent);
    background: var(--accent-dim);
}

.lang-code {
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 28px;
    font-weight: 600;
}

.lang-label {
    color: var(--text-faint);
    font-size: 0.72rem;
}

.lang-option.lang-active .lang-label { color: var(--text-muted); }

@media (max-width: 991px) {
    .lang-switcher { margin: 0.5rem 0 0.25rem; }
    .lang-dropdown { right: auto; left: 0; }
}

/* ============================================================
   BACKGROUND UTILITY
   ============================================================ */
.bg-dark { background: var(--bg-card) !important; }

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   PROFESSIONAL REFINEMENT
   ============================================================
   Keep the visual language restrained: fewer effects, flatter
   surfaces, and a clear information hierarchy.
   ============================================================ */
:root {
    --bg-main:       #F7F9FC;
    --bg-deep:       #FFFFFF;
    --bg-panel:      #FFFFFF;
    --bg-card:       #F1F4F8;
    --accent:        #1F4B99;
    --accent-dim:    #EDF3FA;
    --accent-mid:    #B9CBE3;
    --accent-dark:   #173A78;
    --teal:          #526E8D;
    --teal-dim:      #EEF2F6;
    --text-primary:  #172033;
    --text-muted:    #5F6B7A;
    --text-faint:    #8994A3;
    --border:        #DCE3EC;
    --border-bright: #C9D3E0;
    --shadow-sm:     0 1px 2px rgba(23,32,51,.05);
    --shadow-md:     0 4px 12px rgba(23,32,51,.07);
    --shadow-lg:     0 10px 24px rgba(23,32,51,.09);
    --font-display:  'Inter', sans-serif;
    --radius-sm:     4px;
    --radius-md:     6px;
    --radius-lg:     8px;
}

body {
    line-height: 1.6;
}

.custom-navbar {
    background: #FFFFFF;
    backdrop-filter: none;
    box-shadow: none;
    padding: .85rem 0;
}

.custom-navbar.scrolled {
    padding: .65rem 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

.navbar-nav .nav-link {
    border-radius: 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: transparent;
    color: var(--accent) !important;
}

.section-padding {
    padding: 84px 0;
}

.section-alt {
    background: #F1F4F8;
}

.section-label {
    background: transparent;
    padding: 0;
    border-radius: 0;
    letter-spacing: .08em;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--accent);
    margin-right: .55rem;
    vertical-align: middle;
}

.hero-section {
    min-height: 78vh;
    padding: 116px 0 76px;
    background: #F7F9FC;
}

.hero-section::before {
    display: none;
}

.hero-section .min-vh-100 {
    min-height: 0 !important;
}

.hero-eyebrow {
    font-size: .78rem;
    letter-spacing: .08em;
    margin-bottom: 1.15rem;
}

.hero-eyebrow-line {
    width: 22px;
    height: 1px;
}

.hero-title {
    font-size: clamp(2.65rem, 5.2vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin-bottom: 1.1rem;
}

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

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.hero-subtitle .role-tag {
    font-weight: 500;
}

.hero-description {
    font-size: .98rem;
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.hero-buttons {
    gap: .65rem;
}

.btn {
    padding: .65rem 1.25rem;
    border-radius: 4px;
    font-size: .86rem;
}

.btn-primary {
    box-shadow: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: none;
}

.btn-outline-gold:hover {
    transform: none;
}

.hero-stats {
    gap: 0;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    max-width: 410px;
}

.hero-stats > div {
    flex: 1;
}

.hero-stat-num {
    font-size: 1.45rem;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-visual {
    animation: none;
}

.hero-card {
    max-width: 430px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
}

.hero-card-header {
    background: #EAF0F7;
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 1.35rem;
}

.hero-card-header-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 4px;
}

.hero-card-header-text h4 {
    color: var(--text-primary);
    font-size: .95rem;
}

.hero-card-header-text span {
    color: var(--text-muted);
}

.hero-card-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: .3rem 1.35rem;
}

.hero-service-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: .7rem;
    row-gap: .15rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1rem 0;
}

.hero-service-item:last-child {
    border-bottom: 0;
}

.hero-service-item:hover {
    border-color: var(--border);
    box-shadow: none;
}

.hero-service-item i {
    grid-row: span 2;
    align-self: start;
    font-size: 1rem;
    color: var(--accent);
    padding-top: .1rem;
}

.hero-service-item span {
    font-size: .82rem;
}

.hero-service-item small {
    font-size: .72rem;
}

.about-stats,
.skill-cat-card,
.project-card,
.timeline-content,
.testimonial-card,
.contact-item,
.contact-form,
.project-details,
.support-content,
.legal-content,
.contact-card {
    box-shadow: var(--shadow-sm);
}

.tech-chip:hover,
.skill-cat-card:hover,
.project-card:hover,
.testimonial-card:hover,
.contact-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.tech-chip {
    border-radius: 4px;
    box-shadow: none;
}

.skill-fill {
    background: var(--accent);
}

.skill-cat-card,
.project-card,
.testimonial-card,
.contact-card {
    border-radius: 6px;
}

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

.project-image {
    height: 156px;
}

.project-overlay {
    background: rgba(31,75,153,.06);
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.tech-tag {
    border-radius: 3px;
    background: #F4F6F9;
    color: var(--text-muted);
    border-color: var(--border);
    font-size: .68rem;
}

.timeline-date {
    border-radius: 4px;
    background: transparent;
    padding: .35rem .8rem;
}

.timeline-node {
    width: 10px;
    height: 10px;
    border-width: 2px;
}

.testimonial-card::before {
    font-size: 3rem;
}

.social-links a,
.social-icon {
    border-radius: 4px;
    box-shadow: none;
}

.social-links a:hover,
.social-icon:hover {
    transform: none;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
}

.footer-section {
    background: #172033;
    padding: 2.25rem 0;
}

.footer-section .logo-icon {
    background: var(--accent);
}

.project-icon i {
    font-size: 2.75rem !important;
}

.hero-content .hero-title {
    font-size: clamp(2.35rem, 5vw, 3.8rem);
}

.hero-content .hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 108px 0 64px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    .hero-card {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 64px 0;
    }

    .hero-stats {
        max-width: none;
    }
}
