/* Global Styles */
:root {
    --bg-color: #0a0a0a;
    --bg-alt: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #6d28d9;
    /* Deep Purple */
    --accent-glow: rgba(109, 40, 217, 0.4);
    --white: #ffffff;
    --border: #2d2d2d;
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: #5b21b6;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--bg-color);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* Cursor Customization */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--white);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--white);
    display: flex;
    align-items: baseline;
    transition: var(--transition);
}

.logo span {
    color: var(--accent);
    font-size: 3.5rem;
    line-height: 0;
    margin-left: 2px;
}

.logo:hover {
    text-shadow: 0 0 20px var(--accent-glow);
}



.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.cv-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.cv-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

@media only screen and (max-width: 768px) {
    .cv-btn {
        display: none;
        /* Hide on mobile to prevent overlap */
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 50px;
    overflow: hidden;
    background: radial-gradient(circle at bottom left, var(--bg-alt), var(--bg-color));
    animation: heroEntrance 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    z-index: 5;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }

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

.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-right: 15px;
    /* Tighter gap */
}

.parallax-img {
    width: 480px;
    /* Smaller as requested */
    height: auto;
    filter: drop-shadow(0 0 50px var(--accent-glow));
    z-index: 3;
    pointer-events: auto;
    /* Enable hover */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.parallax-img:hover {
    transform: scale(1.08) !important;
    /* Scale up on hover */
    filter: drop-shadow(0 0 70px var(--accent-glow));
    cursor: pointer;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    flex: 0 0 auto;
    text-align: left;
    max-width: 700px;
    z-index: 4;
    padding-left: 15px;
    /* Tighter gap */
    position: relative;
}

.hero-title {
    font-size: 8rem;
    /* Even bigger */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #a3a3a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    font-size: 1.5rem;
    /* Larger desc */
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.5rem;
    /* Increased size */
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-size: 6rem;
    /* Increased size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #a3a3a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    font-size: 2.5rem;
    /* Increased size */
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 30px;
    min-height: 1.2em;
    /* Prevent layout shift */
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-subtitle .type-text {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

/* Typewriter Cursor */
.hero-subtitle .type-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: var(--white);
    animation: blink 0.7s infinite;
}

.hero-desc {
    font-size: 1.25rem;
    /* Increased size */
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

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

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.glowing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.5;
    z-index: 1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Changed to accommodate image */
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    /* Removed border and shadow for blending */
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    /* Fade out edges to blend with background */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.5), transparent);
    pointer-events: none;
}

