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

:root {
    --bg-primary: #e5e7eb;
    --bg-secondary: #f3f4f6;
    --bg-card: #d1d5db;
    --bg-tertiary: #9ca3af;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-primary: #0c399a;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #062464 0%, #80b9ff 100%);
    --border-color: rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.15);
    --shadow-accent: 0 10px 30px rgba(38, 84, 185, 0.3);
}

[data-theme="dark"] {
    --bg-primary: #08080b;
    --bg-secondary: #0f0f14;
    --bg-card: #15151b;
    --bg-tertiary: #1c1c24;
    --text-primary: #f5f5f5;
    --text-secondary: #d1d1d1;
    --text-muted: #8a8a95;
    --accent-primary: #facc15;
    --accent-secondary: #fbbf24;
    --accent-gradient: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 10px 40px rgba(250, 204, 21, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

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

::selection {
    background: var(--accent-primary);
    color: #fff;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal-stagger.visible>*:nth-child(7) {
    transition-delay: 0.6s;
}

.reveal-stagger.visible>*:nth-child(8) {
    transition-delay: 0.7s;
}

.reveal-stagger.visible>*:nth-child(9) {
    transition-delay: 0.8s;
}

.reveal-stagger.visible>*:nth-child(10) {
    transition-delay: 0.9s;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 1001;
    width: 0;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    padding: 1rem 0;
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(10, 10, 15, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(12, 57, 154, 0.3));
}

[data-theme="dark"] .logo-img {
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.logo-img:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 15px rgba(12, 57, 154, 0.6));
}

[data-theme="dark"] .logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.7));
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.toggle-track {
    width: 56px;
    height: 30px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle:hover .toggle-track {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .theme-toggle:hover .toggle-track {
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.15);
}

.toggle-sun,
.toggle-moon {
    font-size: 0.75rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle-sun {
    color: var(--text-primary);
}

[data-theme="dark"] .toggle-sun {
    color: var(--text-muted);
}

.toggle-moon {
    color: var(--text-muted);
}

[data-theme="dark"] .toggle-moon {
    color: var(--text-primary);
}

.toggle-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gradient);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-accent);
}

[data-theme="dark"] .toggle-knob {
    left: 31px;
}


/* Language Toggle */
.lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.lang-track {
    width: 60px;
    height: 30px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-toggle:hover .lang-track {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .lang-toggle:hover .lang-track {
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.15);
}

.lang-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1;
    transition: opacity 0.3s ease;
    user-select: none;
    line-height: 1;
}

html[lang="en"] .flag-fr { opacity: 0.3; }
html[lang="fr"] .flag-en { opacity: 0.3; }

.lang-knob {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-accent);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-knob::after {
    content: "🇬🇧";
    font-size: 14px;
    line-height: 1;
    margin-top: 1px;
}

html[lang="fr"] .lang-knob {
    transform: translateX(30px);
}

html[lang="fr"] .lang-knob::after {
    content: "🇫🇷";
}

.cta-btn {
    background: var(--accent-gradient);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

[data-theme="dark"] .hero-bg {
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .badge {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    min-height: 10rem;
}

.hero-title .typing-line:last-child {
    font-size: 2.5rem;
    display: inline-block;
}

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    color: var(--accent-primary);
}

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

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 550px;
}

/* Premium Motto Styles */
.premium-motto-wrapper {
    position: relative;
    margin: 1.5rem 0 2.5rem 0;
    display: inline-block;
}

