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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
}

/* ================================
   3D CANVAS BACKGROUND   (UNTOUCHED)
================================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ================================
   HTML PARTICLE LAYER
================================ */
.html-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.html-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.25);
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) scale(1.2);
        opacity: 0;
    }
}

/* ================================
   CONTENT WRAPPER
================================ */
.content-wrapper {
    position: relative;
    z-index: 10;
}

/* ================================
   NAVIGATION
================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(0, 0, 0, 0.87);
    backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(0, 0, 0, 0.95);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-menu a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #a78bfa;
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 270px;
    background: rgba(10, 8, 30, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
}

.mobile-overlay.active {
    display: block;
}

.close-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    margin-bottom: 2rem;
    display: block;
    transition: color 0.3s;
}

.close-menu-btn:hover {
    color: #a78bfa;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu-links a:hover {
    color: #a78bfa;
    padding-left: 0.5rem;
}

/* ================================
   HERO SECTION
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 2rem;
    background: transparent;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 1.2s ease;
}

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

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

.hero-greeting {
    font-size: 1.4rem;
    color: #c4b5fd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Glowing light text effect for the hero name */
.glow-text {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #a5b4fc 0%, #e879f9 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.75)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3));
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6)) drop-shadow(0 0 22px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 45px rgba(139, 92, 246, 0.2));
    }

    to {
        filter: drop-shadow(0 0 16px rgba(240, 171, 252, 0.9)) drop-shadow(0 0 40px rgba(192, 132, 252, 0.65)) drop-shadow(0 0 70px rgba(139, 92, 246, 0.4));
    }
}

/* Softer glow for the rotating role title */
.glow-title {
    color: #e2d9f3;
    text-shadow:
        0 0 8px rgba(192, 132, 252, 0.8),
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3);
}


.hero-title {
    font-size: 2rem;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-weight: 600;
    min-height: 2.5rem;
}

.cursor-blink {
    animation: blink 0.7s step-end infinite;
    color: #a78bfa;
    font-weight: 300;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    max-width: 540px;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.hero-meta i {
    margin-right: 0.3rem;
    color: #a78bfa;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

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

.hero-image img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 80px rgba(129, 140, 248, 0.5);
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {

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

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

/* ================================
   BUTTONS
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.65);
}

.btn-secondary {
    background: transparent;
    color: #f8fafc;
    border: 2.5px solid #818cf8;
}

.btn-secondary:hover {
    background: rgba(129, 140, 248, 0.15);
    transform: translateY(-3px);
}

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

/* ================================
   SECTIONS
================================ */
section {
    padding: 100px 2rem;
    position: relative;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    font-family: 'Orbitron', sans-serif;
}

/* ── Per-section unique title colors ── */

/* About Me → warm rose-pink */
.about .section-title {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #fda4af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(244, 63, 94, 0.45));
}

/* Skills → electric cyan-teal */
.skills .section-title {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.45));
}

/* Experience → amber-orange */
.experience .section-title {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.45));
}

/* Services → emerald-green */
.services .section-title {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.45));
}

/* Projects → blue-violet */
.projects .section-title {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.5));
}

/* Contact → coral-red */
.contact .section-title {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #fca5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.45));
}


.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3.5rem;
    font-weight: 500;
}

/* ── Per-section subtitle colors (contrasting from titles) ── */

/* "Technologies I work with" — warm gold (title is cyan) */
.skills .section-subtitle {
    color: #fcd34d;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.3);
}

