/* ============================================
   ANAS ABBAS - PORTFOLIO WEBSITE
   Professional Electrical Engineer
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --primary-glow: rgba(14, 165, 233, 0.15);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2234;
    --bg-elevated: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(14, 165, 233, 0.3);
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(30, 41, 59, 0.4));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

ul { list-style: none; }

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

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-glow);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    transition: var(--transition);
}

.nav-logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.logo-accent {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--primary-glow);
}

.nav-link.active {
    color: var(--primary-light);
    border: 1px solid var(--border-hover);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-greeting {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-role {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--primary-light);
    min-height: 2em;
    border-right: 2px solid var(--primary);
    padding-right: 4px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 24px 0 32px;
    max-width: 540px;
    line-height: 1.8;
}

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

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

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    display: inline;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

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

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

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-portrait-frame {
    position: relative;
    width: 280px;
    height: 350px;
    border-radius: var(--radius-xl);
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(14, 165, 233, 0.25);
    z-index: 2;
    overflow: hidden;
}

.hero-portrait-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: calc(var(--radius-xl) - 4px);
    display: block;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.card-1 {
    top: 24px;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 52%;
    left: -10px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.card-3 {
    bottom: 20px;
    right: 10px;
    animation-delay: 4s;
}

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

.card-2 {
    animation: float2 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 15px)); }
}

/* Circuit SVG */
.hero-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.15;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

.circuit-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-circuit 3s ease forwards;
}

.circuit-path.delay-1 { animation-delay: 0.5s; }
.circuit-path.delay-2 { animation-delay: 1s; }

@keyframes draw-circuit {
    to { stroke-dashoffset: 0; }
}

.circuit-node {
    fill: var(--primary);
    opacity: 0;
    animation: fade-node 0.5s ease forwards;
    animation-delay: 2s;
}

@keyframes fade-node {
    to { opacity: 1; }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    text-align: center;
    padding: 20px 0 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 0 auto 10px;
    animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

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

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

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

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.info-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills */
.about-skills h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skill-category {
    margin-bottom: 24px;
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.skill-category h4 i {
    font-size: 0.85rem;
}

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

.skill-tag {
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-glow);
    border-color: var(--border-hover);
    color: var(--primary-light);
}

/* ============================================
   PROJECTS PREVIEW (Home)
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

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

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

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

.project-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

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

.project-tags span {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   PAGE HERO (Experience & Contact)
   ============================================ */
.page-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 16px;
}

.page-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   TIMELINE (Experience Page)
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.timeline-dot.current {
    background: var(--primary-glow);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

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

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-current {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-light);
    border: 1px solid var(--border-hover);
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.timeline-details {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

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

.timeline-tags span {
    padding: 4px 14px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   PROJECTS DETAILED (Experience Page)
   ============================================ */
.projects-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-detailed-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.project-detailed-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.pdc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pdc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-size: 1.2rem;
}

.pdc-label {
    padding: 4px 14px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.project-detailed-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

.pdc-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pdc-tech span {
    padding: 4px 12px;
    background: var(--primary-glow);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-light);
}

/* ============================================
   EDUCATION (Experience Page)
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.edu-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: 50%;
    color: var(--primary-light);
    font-size: 1.4rem;
}

.edu-year {
    display: inline-block;
    padding: 4px 16px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.edu-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.edu-institute {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.edu-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--primary-glow);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

/* ============================================
   ADDITIONAL INFO
   ============================================ */
.additional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.add-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.add-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.add-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 1.2rem;
}

.add-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.add-items {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.add-items span {
    padding: 6px 16px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.cc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-size: 1rem;
    flex-shrink: 0;
}

.cc-content strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cc-content span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.pec-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.pec-badge i { font-size: 1.5rem; }
.pec-badge strong { display: block; font-size: 0.85rem; }
.pec-badge span { font-family: var(--font-mono); font-size: 0.9rem; }

/* Contact Form */
.contact-form-wrap {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: var(--text-muted);
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.input-wrap input.input-valid,
.input-wrap textarea.input-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.input-wrap input.input-invalid,
.input-wrap textarea.input-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
}

.textarea-wrap {
    align-items: flex-start;
}

.textarea-wrap i {
    top: 16px;
}

.textarea-wrap textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Alerts */
.form-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 14, 26, 0.9);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

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

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-glow);
    border-color: var(--border-hover);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animations */
.projects-grid .animate-on-scroll:nth-child(2),
.education-grid .animate-on-scroll:nth-child(2),
.additional-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.projects-grid .animate-on-scroll:nth-child(3),
.education-grid .animate-on-scroll:nth-child(3),
.additional-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.projects-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

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

    .hero-visual {
        min-height: 300px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-link {
        padding: 14px 20px;
        border-radius: var(--radius-sm);
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        justify-content: center;
    }

    .education-grid,
    .additional-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 24px;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

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

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

    .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .stat-label {
        margin-top: 0;
    }

    .hero-card-stack {
        height: 360px;
    }

    .hero-portrait-frame {
        width: 220px;
        height: 280px;
    }

    .floating-card {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .card-2 {
        left: 0;
    }
}
