/* Root Variables */
:root {
    --bg-primary: #080808;
    --text-primary: #f5f2ee;
    --accent: #E1E0CC;
    --border-color: #1a1a1a;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== PRISMA HERO THEME ===== */

/* Prisma Hero Section */
.prisma-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.prisma-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.prisma-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    pointer-events: none;
}

.prisma-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

/* Prisma Navbar */
.prisma-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.prisma-nav-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: #000;
    padding: 0.6rem 2rem;
    border-radius: 0 0 1.25rem 1.25rem;
}

.prisma-nav-link {
    color: rgba(225, 224, 204, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.prisma-nav-link:hover {
    color: #E1E0CC;
}

/* Prisma Content */
.prisma-content {
    position: absolute;
    top: 15%;
    bottom: auto;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 2.5rem 1rem;
}

.prisma-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .prisma-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

/* Big title */
.prisma-title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #E1E0CC;
    font-size: clamp(5rem, 20vw, 22vw);
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.2em;
}

/* Description column */
.prisma-desc-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
}

.prisma-desc {
    font-size: 0.95rem;
    color: rgba(225, 224, 204, 0.75);
    line-height: 1.4;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .prisma-desc {
        font-size: 18px;
    }

    .prisma-grid {
        display: flex;
        flex-direction: column;
    }

    .prisma-title-col {
        order: -1;
    }

    .prisma-desc-col {
        order: 1;
    }

    .prisma-content {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
    }

    .prisma-content .prisma-grid {
        position: relative;
        height: 100%;
    }

    .prisma-content .prisma-title-col {
        position: absolute;
        top: 120px;
        left: 16px;
        right: 16px;
    }

    .mobile-hero-bottom {
        position: absolute !important;
        bottom: 40px !important;
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
    }
}

/* Pill CTA button */
.prisma-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 24px;
    width: fit-content;
    align-self: flex-start;
    background: #E1E0CC;
    color: #000;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1;
    transition: gap 0.2s ease;
}

.prisma-cta:hover {
    gap: 16px;
}

.prisma-cta-inner {
    display: contents;
}

.prisma-cta-text {
    flex: 1;
}

.prisma-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #000;
    border-radius: 50%;
    color: #E1E0CC;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.prisma-cta:hover .prisma-cta-icon {
    transform: scale(1.1);
}

/* Word pull-up animation */
.word-pull {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordPullUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero styles replaced by Prisma Hero above */

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(245, 242, 238, 0.7);
}

/* Services Section */
.services {
    padding: 3rem 0 6rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 300px;
}

.service-card:hover {
    border-color: var(--accent);
    background-color: rgba(0, 229, 255, 0.02);
    transform: translateY(-5px);
}

.service-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(245, 242, 238, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-expand {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card:hover .service-expand {
    transform: translateX(5px);
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    animation: slideDown 0.3s ease;
}

.modal-close {
    color: var(--text-primary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.ticker-section {
    padding: 3rem 0;
    background: #111;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.trusted-label {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #E1E0CC;
    margin-bottom: 1.5rem;
}

.ticker-wrapper {
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: ticker 25s linear infinite;
}

.ticker-track span {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.ticker-track .dot {
    color: #E1E0CC;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-grid-centered {
    grid-template-columns: repeat(2, 400px);
    justify-content: center;
    gap: 3rem;
}

.portfolio-card {
    transition: all 0.3s ease;
}

.portfolio-embed {
    aspect-ratio: 9 / 16;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-placeholder {
    color: rgba(245, 242, 238, 0.5);
    text-align: center;
}

.portfolio-card:hover .portfolio-embed {
    border-color: var(--accent);
    background-color: rgba(0, 229, 255, 0.05);
}

.portfolio-label {
    font-size: 0.9rem;
    color: rgba(245, 242, 238, 0.7);
}

/* Featured Portfolio Card */
.portfolio-card-featured {
    grid-column: span 1;
}

.portfolio-embed-featured {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.portfolio-content-bottom {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    width: 100%;
}

.portfolio-header-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.instagram-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
}

.instagram-info-bottom {
    flex: 1;
}

/* New Projects Gallery Grid */
.projects-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.projects-gallery::-webkit-scrollbar {
    display: none;
}

.project-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.project-thumb {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.project-thumb--video {
    height: auto;
    overflow: visible;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-label {
    text-align: center;
    margin-top: 0.6rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 0.5rem;
    font-size: 0.95rem;
}

.instagram-info-bottom .instagram-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.portfolio-content-bottom .btn {
    align-self: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 150px;
    aspect-ratio: 3/4;
    background-color: #111;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #111;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.image-placeholder {
    aspect-ratio: 1;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 242, 238, 0.5);
}

/* Instagram Preview Card */
.instagram-preview {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.instagram-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.instagram-avatar {
    font-size: 2.5rem;
}

.instagram-info {
    flex: 1;
}

.instagram-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.instagram-handle {
    font-size: 0.85rem;
    color: rgba(245, 242, 238, 0.6);
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: rgba(245, 242, 238, 0.9);
}

.skills {
    margin-bottom: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
}

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

.skill-tag {
    background-color: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.certifications {
    margin-top: 2rem;
}

.certifications h3 {
    margin-bottom: 1rem;
}

.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 0.5rem 0;
    color: rgba(245, 242, 238, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.certifications li:last-child {
    border-bottom: none;
}

/* Resources Section (New) */
.resources {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resources-subtitle {
    text-align: center;
    color: rgba(245, 242, 238, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.resource-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: var(--accent);
    background-color: rgba(0, 229, 255, 0.02);
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card p {
    color: rgba(245, 242, 238, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.resource-card .btn {
    width: 100%;
}

/* Resource Modal */
.resource-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.resource-modal .modal-content {
    background-color: var(--bg-primary);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    animation: slideDown 0.3s ease;
}

.resource-modal .modal-close {
    color: var(--text-primary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resource-modal .modal-close:hover {
    color: var(--accent);
}

.resource-modal h2 {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.resource-modal p {
    margin-bottom: 1.5rem;
    color: rgba(245, 242, 238, 0.9);
    line-height: 1.8;
}

/* Contact Section (Updated) */
.contact {
    padding: 6rem 0;
    border-bottom: none;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background-color: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 242, 238, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0, 229, 255, 0.1);
}

.contact-form button {
    width: auto;
    align-self: center;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer */
.footer {
    padding: 20px 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(245, 242, 238, 0.6);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .resources-grid {
        grid-template-columns: 1fr;
    }

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

    .about-image {
        position: static;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 1rem;
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Remove focus/browser outline on video elements in project cards */
.project-card video {
    outline: none;
    border: none;
}
