/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-red: #dc143c;
    --color-red-dark: #b01030;
    --color-accent: #ffa500;
    --color-white: #ffffff;
    --color-gray: #888888;
    --color-light-gray: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-red);
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-red);
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, var(--color-red) 48%, var(--color-red) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--color-red) 48%, var(--color-red) 52%, transparent 52%);
    background-size: 100px 100px;
    opacity: 0.02;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glitch {
    position: relative;
    color: var(--color-white);
    animation: glitch-animation 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 84px, 0); }
    20% { clip: rect(88px, 9999px, 12px, 0); }
    40% { clip: rect(45px, 9999px, 67px, 0); }
    60% { clip: rect(90px, 9999px, 34px, 0); }
    80% { clip: rect(21px, 9999px, 78px, 0); }
    100% { clip: rect(56px, 9999px, 23px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(40px, 9999px, 86px, 0); }
    40% { clip: rect(10px, 9999px, 142px, 0); }
    60% { clip: rect(99px, 9999px, 52px, 0); }
    80% { clip: rect(28px, 9999px, 75px, 0); }
    100% { clip: rect(73px, 9999px, 15px, 0); }
}

@keyframes glitch-animation {
    0%, 90%, 100% { opacity: 1; }
    92%, 98% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
}

.whiteout {
    width: 300px;
    padding-top: 70px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn-primary:hover {
    background-color: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.hero-graphic {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: 
        radial-gradient(circle at 50% 30%, rgba(255, 165, 0, 0.2), transparent 50%),
        radial-gradient(circle at 50% 30%, rgba(220, 20, 60, 0.15), transparent 60%);
    background-size: 200% 200%;
    background-position: center;
    filter: blur(40px);
    opacity: 0.9;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Candle Container */
.candle-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.candle-video {
    
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
}



.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-red);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    background-color: var(--color-red);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
}

/* About Section */
.about {
    background-color: var(--color-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-light-gray);
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--color-red);
    border-radius: 20px;
    color: var(--color-white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-placeholder i {
    color: var(--color-white);
    z-index: 1;
}

/* Experience Section */
.experience {
    background-color: var(--color-black);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-red), var(--color-accent));
}


.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    cursor: pointer;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background-color: var(--color-red);
    border: 3px solid var(--color-black);
    border-radius: 50%;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    background-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-red);
    cursor: pointer;
}

.timeline-content {
    background-color: var(--color-dark);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-red);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(220, 20, 60, 0.2);
    border-left-width: 5px;
}

.timeline-date {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--color-red);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background-color: var(--color-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--color-black);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-red);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    color: var(--color-red);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: scale(1.1);
    color: var(--color-accent);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.project-info p {
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--color-white);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-dark);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-red);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-red);
    opacity: 0.7;
}

.testimonial-text {
    color: var(--color-light-gray);
    line-height: 1.8;
    font-size: 1rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--color-red);
}
.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--color-red);
}

/* Footer */
.footer {
    background-color: var(--color-black);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--color-gray);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-dark);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--color-red);
    border-color: var(--color-accent);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
}

/* Animations on Scroll */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        border-left: 1px solid rgba(220, 20, 60, 0.3);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-graphic {
        height: 300px;
    }

    .candle-emblem {
        max-width: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small devices - fix squishing on very narrow viewports */
@media (max-width: 380px) {
    .container {
        padding: 0 1rem;
    }

    .whiteout {
        width: 55vw;
        padding-top: 50px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: -6px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .image-placeholder {
        width: 65vw;
        height: 65vw;
        max-width: 250px;
        max-height: 250px;
    }

    .image-placeholder i {
        font-size: 3rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-dark);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    border: 2px solid var(--color-red);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-red);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background-color: var(--color-red-dark);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Carousel Styles */
.modal-carousel {
    position: relative;
    width: 100%;
    background-color: var(--color-black);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(220, 20, 60, 0.8);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--color-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background-color: var(--color-red);
    transform: scale(1.3);
}

/* Modal Info */
.modal-info {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.modal-date {
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tech .tech-badge {
    padding: 0.5rem 1rem;
    background-color: rgba(220, 20, 60, 0.2);
    border: 1px solid var(--color-red);
    border-radius: 20px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.modal-tech .tech-badge:hover {
    background-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

.modal-description {
    color: var(--color-light-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-description p {
    margin-bottom: 1rem;
}

.modal-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
}

.modal-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-red);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-link:hover {
    background-color: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal.active {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .carousel-slide {
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-description {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .carousel-slide {
        height: 200px;
    }
.candle-container video {
        width: 90vw;
        height: auto;
}
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .modal-info {
        padding: 1rem;
    }

    .modal-links {
        flex-direction: column;
    }

    .modal-link {
        text-align: center;
        justify-content: center;
    }
}
