/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5f5f8;
    --secondary-color: #ffffff;
    --surface-color: #f2effc;
    --accent-color: #8b64ff;
    --accent-strong: #6f40f0;
    --text-color: #1f1f2c;
    --text-muted: #6f6f85;
    --text-light: #ffffff;
    --border-color: #ded8ee;
    --shadow-color: rgba(103, 58, 183, 0.16);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Smooth scroll for in-page anchor navigation */
html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.projects-title,
.cta-content h2,
.about-text h2,
.modal-content h2,
.tos-toggle {
    font-family: 'Georgia', 'Times New Roman', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    height: 70px;
}

.nav-brand-box {
    width: 70px; /* make square match navbar height */
    height: 70px;
    display: block;
    overflow: hidden; /* ensure image fills and excess is clipped */
    border-radius: 18px; /* round edge */
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-brand-box img,
.nav-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the square, cropping as needed */
    object-position: left center; /* prioritize left alignment */
    transform: translateY(2px); /* nudge down slightly */
}

.tos-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tos-link:hover {
    background: linear-gradient(90deg, rgba(111,64,240,0.08), rgba(139,100,255,0.06));
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
    background: linear-gradient(90deg, rgba(111,64,240,0.12), rgba(139,100,255,0.12));
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.nav-links a:focus,
.nav-links a:focus-visible {
    outline: none;
    box-shadow: none;
}

.nav-links a.active {
    background: rgba(111,64,240,0.14);
    color: var(--accent-strong);
    transform: none;
}


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f6ff 0%, #ede8ff 45%, #fbf9ff 100%);
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(139, 100, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -55%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.hero-title .highlight {
    color: var(--accent-strong);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto 140px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-color);
    letter-spacing: 1px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-strong);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Projects Section */
.projects-section {
    padding: 20px 0 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.projects-section .container {
    max-width: 100%;
    padding: 0;
}

.projects-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 16px 40px;
}

.projects-title {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    color: var(--accent-strong);
}

.project-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* All Works button placed at bottom-right of projects section */
.projects-section {
    position: relative;
}

.all-works-btn {
    position: absolute;
    right: 40px;
    bottom: 24px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent-color));
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(111,64,240,0.12);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.all-works-btn:hover {
    transform: translateY(-4px);
    opacity: 0.98;
}

@media (max-width: 900px) {
    .all-works-btn {
        position: static;
        display: inline-block;
        margin: 18px auto 0;
        right: auto;
        bottom: auto;
    }
}

/* Music Videos specific placement: place button under grid, right-aligned, small vertical gap */
.projects-section#music-videos .all-works-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px; /* reduced ~30% from 12px */
    padding-right: 36px; /* user requested 36px inset */
}

/* Add bottom padding so next section doesn't sit tight against the button */
.projects-section#music-videos {
    padding-bottom: 39px; /* reduced ~30% from 56px */
}

.projects-section#music-videos .all-works-btn {
    position: relative;
    right: auto;
    bottom: auto;
}

.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: none;
    position: relative;
    aspect-ratio: 16 / 9;
}

.project-card:hover {
    box-shadow: inset 0 0 0 rgba(103, 58, 183, 0);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 12, 44, 0.24) 35%, rgba(18, 12, 44, 0.75) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px; /* reduced ~35% to bring title and artist closer */
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-light);
    transform: translateY(0);
    transition: color 0.25s ease, transform 0.25s ease;
}

.project-artist {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transform: translateY(0);
    transition: color 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-title,
.project-card:hover .project-artist {
    color: var(--accent-color);
    transform: translateY(-6px);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f8f6ff;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.about-profile {
    flex: 0 0 280px;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
    padding: 24px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(111, 64, 240, 0.16);
    box-shadow: 0 30px 70px rgba(103, 58, 183, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(145deg, #f7f4ff 0%, #e6dcff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
}

.profile-image::before {
    content: none;
}

.profile-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-text {
    flex: 1 1 1;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.about-details {
    flex: 0 0 240px;
    min-width: 240px;
    align-self: center;
}

.about-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.about-text h2 .highlight {
    color: var(--accent-strong);
}

.about-text p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 0;
    padding-top: 0;
}

.stat h4 {
    font-size: 36px;
    color: var(--accent-strong);
    margin-bottom: 8px;
    font-weight: 700;
}

.stat p {
    font-size: 14px;
    color: var(--text-color);
    letter-spacing: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
    border-bottom: 1px solid rgba(222, 216, 238, 0.5);
    padding-bottom: 20px;
}

.info-card {
    padding: 20px;
    background-color: rgba(247, 244, 255, 0.8);
    border-left: 1px solid rgba(111, 64, 240, 0.22);
    transition: all 0.3s ease;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent-strong);
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

.production-list,
.contact-list,
.software-list {
    list-style: none;
}

.production-list li,
.contact-list li,
.software-list li {
    padding: 5px 0;
    font-size: 0.8rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.production-list .icon,
.contact-list .icon,
.software-list .icon {
    font-size: 1.3rem;
}

.contact-list li {
    padding: 5px 0;
}

.contact-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-list a:hover {
    border-bottom-color: var(--accent-strong);
    text-shadow: 0 0 10px rgba(111, 64, 240, 0.25);
}

/* Project CTA Section */
.project-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #f9f7ff 0%, #efe9ff 100%);
    position: relative;
    overflow: hidden;
}

.project-cta::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(111, 64, 240, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -220px;
    right: -220px;
}

.tos-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.tos-section .container {
    max-width: 1000px;
    padding: 0 40px;
}

.tos-toggle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-strong);
    margin-bottom: 24px;
    line-height: 1.1;
}

.tos-content {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    overflow: visible;
}

.tos-block {
    margin-bottom: 40px;
}

.tos-block h3 {
    font-size: 42px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--accent-strong);
    margin-bottom: 24px;
    line-height: 1;
}

.tos-block h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.tos-block p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-strong);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-button:hover {
    background: #5f34db;
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 14px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: var(--accent-strong);
}

/* Contact Modal */
.contact-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;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--secondary-color);
    padding: 50px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 32px 80px rgba(83, 51, 172, 0.14);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-strong);
}

.modal-content h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--accent-strong);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #e4e0ef;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(139, 100, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 12px 30px;
    background-color: transparent;
    font-family: inherit;
    color: var(--accent-strong);
    border: 1px solid var(--accent-strong);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    display: block;
    opacity: 1;
}

.submit-btn:hover {
    background-color: var(--accent-strong);
    color: var(--text-light);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 900px) {
    .projects-section#music-videos .all-works-wrap {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .projects-section .project-grid > *:nth-child(n+4) {
        display: none;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .cta-content h2 {
        font-size: 44px;
    }

    .nav-links {
        gap: 20px;
    }

    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 12px;
        font-size: 0.85rem;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .projects-header {
        justify-content: center;
        margin: 0 auto 16px;
        text-align: center;
    }

    .projects-title {
        font-size: 35px;
        line-height: 1.1;
    }

    .project-card .project-title {
        font-size: 1rem;
    }

    .project-card .project-artist {
        font-size: 0.55rem;
    }

    .about-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 0 10px;
    }

    .about-profile {
        align-self: center;
    }

    .about-text {
        min-width: auto;
        width: 100%;
        text-align: left;
    }

    .about-details {
        flex: 1 1 auto;
        min-width: auto;
        width: 100%;
    }

    .info-card {
        padding: 18px 16px;
    }

    .info-card h3 {
        font-size: 0.85rem;
        text-align: left;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}
