/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0f172a;
    overflow-x: hidden;
}

/* CSS Variables for Premium Color Palette */
:root {
    /* Primary Colors */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    /* Secondary Colors */
    --secondary-50: #fafaf9;
    --secondary-100: #f5f5f4;
    --secondary-200: #e7e5e4;
    --secondary-300: #d6d3d1;
    --secondary-400: #a8a29e;
    --secondary-500: #78716c;
    --secondary-600: #57534e;
    --secondary-700: #44403c;
    --secondary-800: #292524;
    --secondary-900: #1c1917;

    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;

    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --gradient-accent: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 50px rgba(14, 165, 233, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

/* Prevent brand from shrinking on small screens */
.nav-brand { flex-shrink: 0; }

.nav-brand h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Brand logo in navbar */
.nav-brand .brand-link { display: inline-flex; align-items: center; height: 112px; }
.nav-brand .site-logo { width: 104px; height: 104px; display: block; filter: drop-shadow(0 0 6px rgba(0,255,255,.25)); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 112px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-greeting {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-4);
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

/* Prevent horizontal reflow from subtitle changes */
.hero-content .hero-subtitle { text-wrap: balance; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.3;
    /* Reserve space for up to two lines to avoid layout shift during typing */
    min-height: calc(1.3em * 2);
    display: block;
    overflow: hidden;
}

/* optional: fade styles kept minimal; typing now runs once */

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

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

/* Hero Visual */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 1;
}

.hero-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
}

/* Floating cards (legacy) are being replaced by tech orbit in hero */
.floating-card { display: none; }

/* remove legacy card positions */
.card-1,.card-2,.card-3,.card-4 { display: none; }

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Tech Orbit */
.tech-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    pointer-events: none; /* dots will re-enable */
    z-index: 2;
}

/* removed center fill to keep middle clear */

.tech-orbit .orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.18);
    z-index: 1;
}

.tech-orbit .ring-outer { width: 100%; height: 100%; margin: auto; }
.tech-orbit .ring-middle{ width: 74%; height: 74%; margin: 13%; }
.tech-orbit .ring-inner { width: 48%; height: 48%; margin: 26%; }

/* Center logo container */
.tech-orbit .orbit-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3; /* above rings, below tooltips */
    pointer-events: none; /* keep orbit dots clickable */
}

.tech-orbit .orbit-center .cyber-logo {
    width: 48%;
    height: 48%;
    filter: drop-shadow(0 0 26px rgba(106, 17, 203, 0.55));
    animation: logo-float 8s ease-in-out infinite;
}

.tech-orbit .orbit-center::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(138,79,255,0.28), rgba(138,79,255,0) 60%);
    filter: blur(32px);
    z-index: -1;
    animation: logo-pulse 6s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(0.5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(-0.5deg); }
}

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

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

.orbit-track {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: orbit-rotate 26s linear infinite;
    z-index: 2;
}
.track-middle { width: 74%; height: 74%; margin: 13%; animation-duration: 18s; animation-direction: reverse; }
.track-inner  { width: 48%; height: 48%; margin: 26%; animation-duration: 12s; }

.tech-dot {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
    transform-origin: center;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    will-change: transform;
    pointer-events: auto; /* re-enable on buttons */
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 3;
}

.tech-dot svg {
    width: 20px;
    height: 20px;
    display: block;
    color: #fff;
}

.tech-dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
    opacity: .55;
    filter: blur(8px);
    z-index: -1;
}
.tech-dot:hover { transform: scale(1.1); box-shadow: 0 14px 32px rgba(0,0,0,0.34); filter: brightness(1.08); }

/* tooltips */
.tech-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,14,0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.tech-dot:hover::after { opacity: 1; transform: translateX(-50%) translateY(-2px); }

