/* Base Styles */
:root {
    --navy-blue: #001f3f; /* Deep Navy */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (Squircle & Info) */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: var(--light-bg);
}

.profile-pic {
    width: 160px;
    height: 160px;
    object-fit: cover;
    /* The squircle effect */
    border-radius: 25%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.email-link {
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

/* Bio Section (Navy Blue) */
.bio-section {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.bio-section h2 {
    margin-top: 0;
    font-size: 2rem;
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

/* Robotics & Arduino Section (White) */
.robotics-section {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.robotics-section h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Video Gallery: Desktop Grid */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

iframe {
    width: 100%;
    aspect-ratio: 9/16; /* Perfect for YouTube Shorts */
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #000;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
    padding: 60px 0 80px;
    text-align: center;
}

.services-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    /* Custom CSS Gradient */
    background: linear-gradient(135deg, #001f3f 0%, #004080 100%);
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 63, 0.4);
}

/* Mobile Media Query for Horizontal Scroll Videos */
@media (max-width: 768px) {
    .video-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 15px;
        /* Hides scrollbar for cleaner look */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    
    .video-gallery::-webkit-scrollbar { 
        display: none; 
    }

    iframe {
        flex: 0 0 75%; /* Videos take up 75% of the screen width so the next one peaks out */
        scroll-snap-align: center;
    }
}
