/* General Body & Font Styles */
:root {
    --color-custom-dark: #0d1117;
    --color-text-primary: #c9d1d9;
    --color-text-secondary: #9FA6B2; /* Increased contrast */
    --color-text-tertiary: #c9d1d9; /* Increased contrast */
    --color-border-custom: rgba(255, 255, 255, 0.1);
    --color-bg-black: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-custom-dark);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reusable Components */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.text-gradient {
    background: linear-gradient(135deg,#dc2626,#ef4444,#f87171,#3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.bg-gradient {
    background: linear-gradient(135deg, #dc2626, #ef4444, #f87171, #3b82f6);
}
.bg-gradient:hover {
    background: linear-gradient(135deg, #b91c1c, #d93737, #f46262, #2563eb);
}
.hidden { display: none; }
.text-center { text-align: center; }

/* Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-custom);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo-link { display: block; width: 10rem; }
.logo-img { height: 100%; width: auto; }
.desktop-nav-group { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .desktop-nav-group { display: flex; } }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg,#dc2626,#ef4444,#f87171,#3b82f6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.get-started-btn {
    color: white; font-size: 0.875rem; font-weight: 600;
    padding: 0.625rem 1.25rem; border-radius: 0.375rem; transition: background-color 0.2s;
}
.mobile-menu-btn { display: block; color: white; background: none; border: none; cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.hamburger-icon { height: 1.5rem; width: 1.5rem; }
.mobile-menu { background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu-link { display: block; text-align: center; padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.mobile-menu-link:hover { background-color: rgba(255, 255, 255, 0.05); }
.mobile-menu-btn-container { padding: 1rem; }
.mobile-get-started { display: block; text-align: center; }

/* Main Content */
.main-content {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.hero-heading {
    font-size: 2.25rem; /* 36px */
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: white;
}
@media (min-width: 768px) {
    .hero-heading {
        font-size: 3.75rem; /* 60px */
    }
}
.hero-subheading {
    margin-top: 1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
    color: var(--color-text-tertiary);
}
@media (min-width: 768px) {
    .hero-subheading {
        font-size: 1.25rem; /* 20px */
    }
}

/* Portfolio Section */
.portfolio-section {
    padding-top: 5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.video-container {
    position: relative;
    padding-top: 177.77%; /* aspect-[9/16] */
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border-custom);
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.video-container.red-glow:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 1.25rem rgba(239, 68, 68, 0.2);
}
.video-container.blue-glow:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 1.25rem rgba(59, 130, 246, 0.2);
}

.video-iframe, .lazy-youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lazy-youtube {
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.play-button {
    width: 68px;
    height: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="%23212121" fill-opacity="0.8"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>') no-repeat;
    transition: transform 0.1s;
}
.lazy-youtube:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* CTA Section */
.cta-container {
    margin-top: 4rem;
    text-align: center;
}
.cta-heading {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: white;
}
.cta-button {
    margin-top: 1.5rem;
    display: inline-block;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    transform-origin: center;
}
.cta-button:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-black);
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-custom);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    font-size: 0.875rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-about { grid-column: span 1 / span 1; }
@media (min-width: 768px) { .footer-about { grid-column: span 2 / span 2; } }
.footer-logo-wrapper { width: 9rem; }
.footer-logo-img { width: 100%; height: auto; }
.footer-description { margin-top: 1rem; line-height: 1.5; color: var(--color-text-tertiary); max-width: 28rem; }
.footer-heading { font-weight: 600; color: #e5e7eb; }
.footer-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--color-text-tertiary); }
.footer-links li:hover { color: white; }
.footer-socials { margin-top: 1rem; display: flex; gap: 1rem; }
.social-icon { width: 1.25rem; height: 1.25rem; color: var(--color-text-tertiary); transition: color 0.2s; }
.social-icon:hover { color: white; }
.footer-copyright-container {
    margin-top: 1.5rem; padding: 1.5rem 0;
    border-top: 1px solid var(--color-border-custom);
    text-align: center;
}
.footer-copyright { color: var(--color-text-secondary); font-size: 0.75rem; }