/* color accents per tech (subtle tint) */
.t-react { background: linear-gradient(135deg, #61dafb 0%, #2a9bd6 100%); }
.t-node { background: linear-gradient(135deg, #8cc84b 0%, #558b2f 100%); }
.t-firebase { background: linear-gradient(135deg, #fbc02d 0%, #f57c00 100%); }
.t-flutter { background: linear-gradient(135deg, #54c5f8 0%, #01579b 100%); }
.t-ts { background: linear-gradient(135deg, #3178c6 0%, #1b4f8a 100%); }
.t-js { background: linear-gradient(135deg, #f7df1e 0%, #c9a400 100%); color: #171717; font-weight: 800; }
.t-html { background: linear-gradient(135deg, #e44d26 0%, #c73a1a 100%); }
.t-css { background: linear-gradient(135deg, #2965f1 0%, #1c3fae 100%); }
.t-git { background: linear-gradient(135deg, #f34f29 0%, #b0270e 100%); }
.t-figma { background: linear-gradient(135deg, #a259ff 0%, #7a34e6 100%); }
.t-next { background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%); color: #111; letter-spacing: .5px; }
.t-csshtml { background: linear-gradient(135deg, #2965f1 0%, #1c3fae 50%, #e44d26 100%); }
.t-tailwind { background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%); }
.t-docker { background: linear-gradient(135deg, #2496ed 0%, #0b5ea8 100%); }

/* place dots on the tracks using an angle-based offset from the track center */
.track-outer { --r: calc(50% - 3px); }
.track-middle { --r: calc(50% - 3px); }
.track-inner  { --r: calc(50% - 3px); }

.orbit-track .tech-dot {
    /* Place the dot center on a circle of radius var(--r) within each track */
    left: calc(50% + (var(--r)) * cos(var(--angle)));
    top: calc(50% + (var(--r)) * sin(var(--angle)));
    transform: translate(-50%, -50%);
}

/* Fallback for browsers without trig functions */
@supports not (top: calc(50% + 1px * cos(45deg))) {
    .track-outer { --R: 169px; }
    .track-middle { --R: 119px; }
    .track-inner { --R: 70px; }
    .orbit-track .tech-dot {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--R)) rotate(calc(-1 * var(--angle)));
    }
    @media (max-width: 768px) {
        .tech-orbit { width: 300px; height: 300px; }
        .track-outer { --R: 129px; }
        .track-middle { --R: 90px; }
        .track-inner { --R: 51px; }
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .tech-orbit .ring-outer,
  .tech-orbit .ring-middle,
  .tech-orbit .ring-inner,
  .tech-dot { animation: none !important; }
}

/* Responsive tweaks for small screens */
@media (max-width: 768px) {
  .tech-orbit { width: 300px; height: 300px; }
    /* center logo scales with orbit via percentage sizing */
    .tech-dot { width: 38px; height: 38px; font-size: 11px; }
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: drift 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    bottom: 10%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Section Styles */
section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-tag {
    display: inline-block;
    background: var(--bg-glass);
    color: var(--primary-400);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

/* About logo under the heading */
.about .about-logo {
    margin-top: var(--space-6);
    display: grid;
    place-items: center;
}
.about .about-logo .cyber-logo {
    width: clamp(140px, 22vw, 200px);
    height: auto;
    filter: drop-shadow(0 0 24px rgba(106, 17, 203, 0.5));
    animation: logo-float 8s ease-in-out infinite;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.tech-item {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    font-size: 1.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(14, 165, 233, 0.3);
        box-shadow: var(--shadow-xl), 0 0 50px rgba(14, 165, 233, 0.1);
    }
}

.project-card.featured {
    grid-column: span 2;
}

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

.project-placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.project-content {
    padding: var(--space-6);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-status {
    background: var(--accent-green);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.tech-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-actions {
    display: flex;
    gap: var(--space-3);
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.skill-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: width 1s ease-out;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr; /* form removed; single column by default */
    gap: var(--space-12);
    align-items: start;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(8px);
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.05);
}

/* Contact brand variants */
.contact-method.phone .contact-icon { background: linear-gradient(135deg,#10b981,#059669); }
.contact-method.email .contact-icon { background: linear-gradient(135deg,#0ea5e9,#38bdf8); }
.contact-method.whatsapp .contact-icon { background: linear-gradient(135deg,#25D366,#128C7E); }
.contact-method.github .contact-icon { background: linear-gradient(135deg,#333,#6b7280); }
.contact-method.facebook .contact-icon { background: linear-gradient(135deg,#1877F2,#155db9); }

.contact-method span {
    font-weight: 600;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Form Styles */
/* form removed */

/* form removed */

/* form removed */

/* form removed */

/* form removed */

/* form removed */

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.footer-info h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.footer-info p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Show mobile menu when toggled */
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 112px; /* default, overridden below for smaller heights */
        left: 0;
        right: 0;
        flex-direction: column;
        gap: var(--space-2);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: var(--space-4) var(--space-6) var(--space-6);
        z-index: 1001;
    }

    .nav-menu .nav-item {
        padding: var(--space-2) 0;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: var(--space-2) 0;
        font-size: 1.05rem;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
        min-height: calc(1.4em * 2);
    }

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

    .floating-card {
        font-size: 0.875rem;
        padding: var(--space-3);
    }

    .card-icon {
        width: 32px;
        height: 32px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .nav-container {
        padding: 0 var(--space-4);
    }

    section {
        padding: var(--space-16) 0;
    }

    /* Smaller navbar and logo on very small screens */
    .nav-container { height: 72px; }
    .nav-brand .brand-link { height: 72px; }
    .nav-brand .site-logo { width: 64px; height: 64px; }
    .nav-menu.active { top: 72px; }
    .hero { padding-top: 72px; }


/* Tablet/mobile adjustments */
@media (max-width: 768px) {
    /* Slightly smaller navbar and logo to ensure visibility */
    .nav-container { height: 80px; }
    .nav-brand .brand-link { height: 80px; }
    .nav-brand .site-logo { width: 72px; height: 72px; }
    .nav-menu.active { top: 80px; }
    .hero { padding-top: 80px; }
}
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Selection Styling */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
}

/* Project Details Page Styles */
.project-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.project-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.project-category {
    background: var(--bg-glass);
    color: var(--primary-400);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.project-status-live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.project-details {
    padding: var(--space-20) 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.details-main > * + * {
    margin-top: var(--space-12);
}

.detail-section {
    margin-bottom: var(--space-12);
}

.detail-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: var(--space-8) 0 var(--space-4);
    color: var(--text-primary);
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.feature-list strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-1);
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.tech-category {
    background: var(--bg-glass);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-category h4 {
    color: var(--primary-400);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

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

.tech-category li {
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
    position: relative;
}

.tech-category li::before {
    content: "•";
    color: var(--primary-400);
    position: absolute;
    left: 0;
}

.development-timeline {
    position: relative;
    padding-left: var(--space-8);
}

.development-timeline::before {
    content: "";
    position: absolute;
    left: var(--space-4);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-8);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-8));
    top: var(--space-2);
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    transform: translateX(-50%);
}

.timeline-content h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

.details-sidebar > * + * {
    margin-top: var(--space-6);
}

.project-info-card,
.tech-stack-card {
    background: var(--bg-glass);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-6);
}

.project-info-card h3,
.tech-stack-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.info-value.live {
    color: #10b981;
    font-weight: 600;
}

.info-link {
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}

.info-link:hover {
    color: var(--primary-300);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cta {
    padding: var(--space-20) 0;
    background: var(--bg-glass);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    font-size: 1.125rem;
}

/* Responsive Design for Project Details */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .tech-details {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }
    
    .development-timeline {
        padding-left: var(--space-6);
    }
    
    .timeline-marker {
        left: calc(-1 * var(--space-6));
    }
}
