/* ============================================================
   CUSTOM CSS — Ayman Akhsassi Portfolio CV
   Dark Theme + Neon Green accent + Raleway font
   ============================================================ */

/* ========== CSS Custom Properties (Design Tokens) ========== */
:root {
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf0;
    --bg-dark-section: #0b0f14;
    --bg-dark-card: rgba(20, 30, 20, 0.6);

    /* Accent — Neon Green */
    --accent: #f1fff4;
    --accent-light: #dbffe5;
    --accent-dark: #00b82e;
    --accent-muted: #00e63920;
    --accent-glow: rgb(152, 179, 162);
    --accent-glow-strong: rgba(0, 230, 57, 0.35);
    --accent-gradient: linear-gradient(135deg, #6dff91 0%, #ffffff 100%);

    /* Text */
    --text-primary: #bcffd6;
    --text-secondary: #f1f1f1;
    --text-muted: #9ca3af;
    --text-on-dark: #f0f0f5;
    --text-on-dark-muted: #e4e4ec;

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 230, 57, 0.3);

    /* Effects */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 230, 57, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(0, 230, 57, 0.25);

    /* Radii */
    --radius: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Transition */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


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

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

body {
    font-family: 'Raleway', sans-serif;
    background-color: #060b10;
    color: var(--text-on-dark);
    line-height: 1.75;
    overflow-x: hidden;
    font-weight: 400;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--text-on-dark);
}

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

a:hover {
    color: var(--accent-light);
}

.text-accent {
    color: var(--accent);
}

.text-muted-custom {
    color: var(--text-on-dark-muted);
}

.bg-accent {
    background-color: var(--accent) !important;
    color: #0b0f14 !important;
}

.bg-dark-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-padding {
    padding: 120px 0;
}


/* ========== Custom Buttons (Dark Theme) ========== */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.8rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0b0f14;
    box-shadow: 0 8px 20px rgba(0, 230, 57, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 230, 57, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(0, 230, 57, 0.4);
}

.btn-outline-light:hover {
    background: rgba(0, 230, 57, 0.1);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}


/* ========== Shared Styles ========== */
.section-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-on-dark-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.card .card-title,
.card .card-text,
.card p {
    color: #ffffff;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 230, 57, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 230, 57, 0.05), inset 0 0 30px rgba(255, 255, 255, 0.03);
}


/* ========== NAVIGATION ========== */
.navbar {
    background: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: 1px solid transparent;
    padding: 0.9rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(6, 11, 16, 0.6);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f0f0f5 !important;
    transition: var(--transition);
}

.brand-accent {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 1.1rem !important;
    color: #ffffff !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.navbar.scrolled .nav-link {
    color: #ffffff !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

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


/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    background: #060b10;
    background-blend-mode: soft-light;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    text-align: center;
}

.hero-gradient img {
    position: absolute;
    top: -200px;
    left: 80%;
    width: 50rem;
    height: 20rem;
}

/* Green glow at the TOP */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 80%;
    transform: translateX(50%);
    width: 30rem;
    height: 0px;
    box-shadow: 0 0 700px 20px rgb(179, 255, 135);
    rotate: -30deg;
    animation: heroGlowPulse 6s ease-in-out infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Floating Notification Badges */
.hero-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.03);
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.hero-badge i {
    color: var(--accent);
    font-size: 1rem;
}

.badge-1 {
    top: 22%;
    left: 12%;
    animation-delay: 0s;
}

.badge-2 {
    top: 18%;
    right: 12%;
    animation-delay: -1s;
}

.badge-3 {
    top: 50%;
    left: 8%;
    animation-delay: -2s;
}

.badge-4 {
    bottom: 22%;
    right: 10%;
    animation-delay: -0.5s;
}

.badge-5 {
    bottom: 28%;
    left: 15%;
    animation-delay: -1.5s;
}

@keyframes badgeFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}

.hero-greeting {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(0, 230, 57, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 230, 57, 0.2);
}

.hero-name {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #f0f0f5;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

@keyframes heroGlowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}


/* ========== PROFILE IMAGE ========== */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent));
    animation: profileSpin 8s linear infinite;
    z-index: 0;
}

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

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #060b10;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(0, 230, 57, 0.15);
}


/* ========== ABOUT SECTION ========== */
.about-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.about-img {
    border: 4px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: -5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* ========== SKILLS SECTION ========== */
.skill-card {
    padding: 2rem 1.5rem;
}

.skill-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;

}

.progress-wrapper {
    margin-top: 1rem;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========== EXPERIENCE & EDUCATION ========== */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.timeline-heading {
    margin-bottom: 2rem;
    color: var(--text-on-dark);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #060b10;
    box-shadow: 0 0 12px rgba(0, 230, 57, 0.3);
}

.timeline-card {
    padding: 1.5rem;
}

.timeline-card .badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 50px;
}


/* ========== PROJECTS (3D Carousel) ========== */
.projects-section {
    background: #040810;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.projects-title,
.projects-subtitle {
    color: var(--text-on-dark) !important;
}

.section-divider-light {
    background: var(--accent-gradient);
}

/* Lens Flare Effects */
.lens-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.lens-flare-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(0, 230, 57, 0.08) 0%, transparent 70%);
}