.lead {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.experience-list {
    margin-top: 40px;
}

.experience-list h3 {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.timeline-item {
    padding-left: 20px;
    border-left: 2px solid var(--accent);
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.timeline-item .date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-item h4 {
    color: var(--white);
    font-size: 1.1rem;
}

.timeline-item .company {
    color: var(--text-secondary);
}

.about-stats-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(to right, #121212, #1a1a1a, #121212);
    padding: 120px 0;
    /* More padding for a huge feel */
    margin-top: 100px;
    margin-bottom: 100px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.about-stats {
    max-width: 1400px;
    /* Wider for full screen feel */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    /* Wider gap */
    padding: 0 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--accent);
}

.stat-card h3 {
    font-size: 5rem;
    /* Massive numbers */
    color: var(--white);
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    /* Clean, nice font for numbers */
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.small-text {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Skills Section */
.bg-alt {
    background-color: var(--bg-alt);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skills-category h3 {
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.skill-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.skill-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.skill-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.competencies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.comp-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.comp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
}

.comp-card:hover::before {
    height: 100%;
}

.comp-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(109, 40, 217, 0.05);
}

.comp-icon {
    font-size: 2rem;
    color: var(--accent);
}

.comp-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Works Section Specifics */
#works {
    background: linear-gradient(to bottom, var(--bg-color), #0a0a0a);
    padding: 100px 0;
    /* More padding for prominence */
    position: relative;
}

#works .section-title {
    font-size: 3rem;
    /* Larger title */
    margin-bottom: 60px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    /* Subtle glow */
}

/* Works Categories Navigation */
.works-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Slightly wider min-width */
    gap: 40px;
    /* Increased gap */
    margin-bottom: 60px;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    /* Glassy feel */
    border: 1px solid var(--border);
    border-radius: 20px;
    /* Softer corners */
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    /* Smoother transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 320px;
    /* Taller cards */
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.category-card>* {
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.15);
    /* Feature glow */
}

.category-card:hover::before {
    opacity: 0.1;
}

.cat-icon {
    font-size: 4rem;
    /* Larger icons */
    color: var(--accent);
    margin-bottom: 10px;
    transition: var(--transition);
}

.category-card:hover .cat-icon {
    transform: scale(1.1);
    color: var(--white);
}

.category-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Works Gallery Layout */
.gallery-nav {
    margin-bottom: 30px;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 10px 0;
}

.back-btn:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.work-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.work-img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
    object-fit: cover;
}

.work-card.poster {
    aspect-ratio: 4/5;
    /* Portrait ratio for posters */
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    background: var(--bg-alt);
    padding: 10px;
    border-radius: 50px;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.work-card.hide {
    display: none;
}

.placeholder-gradient-1 {
    background: linear-gradient(45deg, #1e1e2f, #3a3a5e);
}

.placeholder-gradient-2 {
    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
}

.placeholder-gradient-3 {
    background: linear-gradient(45deg, #141e30, #243b55);
}

.work-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transition: 0.3s;
}

.work-card:hover .work-info {
    bottom: 0;
}

.work-card:hover .work-img {
    transform: scale(1.05);
}

.center-btn {
    text-align: center;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-alt);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
    }

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

    .nav-links li {
        margin: 25px 0;
    }

    .hero {
        flex-direction: column-reverse;
        /* Put text above image on mobile */
        padding: 100px 20px 20px;
        text-align: center;
        height: auto;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        margin-top: 40px;
    }

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

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

    .floating-icon {
        width: 250px;
    }

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

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

    .about-img {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-wrapper {
        padding: 30px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* New Animations */
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-left.visible,
.slide-right.visible,
.fade-in.visible,
.comp-card.visible,
.skill-item.visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: none;
    /* Allow scrolling */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin-bottom: 50px;
    /* Space for scrolling */
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

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

/* Staggered Animation Delays */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

.stagger-5 {
    transition-delay: 500ms;
}

.stagger-6 {
    transition-delay: 600ms;
}

.stagger-7 {
    transition-delay: 700ms;
}

.stagger-8 {
    transition-delay: 800ms;
}

/* Enhanced Card Hover */
.service-card,
.skill-item,
.work-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}

.service-card:hover,
.skill-item:hover,
.work-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Laptop Mockup Styles - Enhanced 3D */
.laptop-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 80px;
    width: 100%;
    min-height: 100vh;
}

.laptop-mockup {
    width: 98%;
    max-width: 1500px;
    position: relative;
    perspective: 2000px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}

.laptop-header {
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-bottom: none;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ctrl-close {
    background: #ff5f56;
}

.ctrl-min {
    background: #ffbd2e;
}

.ctrl-max {
    background: #27c93f;
}

.window-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 12px;
    color: #888;
    flex-grow: 1;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.laptop-screen {
    background: #000;
    padding: 5px;
    border: 1px solid #333;
    border-top: none;
    position: relative;
    height: 85vh;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #111;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.laptop-screen::-webkit-scrollbar {
    width: 8px;
}

.laptop-screen::-webkit-scrollbar-track {
    background: #111;
}

.laptop-screen::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.laptop-screen img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.laptop-bottom {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
}

.laptop-base {
    height: 18px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 0 0 20px 20px;
    position: relative;
    width: 106%;
    left: -3%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 12px;
    background: #111;
    border-radius: 0 0 15px 15px;
    border: 1px solid #333;
    border-top: none;
}

/* Mobile Mockup Styles - iPhone 3D */
.mobile-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    min-height: 100vh;
}

.iphone-mockup {
    width: 420px;
    height: 85vh;
    max-height: 900px;
    position: relative;
    perspective: 1000px;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
}

.iphone-bezel {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    border: 4px solid #333;
    position: relative;
    box-shadow:
        inset 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow-y: scroll;
    position: relative;
    scrollbar-width: none;
    /* Hide scrollbar for mobile feel */
}

.iphone-screen::-webkit-scrollbar {
    display: none;
}

.iphone-dynamic-island {
    position: sticky;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
    margin-bottom: -25px;
    /* Offset to stay on top without taking space */
}

/* Instagram Feed Simulation */
.instagram-feed {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 50px;
    /* Space for dynamic island */
}

.insta-feed-item {
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 10px;
}

.insta-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insta-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #333;
}

.insta-header span {
    font-size: 13px;
    font-weight: 600;
    flex-grow: 1;
}

.insta-header i {
    font-size: 14px;
    color: #888;
}

.insta-post {
    width: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.insta-post img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.insta-actions {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-actions {
    display: flex;
    gap: 15px;
}

.insta-actions i {
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.insta-actions i:hover {
    transform: scale(1.1);
}

.fa-heart:hover {
    color: #ed4956;
}

.insta-likes {
    padding: 0 15px;
    font-size: 13px;
    margin-bottom: 5px;
}

.insta-caption {
    padding: 0 15px 15px;
    font-size: 13px;
    line-height: 1.4;
    color: #efefef;
}

.insta-caption b {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .laptop-screen {
        height: 400px;
    }

    .laptop-mockup {
        width: 100%;
    }

    .iphone-mockup {
        width: 280px;
        height: 560px;
    }
}