/* ============================================
   LANA ALZOUBI — Premium Portfolio
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #060611;
    --bg-card: #0d0d1a;
    --bg-glass: rgba(15, 15, 30, 0.6);
    --surface: #111128;
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.4);

    --purple: #8B5CF6;
    --purple-light: #A78BFA;
    --purple-dark: #6D28D9;
    --violet: #7C3AED;
    --fuchsia: #D946EF;
    --pink: #EC4899;
    --cyan: #06B6D4;

    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --glow-sm: 0 0 20px rgba(139, 92, 246, 0.15);
    --glow-md: 0 0 40px rgba(139, 92, 246, 0.2);
    --glow-lg: 0 0 80px rgba(139, 92, 246, 0.25);
    --glow-xl: 0 8px 60px rgba(139, 92, 246, 0.3), 0 0 120px rgba(139, 92, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px;
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ---------- Navbar ---------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s var(--ease);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: rgba(6, 6, 17, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

nav.scrolled .nav-container {
    padding: 14px 24px;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text);
}

.logo-dot {
    font-size: 32px;
    font-weight: 900;
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: var(--purple-light);
}

/* Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ---------- Hero ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -10%;
    background: var(--purple-dark);
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: -15%;
    left: -5%;
    background: var(--fuchsia);
    opacity: 0.2;
    animation: orbFloat 20s ease-in-out infinite 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    background: var(--cyan);
    opacity: 0.1;
    animation: orbFloat 18s ease-in-out infinite 3s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    animation: heroFade 1s var(--ease) both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--purple-light);
    margin-bottom: 40px;
    animation: heroFade 1s var(--ease) 0.2s both;
}

.hero-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    animation: heroFade 1s var(--ease) 0.3s both;
}

.hero-photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--purple), var(--fuchsia), var(--purple-light), var(--purple));
    animation: ringRotate 4s linear infinite;
    opacity: 0.8;
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

.hero-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    animation: heroFade 1s var(--ease) 0.4s both;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--purple), var(--fuchsia), var(--purple-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: heroFade 1s var(--ease) 0.5s both;
}

.hero-subtitle .dot {
    color: var(--purple);
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: heroFade 1s var(--ease) 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFade 1s var(--ease) 0.7s both;
}

.scroll-indicator {
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: heroFade 1s var(--ease) 1s both;
    cursor: pointer;
    z-index: 20;
    color: var(--text-muted);
}

.scroll-indicator:hover {
    color: var(--purple-light);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.scroll-arrows i {
    font-size: 14px;
    line-height: 0.6;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

.arrow-1 { animation-delay: 0s !important; }
.arrow-2 { animation-delay: 0.15s !important; }
.arrow-3 { animation-delay: 0.3s !important; }

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(4px); opacity: 1; text-shadow: var(--glow-sm); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--violet));
    color: #fff;
    box-shadow: var(--glow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--purple);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Section Common ---------- */
section {
    padding: 120px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--purple-light);
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.about-lead {
    font-size: 20px !important;
    font-weight: 500;
    color: var(--text) !important;
    line-height: 1.6;
}

.about-highlight {
    color: var(--purple-light) !important;
    font-style: italic;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s var(--ease);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-md);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--fuchsia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 12px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--fuchsia));
    border-radius: 3px;
    transition: width 1.5s var(--ease);
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--glow-md);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.25);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(217, 70, 239, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--purple-light);
    margin-bottom: 20px;
    transition: all 0.4s var(--ease);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--glow-sm);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Portfolio ---------- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.filter-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    box-shadow: var(--glow-sm);
}

.filter-btn i {
    font-size: 12px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    min-height: 200px;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    animation: fadeInUp 0.5s var(--ease) both;
}

.portfolio-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--glow-md);
}

.portfolio-item-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-item-image img {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 17, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-overlay span {
    color: var(--purple-light);
    font-size: 14px;
    font-weight: 600;
}

.portfolio-item-info {
    padding: 20px;
}

.portfolio-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.portfolio-item-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-item-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--purple-light);
    margin-top: 10px;
}

.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.portfolio-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: rgba(139, 92, 246, 0.3);
}

.portfolio-empty p {
    font-size: 16px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- CV ---------- */
.cv-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

.cv-download {
    margin-bottom: 40px;
}

.cv-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.timeline {
    position: relative;
    padding-left: 32px;
    margin-bottom: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    width: 1px;
    height: calc(100% - 16px);
    background: linear-gradient(to bottom, var(--purple), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--purple);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s var(--ease);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-sm);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.timeline-date {
    font-size: 13px;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.timeline-company {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.2);
    border-radius: 100px;
    font-size: 11px;
    color: var(--fuchsia);
    margin-left: 8px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-size: 12px;
}

.edu-focus {
    font-size: 14px;
    color: var(--text-secondary);
}

/* CV Sidebar */
.cv-sidebar {
    position: sticky;
    top: 100px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.skill-item:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateX(8px);
}

.skill-item i {
    color: var(--purple-light);
    width: 18px;
}

/* ---------- Clients ---------- */
.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex-shrink: 0;
    width: 120px;
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s var(--ease);
}

.client-logo:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-sm);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%) brightness(0.9);
    transition: filter 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--glow-sm);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(217, 70, 239, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--purple-light);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
footer {
    padding: 80px 0 40px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
/* ---------- Portfolio Modal ---------- */
.portfolio-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.portfolio-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: var(--glow-xl);
    transform: translateY(20px);
    transition: transform 0.3s var(--ease);
}

.portfolio-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 24px;
    padding-right: 40px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.modal-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 100px;
    font-size: 13px;
    color: var(--purple-light);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    white-space: pre-line;
}

.modal-media-grid {
    display: grid;
    gap: 24px;
}

.modal-media-item {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-media-item img,
.modal-media-item video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 12px 24px;
    background: var(--purple);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s;
}

.modal-link:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(6, 6, 17, 0.98);
        backdrop-filter: blur(20px);
        padding: 40px;
        transition: right 0.4s var(--ease);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
        padding: 12px;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .scroll-indicator {
        margin-top: 40px;
        transform: scale(0.9);
    }

    /* Wrap filters to apply fade mask */
    .filters-wrapper {
        position: relative;
        margin-left: -24px;
        margin-right: -24px;
    }
    
    .filters-wrapper::before,
    .filters-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0px; /* leaves room for scrollbar if any */
        width: 40px;
        z-index: 2;
        pointer-events: none;
    }
    
    .filters-wrapper::before {
        left: 0;
        background: linear-gradient(to right, var(--bg), transparent);
    }
    
    .filters-wrapper::after {
        right: 0;
        background: linear-gradient(to left, var(--bg), transparent);
    }

    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
        margin-bottom: 32px;
        padding-left: 24px;
        padding-right: 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .about-stats,
    .services-grid,
    .contact-grid,
    .form-row,
    .footer-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .cursor-glow {
        display: none;
    }

    .modal-content {
        padding: 20px;
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }
}