:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #00ff9d;
    --glass-blur: 20px;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Ambient Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PHZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    opacity: 0.4;
    pointer-events: none;
}

@keyframes float {

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

    50% {
        transform: translate(30px, -30px);
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-btn:hover {
    opacity: 1;
}

.scroll-btn svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

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

/* Projects Grid */
.projects-grid {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    /* For scroll animation */
    transform: translateY(50px) scale(0.95);
    /* For scroll animation */
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card.scroll-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(5, 5, 5, 0.8) 100%);
    pointer-events: none;
}

.card-content {
    padding: 2rem;
}

.card-header {
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.project-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.meta-item .value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.view-details-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.view-details-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Footer */
.main-footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

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

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

    .makeitx-description {
        font-size: 0.95rem;
    }

    .makeitx-container {
        padding: 1.5rem;
    }

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

    .modal-hero-image {
        height: 200px;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .resume-name {
        font-size: 2rem;
    }

    .resume-contact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* MakeitX Section */
.makeitx-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto 6rem;
    /* Added spacer */
    text-align: center;
}

.makeitx-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.makeitx-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.makeitx-logo-area {
    margin-bottom: 1.5rem;
}

.makeitx-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.makeitx-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.makeitx-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.makeitx-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    /* Ensure no horizontal scroll */
    overflow-x: visible;
}

.service-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

/* Clickable Name */
.clickable-name {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(0, 242, 255, 0.3);
}

.clickable-name:hover {
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    border-bottom-color: var(--accent-primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

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

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: #000;
    transform: rotate(90deg);
}

/* Modal Body Styles */
.modal-body {
    padding: 0;
}

.modal-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-details {
    padding: 3rem;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.modal-section-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.modal-text {
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-gallery img:hover {
    transform: scale(1.03);
}

/* Resume Modal Specifics */
.resume-content {
    max-width: 1000px;
    background: #0f0f0f;
}

.resume-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resume-role {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.resume-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.resume-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.resume-item-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: monospace;
    white-space: nowrap;
    background: rgba(0, 242, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.resume-item-subtitle {
    font-size: 1.05rem;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-style: normal;
}

.resume-item-description {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.resume-list {
    list-style: none;
    color: #d0d0d0;
    line-height: 1.8;
    padding-left: 0;
}

.resume-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.resume-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    margin-bottom: 0;
}

.skill-category h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .project-card {
        border-radius: 16px;
    }

    .card-image-wrapper {
        height: auto;
        aspect-ratio: 16/9;
    }

    .card-content {
        padding: 1.25rem;
    }

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

    /* Phone Apps Grid Layout for Mobile */
    .projects-grid.phone-apps {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .projects-grid.phone-apps .project-card {
        border-radius: 16px;
    }

    .projects-grid.phone-apps .card-image-wrapper {
        height: 150px;
    }

    .projects-grid.phone-apps .card-content {
        padding: 1rem;
    }

    .projects-grid.phone-apps .project-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .projects-grid.phone-apps .tech-stack span {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

    .projects-grid.phone-apps .project-description {
        display: none;
        /* Hide description on small cards to save space */
    }

    .projects-grid.phone-apps .project-meta {
        display: none;
        /* Hide meta on small cards */
    }

    .projects-grid.phone-apps .view-details-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding-top: 1rem;
    }

    .makeitx-services {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .service-tag {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

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

    .makeitx-description {
        font-size: 0.95rem;
    }

    .makeitx-container {
        padding: 1.5rem;
    }

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

    .modal-hero-image {
        height: 200px;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .resume-name {
        font-size: 2rem;
    }

    .resume-contact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    /* Mobile Modal Text Sizing */
    .modal-title {
        font-size: 1.5rem;
    }

    .modal-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .resume-list {
        font-size: 0.9rem;
    }

    .modal-section-title {
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    /* Mobile Resume Styles */
    .resume-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .resume-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .resume-item-title {
        font-size: 1.1rem;
    }

    .resume-item-subtitle {
        font-size: 0.95rem;
    }

    .resume-item-description {
        font-size: 0.85rem;
    }

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

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }



    .makeitx-title {
        font-size: 1.75rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    grid-column: 1 / -1;
    color: var(--text-main);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

/* Fullscreen Viewer */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.fullscreen-viewer.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fullscreen-close:hover {
    background: var(--accent-primary);
    color: #000;
    transform: rotate(90deg);
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.fullscreen-image-wrapper {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    position: relative;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

/* Turn Phone Animation */
.turn-phone-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2001;
    text-align: center;
}

.phone-icon {
    width: 60px;
    height: 100px;
    border: 3px solid #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: turnPhone 2s infinite ease-in-out;
}

.turn-text {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
}

@keyframes turnPhone {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(90deg);
    }

    80% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Welcome Animation */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s, background-color 1s ease-out;
}

#welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    text-align: center;
    opacity: 0;
    animation: welcomeFadeIn 1s ease-out forwards;
}

.welcome-text {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    transition: opacity 0.4s ease-out;
    will-change: transform, font-size, opacity;
}

.welcome-line {
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    margin: 0 auto;
    animation: lineGrow 1s ease-out 0.5s forwards;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes lineGrow {
    to {
        width: 100px;
    }
}

/* Gradient text for welcome screen (matches hero gradient) */
.welcome-text .gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}