/* ============================================
   Rahul Ranganath — Game Audio Portfolio
   style.css
   ============================================ */

/* --- RESET & ROOT --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --card-bg: #1c1c1c;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 212, 255, 0.35);
    --text: #e2e2e2;
    --text-muted: #888888;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.1);
    --accent-border: rgba(0, 212, 255, 0.2);
    --green: #4caf50;
    --green-dim: rgba(76, 175, 80, 0.08);
    --green-border: rgba(76, 175, 80, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* --- TYPOGRAPHY UTILITIES --- */
.eyebrow,
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    text-align: center;
}

h1 {
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* --- HEADER --- */
header {
    padding: 90px 10% 72px;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0, 212, 255, 0.07) 0%, transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.tagline {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 14px 0 32px;
}

.header-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.tag {
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

/* --- VIDEO CONTAINER --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

header .video-container {
    max-width: 760px;
    margin: 0 auto;
    /* override padding-bottom for max-width container */
    padding-bottom: min(56.25%, calc(760px * 0.5625));
}

/* --- SECTIONS --- */
.section {
    padding: 80px 10%;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* --- PROJECT GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.07);
}

/* Full-card clickable overlay */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
    background: transparent;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #111;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.03);
}

.card-body {
    padding: 18px 20px 20px;
}

.card-body h3 {
    margin-bottom: 6px;
}

.card-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #aaaaaa;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.card-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 11;
    pointer-events: none;
}

.card:hover .card-arrow {
    opacity: 1;
}

/* --- TECHNICAL VIDEOS --- */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.video-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.video-info {
    padding-top: 4px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.video-bullets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-bullets li {
    font-size: 14px;
    line-height: 1.65;
    color: #aaaaaa;
    padding-left: 20px;
    position: relative;
}

.video-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* --- ABOUT --- */
.about-wrap {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px;
}

.about-photo-wrap {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    border-radius: 20px;
    padding: 5px 14px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #bbbbbb;
    margin-bottom: 16px;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.skills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: #aaaaaa;
    padding: 5px 12px;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.testimonial-featured {
    grid-column: span 2;
    border-color: var(--accent-border);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), var(--card-bg));
}

.quote-mark {
    font-size: 52px;
    line-height: 0.8;
    color: rgba(0, 212, 255, 0.2);
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 16px;
    display: block;
    user-select: none;
}

.testimonial p {
    font-size: 15px;
    line-height: 1.75;
    color: #cccccc;
    font-style: italic;
    margin-bottom: 24px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 100, 140, 0.25));
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #dddddd;
    margin-bottom: 2px;
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.cta-section > p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cta-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
    opacity: 1;
}

/* --- SOCIAL LINKS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-links svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 32px 10%;
    font-size: 12px;
    color: #444444;
    border-top: 1px solid var(--border);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    header {
        padding: 60px 6% 52px;
    }

    .section {
        padding: 56px 6%;
    }

    .about-wrap {
        flex-direction: column;
        align-items: center;
        padding: 32px 24px;
        gap: 32px;
        text-align: center;
    }

    .skills-row {
        justify-content: center;
    }

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

    .video-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