.motto-glow {
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 8px;
    filter: blur(12px);
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.premium-motto-wrapper:hover .motto-glow {
    opacity: 0.7;
    filter: blur(16px);
}

.premium-motto {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .premium-motto {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.motto-icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    opacity: 0.9;
}

.motto-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

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

.image-wrapper {
    position: relative;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

[data-theme="dark"] .glow-effect {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
}

.profile-pic {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 24px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-soft);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -40px;
    animation-delay: 1s;
}

@keyframes float {

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

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

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

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.card-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Section Headers */
.section {
    padding: 12rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Caveat', cursive;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    display: table;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--accent-gradient);
    filter: blur(25px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 30px;
    transition: opacity 0.4s ease;
}

.about-image:hover::after {
    opacity: 0.5;
}

.about-photo {
    width: auto;
    max-width: 100%;
    max-height: 490px;
    border-radius: 24px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-photo:hover {
    transform: translateY(-6px) scale(1.02);
}

.about-card {
    bottom: -20px;
    right: -20px;
    animation-delay: 0.5s;
}

.about-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--accent-primary);
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.05);
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .about-badge {
    background: rgba(250, 204, 21, 0.08);
}

.about-paragraph {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Kalam', cursive;
}

.about-paragraph+.skills-wrapper {
    margin-top: 1.25rem;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.skills-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.35rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item:hover::before {
    left: 100%;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .portfolio-item:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-project {
    background: var(--accent-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-name {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Kalam', cursive;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-primary);
}

.contact-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 1rem;
}

.contact-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--accent-gradient);
    filter: blur(40px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 20px;
}

.contact-poster {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.contact-poster:hover {
    transform: translateY(-10px) scale(1.02);
}

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-wrapper {
    transition: transform 0.4s ease;
}

.image-wrapper:hover {
    transform: scale(1.03);
}

.profile-pic {
    transition: transform 0.5s ease, border-radius 0.5s ease;
}

.image-wrapper:hover .profile-pic {
    border-radius: 30px;
}

.badge {
    position: relative;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.floating-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.section-label {
    position: relative;
    overflow: hidden;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.section-header:hover .section-label::after {
    transform: scaleX(1);
}

@keyframes page-load {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.navbar {
    animation: page-load 0.6s ease forwards;
}

.hero {
    animation: page-load 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.contact-icon {
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.modal-container {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.modal-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-accent);
}

.portfolio-item.hidden {
    display: none;
}

.skills-bars {
    margin-top: 2rem;
}

.skill-bar {
    margin-bottom: 1.25rem;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar-info span:last-child {
    color: var(--accent-primary);
}

.skill-bar-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.animated {
    /* width is set via inline style, just trigger transition */
    ;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo .logo-img {
    height: 50px;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

[data-theme="dark"] .modal {
    background: rgba(10, 10, 15, 0.9);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.modal-content {
    padding: 3rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-tags span {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

.media-row::-webkit-scrollbar {
    height: 6px;
}
.media-row::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}
.media-row::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.media-item {
    flex: 0 0 auto;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.media-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-soft);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-content-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-media {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .media-item {
        height: 160px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content,
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-pic {
        width: 320px;
        height: 320px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding: 2rem;
    }

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

    #desktop-cta {
        display: none;
    }

    .nav-links 

.cta-btn {
        display: inline-flex;
        margin-top: 1rem;
    }

    .section {
        padding: 8rem 0 6rem;
    }

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

    .hero-title .typing-line:last-child {
        font-size: 1.75rem;
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-pic {
        width: 280px;
        height: 280px;
    }

    .floating-card {
        display: none;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.lightbox-nav:hover {
    background: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

.modal-description ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
.modal-description li {
    margin-bottom: 0.5rem;
}
.modal-description p {
    margin-bottom: 1rem;
}

.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-nav-arrow:hover:not(:disabled) {
    background: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}
.modal-nav-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}
.prev-arrow {
    left: 40px;
}
.next-arrow {
    right: 40px;
}

@media (max-width: 1024px) {
    .modal-nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .prev-arrow {
        left: 15px;
    }
    .next-arrow {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .modal-nav-arrow {
        top: auto;
        bottom: 20px;
        transform: none;
        background: var(--accent-primary);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .modal-nav-arrow:hover:not(:disabled) {
        transform: scale(1.1);
    }
    .prev-arrow {
        left: 20px;
    }
    .next-arrow {
        right: 20px;
    }
    .modal {
        padding: 1rem;
    }
    .modal-container {
        max-height: 85vh;
        margin-bottom: 60px; /* Space for the arrows at the bottom */
    }
}