.lens-flare-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.06) 0%, transparent 70%);
}

.lens-flare-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 230, 57, 0.04) 0%, transparent 70%);
}

.lens-streak {
    position: absolute;
    height: 1px;
    pointer-events: none;
    z-index: 0;
}

.lens-streak-1 {
    width: 60%;
    top: 30%;
    left: 20%;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 57, 0.06), transparent);
}

.lens-streak-2 {
    width: 40%;
    bottom: 25%;
    right: 10%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.04), transparent);
}

/* Carousel 3D */
.carousel-3d-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.carousel-3d {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.carousel-3d-slide {
    position: absolute;
    width: 320px;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.carousel-3d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-3d-slide.active {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 5;
    border-color: rgba(0, 230, 57, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 230, 57, 0.1);
}

.carousel-3d-slide.prev {
    transform: translateX(-350px) scale(0.8) translateZ(-100px) rotateY(10deg);
    z-index: 4;
    opacity: 0.7;
}

.carousel-3d-slide.next {
    transform: translateX(350px) scale(0.8) translateZ(-100px) rotateY(-10deg);
    z-index: 4;
    opacity: 0.7;
}

.carousel-3d-slide.far-prev {
    transform: translateX(-600px) scale(0.6) translateZ(-200px) rotateY(15deg);
    z-index: 3;
    opacity: 0.3;
}

.carousel-3d-slide.far-next {
    transform: translateX(600px) scale(0.6) translateZ(-200px) rotateY(-15deg);
    z-index: 3;
    opacity: 0.3;
}

.carousel-3d-slide.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.carousel-3d-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-3d-btn:hover {
    background: var(--accent);
    color: #0b0f14;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-3d-prev {
    left: -20px;
}

.carousel-3d-next {
    right: -20px;
}

.carousel-3d-active-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.carousel-3d-active-tags {
    transition: opacity 0.3s;
}

.carousel-3d-active-tags .badge {
    background: rgba(0, 230, 57, 0.1);
    color: var(--accent);
    font-weight: 600;
    margin: 0 4px;
    padding: 0.5em 1em;
    border-radius: 20px;
    border: 1px solid rgba(0, 230, 57, 0.2);
}

.carousel-3d-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.carousel-3d-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-3d-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 230, 57, 0.4);
    transform: scale(1.3);
}

.carousel-3d-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}


/* ========== CONTACT SECTION ========== */

/* Apple-Style Contact Cards */
.apple-contact-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.apple-contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(0, 230, 57, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 230, 57, 0.08);
}

.apple-contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 230, 57, 0.1);
    border: 1px solid rgba(0, 230, 57, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
    transition: var(--transition);
}

.apple-contact-card:hover .apple-contact-icon {
    background: var(--accent);
    color: #0b0f14;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 230, 57, 0.3);
}

.apple-contact-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.contact-item a {
    color: var(--text-on-dark-muted);
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    border-radius: var(--radius-xs);
    padding: 0.8rem 1rem;
    transition: var(--transition);
    font-family: 'Raleway', sans-serif;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    color: var(--text-on-dark);
    box-shadow: 0 0 0 4px rgba(0, 230, 57, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}


/* ========== FOOTER ========== */
.footer-section {
    background: rgba(6, 11, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-section p {
    color: var(--text-on-dark-muted);
}

.footer-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark-muted);
    margin: 0 5px;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-section .social-links a:hover {
    background: var(--accent);
    color: #0b0f14;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 230, 57, 0.2);
}


/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 230, 57, 0.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid rgba(0, 230, 57, 0.2);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: #0b0f14;
    transform: translateY(-5px);
}


/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* Skill bar animation */
.skill-card .progress-bar {
    width: 0 !important;
}

.skill-card.animated .progress-bar {
    width: var(--skill-width) !important;
}


/* ========== RESPONSIVE DESIGN ========== */

/* Tablets */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-text {
        order: 2;
    }

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

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

    .profile-img {
        width: 260px;
        height: 260px;
    }

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

    .timeline {
        padding-left: 25px;
    }
    .hero-badge{
      display: none; 
     
    }

}

/* Mobile */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 80px 0;
    }

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

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

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .about-card {
        margin-top: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .carousel-3d-slide {
        width: 260px;
        height: 340px;
    }

    .carousel-3d-slide.prev {
        transform: translateX(-280px) scale(0.75) rotateY(15deg);
    }

    .carousel-3d-slide.next {
        transform: translateX(280px) scale(0.75) rotateY(-15deg);
    }

    .carousel-3d-slide.far-prev,
    .carousel-3d-slide.far-next {
        opacity: 0;
    }

    .carousel-3d {
        height: 360px;
    }

    .navbar {
        background: rgba(6, 11, 16, 0.95);
    }

    .navbar-collapse {
        background: rgba(6, 11, 16, 0.98);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

}

/* Small Mobile */
@media (max-width: 575.98px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-buttons .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }

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

    .contact-info-card,
    .contact-form {
        padding: 1.5rem !important;
    }
}