/* "My learning and building path" — soft violet (title is amber) */
.experience .section-subtitle {
    color: #c4b5fd;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

/* "What I can do for you" — light pink (title is green) */
.services .section-subtitle {
    color: #f9a8d4;
    text-shadow: 0 0 10px rgba(249, 168, 212, 0.3);
}

/* "Built with passion and precision" — warm amber (title is blue-violet) */
.projects .section-subtitle {
    color: #fdba74;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

/* "Ready to build something amazing together?" — mint (title is coral-red) */
.contact .section-subtitle {
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.3);
}


/* Underline bar */
.section-title+.section-subtitle::before,
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #c084fc);
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* ================================
   3D CARD EFFECT
================================ */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(6deg) rotateX(4deg) translateZ(12px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

/* ================================
   ABOUT SECTION
================================ */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.about-card {
    background: rgba(109, 40, 217, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 24px;
    padding: 2.5rem;
}

.about-icon {
    font-size: 3.5rem;
    color: #c084fc;
    margin-bottom: 1.2rem;
    text-align: center;
}

.about-card h3 {
    font-size: 1.8rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}

.about-content {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.about-content strong {
    color: #c4b5fd;
    font-weight: 800;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    background: rgba(14, 116, 144, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-left: 4px solid #06b6d4;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.timeline-dot.pink {
    background: #ec4899;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-item p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ================================
   SKILLS SECTION
================================ */
.skills {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(8, 145, 178, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 18px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s ease;
    transform-style: preserve-3d;
}

.skill-card:nth-child(2n) {
    background: rgba(109, 40, 217, 0.18);
    border-color: rgba(167, 139, 250, 0.35);
}

.skill-card:nth-child(3n) {
    background: rgba(157, 23, 77, 0.18);
    border-color: rgba(244, 114, 182, 0.35);
}

.skill-card:nth-child(4n) {
    background: rgba(6, 95, 70, 0.18);
    border-color: rgba(52, 211, 153, 0.35);
}

.skill-card:nth-child(5n) {
    background: rgba(120, 53, 15, 0.18);
    border-color: rgba(251, 146, 60, 0.35);
}

.card-hover:hover {
    transform: translateY(-12px) rotateX(8deg);
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.skill-card img {
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.skill-card:hover img {
    transform: scale(1.2) rotateY(360deg);
    transition: transform 1s ease;
}

.skill-card h3 {
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 700;
}

/* ================================
   EXPERIENCE SECTION
================================ */
.experience {
    background: transparent;
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.exp-card {
    background: rgba(109, 40, 217, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.exp-card:nth-child(2) {
    background: rgba(3, 105, 161, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.exp-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #fff;
    animation: float 4s ease-in-out infinite;
}

.purple-grad {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.blue-grad {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.green-grad {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pink-grad {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.exp-body {
    flex: 1;
}

.exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-header h3 {
    font-size: 1.3rem;
    color: #f8fafc;
    font-weight: 700;
}

.badge {
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-green {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.25);
    color: #fbbf24;
}

.exp-role {
    color: #a78bfa;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.exp-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.exp-list {
    list-style: none;
}

.exp-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.exp-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(157, 23, 77, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 18px;
    padding: 2rem 1rem;
    text-align: center;
}

.stat-card:nth-child(2) {
    background: rgba(6, 95, 70, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-card:nth-child(3) {
    background: rgba(30, 58, 138, 0.22);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-card:nth-child(4) {
    background: rgba(120, 53, 15, 0.2);
    border-color: rgba(251, 146, 60, 0.4);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.stat-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ================================
   SERVICES SECTION
================================ */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(109, 40, 217, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:nth-child(2) {
    background: rgba(8, 145, 178, 0.16);
    border-color: rgba(34, 211, 238, 0.4);
}

.service-card:nth-child(3) {
    background: rgba(6, 95, 70, 0.16);
    border-color: rgba(52, 211, 153, 0.4);
}

.service-card:nth-child(4) {
    background: rgba(120, 53, 15, 0.16);
    border-color: rgba(251, 146, 60, 0.4);
}

.service-card:nth-child(5) {
    background: rgba(157, 23, 77, 0.16);
    border-color: rgba(244, 114, 182, 0.4);
}

.service-card:nth-child(6) {
    background: rgba(55, 48, 163, 0.18);
    border-color: rgba(129, 140, 248, 0.4);
}

.service-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: #c084fc;
    margin-bottom: 1.2rem;
    animation: float 5s ease-in-out infinite;
}

.service-icon.cyan-icon {
    color: #22d3ee;
}

.service-icon.green-icon {
    color: #34d399;
}

.service-icon.orange-icon {
    color: #fb923c;
}

.service-icon.pink-icon {
    color: #f472b6;
}

.service-icon.indigo-icon {
    color: #818cf8;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card>p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
}

.service-list li {
    color: #cbd5e1;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-list li i {
    color: #a78bfa;
    font-size: 0.8rem;
}

/* ================================
   PROJECTS — FLIP CARDS
================================ */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.flip-card {
    perspective: 1100px;
    height: 420px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.flip-card:nth-child(1) .flip-card-front {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(109, 40, 217, 0.18);
}

.flip-card:nth-child(2) .flip-card-front {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(8, 145, 178, 0.18);
}

.flip-card:nth-child(3) .flip-card-front {
    border-color: rgba(244, 114, 182, 0.45);
    background: rgba(157, 23, 77, 0.18);
}

.flip-card:nth-child(4) .flip-card-front {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(6, 95, 70, 0.18);
}

.flip-card:nth-child(5) .flip-card-front {
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(120, 53, 15, 0.18);
}

.flip-card:nth-child(6) .flip-card-front {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(55, 48, 163, 0.18);
}

.flip-card:nth-child(7) .flip-card-front {
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(109, 40, 217, 0.2);
}

.flip-card-front {
    display: flex;
    flex-direction: column;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(240, 147, 251, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
}

.flip-card-back p {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.flip-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flip-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 1.5rem 1.8rem 2rem;
    flex: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    color: #f8fafc;
    font-weight: 700;
}

.project-content p {
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    line-height: 1.65;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(129, 140, 248, 0.22);
    color: #c4b5fd;
    padding: 0.3rem 0.9rem;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ================================
   CONTACT SECTION
================================ */
.contact {
    background: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-card {
    background: rgba(55, 48, 163, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(15, 12, 41, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #475569;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-card {
    background: rgba(109, 40, 217, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:nth-child(2) {
    background: rgba(6, 95, 70, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
}

.contact-card:nth-child(3) {
    background: rgba(30, 58, 138, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

.contact-card:nth-child(4) {
    background: rgba(157, 23, 77, 0.18);
    border-color: rgba(244, 114, 182, 0.4);
}

.contact-card:hover {
    background: rgba(102, 126, 234, 0.10);
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.contact-card i {
    font-size: 2.2rem;
    color: #c4b5fd;
    margin-bottom: 0.7rem;
}

/* Email card — Gmail red */
.contact-card:nth-child(1) i {
    color: #EA4335;
}

/* GitHub card — white-grey */
.contact-card:nth-child(2) i {
    color: #e6edf3;
}

/* LinkedIn card — LinkedIn blue */
.contact-card:nth-child(3) i {
    color: #0A66C2;
}

/* Location card — Google Maps green */
.contact-card:nth-child(4) i {
    color: #34A853;
}


.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
    font-weight: 700;
}

.contact-card a,
.contact-card span {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
}

.contact-card a:hover {
    color: #c4b5fd;
}

/* ================================
   FOOTER
================================ */
.footer {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #c084fc, #667eea);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 164px;
}


.footer-social a {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

/* GitHub — white/grey */
.footer-social a:nth-child(1) {
    color: #e6edf3;
    background: rgba(230, 237, 243, 0.1);
    border-color: rgba(230, 237, 243, 0.25);
}

/* LinkedIn — brand blue */
.footer-social a:nth-child(2) {
    color: #0A66C2;
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.4);
}

/* Twitter/X — sky blue */
.footer-social a:nth-child(3) {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.12);
    border-color: rgba(29, 161, 242, 0.35);
}

/* Facebook — brand blue */
.footer-social a:nth-child(4) {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.13);
    border-color: rgba(24, 119, 242, 0.38);
}

/* Instagram — pink/magenta */
.footer-social a:nth-child(5) {
    color: #E1306C;
    background: rgba(225, 48, 108, 0.13);
    border-color: rgba(225, 48, 108, 0.38);
}

/* Email — Gmail red */
.footer-social a:nth-child(6) {
    color: #EA4335;
    background: rgba(234, 67, 53, 0.13);
    border-color: rgba(234, 67, 53, 0.38);
}

.footer-social a:hover {
    transform: translateY(-4px);
    filter: brightness(1.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}


.footer-links h4 {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #667eea;
}

.footer-links a:hover {
    color: #a78bfa;
    padding-left: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: #a78bfa;
    font-weight: 600;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.55);
}

/* ================================
   TOAST
================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* Scroll reveal */
.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-name {
        font-size: 3.5rem;
    }

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

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

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

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

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

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

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

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

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

    .hamburger {
        display: flex;
    }

    .hero-name {
        font-size: 2.8rem;
    }

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

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 460px;
    }
}

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

    .hero-image img {
        width: 270px;
        height: 270px;
    }

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

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

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

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