/* ==========================================================================
CSS Variables & Base Setup (Dark Tech Theme)
========================================================================== */
:root {
    --bg-base: #060913;
    --color-ice: #e0f7fa;
    --color-white: #ffffff;
    --color-sky-blue: #00d2ff;
    --color-blue: #3a7bd5;
    --color-purple: #8a2be2;
    --color-dark-purple: #4a00e0;
    --card-bg: rgba(13, 17, 30, 0.75);
    --card-border: rgba(0, 210, 255, 0.15);
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --glow-shadow: 0 0 20px rgba(0, 210, 255, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;

    /* High-Tech Ice Skating Background */
    /* Blends deep space/purple gradients over a high-res ice surface */
    background: linear-gradient(135deg, rgba(6, 9, 19, 0.85) 0%, rgba(20, 10, 40, 0.75) 50%, rgba(6, 9, 19, 0.85) 100%),
        url('https://images.unsplash.com/photo-1551582045-6c68a48ea31c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center / cover fixed no-repeat;
    background-color: var(--bg-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
Navigation
========================================================================== */
.tech-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.logo svg {
    width: 36px;
    height: 36px;
    fill: url(#blue-purple-grad);
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--color-sky-blue), var(--color-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
Main Layout & Tech Cards
========================================================================== */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Subtle glowing top border for cards */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-sky-blue), var(--color-purple), transparent);
    opacity: 0.5;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-shadow);
    border-color: rgba(138, 43, 226, 0.4);
}

/* ==========================================================================
Breadcrumbs (Tabular SVG)
========================================================================== */
.breadcrumbs-container {
    display: flex;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumbs svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: var(--color-sky-blue);
}

.breadcrumbs a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.breadcrumbs a:hover {
    color: var(--color-white);
}

.breadcrumb-sep {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-active {
    color: var(--color-sky-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
Video Promo Section
========================================================================== */
.video-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(to right, var(--color-ice), var(--color-sky-blue));
    background-clip: var(--text-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ==========================================================================
Intro Content Section (Card Layout)
========================================================================== */
.intro-content p {
    margin-top: 22px;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-content strong {
    color: var(--color-ice);
    font-weight: 500;
}

/* ==========================================================================
About Section (Card Layout)
========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.slideshow-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-sky-blue), var(--color-purple));
    box-shadow: var(--glow-shadow);
}

.slideshow-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background-color: var(--bg-base);
    /* match main background to hide track overflow */
    aspect-ratio: 4 / 3;
    /* Fixed container ratio */
}

.slideshow-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slideshow-track img.slideshow-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: block;
    filter: contrast(1.1) brightness(0.9);
    object-fit: contain;
    /* changed from cover to prevent cropping */
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slideshow-controls button.tech-btn {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-content h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-purple), transparent);
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content strong {
    color: var(--color-ice);
    font-weight: 500;
}

/* ==========================================================================
Contact Section
========================================================================== */
.contact-card {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-email {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-sky-blue);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* High Tech Social Buttons */
.social-dock {
    display: flex;
    gap: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-sky-blue), var(--color-purple));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    z-index: 1;
    transition: transform 0.3s;
}

.social-btn:hover {
    border-color: transparent;
    box-shadow: var(--glow-shadow);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.input-group label span {
    color: var(--color-sky-blue);
}

.tech-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.tech-input:focus {
    outline: none;
    border-color: var(--color-sky-blue);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

textarea.tech-input {
    resize: vertical;
    min-height: 120px;
}

.tech-btn {
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
    color: var(--color-white);
    border: none;
    padding: 16px 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tech-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-btn:hover {
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.tech-btn:hover::after {
    left: 100%;
}

/* Hidden by default */
.hidden {
    display: none !important;
}

.status-banner {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    backdrop-filter: blur(4px);
    /* Glassmorphism effect */
    transition: all 0.5s ease;
    text-align: center;
    font-weight: 500;
}

/* Success State: Emerald/Green Gradient */
.status-success {
    background-color: rgba(16, 185, 129, 0.1);
    /* Low opacity green */
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

/* Error State: Red Gradient */
.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    /* Low opacity red */
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

/* ==========================================================================
Footer
========================================================================== */
.tech-footer {
    margin-top: 40px;
    background: rgba(3, 5, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--color-sky-blue);
}


/* ==========================================================================
Responsive Design
========================================================================== */
@media (max-width: 900px) {

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

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

    .nav-links {
        display: none;
        /* Add JS hamburger menu logic if needed */
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
