/* =========================================
   1. CORE LAYOUT & SCROLL SNAPPING
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Helvetica', 'Arial', sans-serif;
    overflow: hidden; /* Prevents double scrollbars */
}

.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for a cleaner look (optional) */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* =========================================
   2. SECTION STYLING
   ========================================= */
/* Update this block in static/css/style.css */
section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking */
    justify-content: flex-start; /* Move from center to the top */
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    
    /* This 15vh (15% of viewport height) acts as your top offset. 
       Adjust this number to move it higher or lower. */
    padding-top: 15vh; /*15vh*/ 
    padding-left: 20px;
    padding-right: 20px;
}

.hero { background: #1a1a1a; color: white; }
.experience { background: #f4f4f4; color: #333; }
.skills { background: #007bff; color: white; }

/* The container that holds the photo and text */
.fade-in-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

/* =========================================
   3. APPLE-STYLE ANIMATIONS
   ========================================= */
.animate-text {
    opacity: 0;
    transform: translateY(40px); /* Slightly deeper start for better effect */
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

/* Triggered by JavaScript Intersection Observer */
.animate-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential Delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   4. ELEMENTS (PHOTO & TEXT)
   ========================================= */
.profile-frame {
    /* Responsive sizing: scales with screen size */
    width: clamp(150px, 40vw, 220px);
    height: clamp(150px, 40vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    opacity: 0.8;
}

/* =========================================
   5. MOBILE SPECIFIC ADJUSTMENTS
   ========================================= */
@media (max-width: 600px) {
    section {
        /* Adds extra space at the top for mobile browser bars */
        padding-top: 60px; 
    }
    
    .profile-frame {
        border-width: 3px;
        box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    }
}

/* Experience Cards */
.experience-card {
    background: rgba(255, 255, 255, 0.8); /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: left;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.experience-card h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company {
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.exp-list {
    list-style: none;
}

.exp-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

/* Custom bullet points */
.exp-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tags span {
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Vertical Video Styling */
.video-wrapper-vertical {
    width: auto;
    /* This creates the 9:16 phone ratio */
    aspect-ratio: 9 / 16; 
    
    /* Limits height so it fits comfortably on all screens */
    height: 60vh; 
    
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    background: #000;
    border: 3px solid #333; /* Optional: makes it look like a phone frame */
}

.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills the 9:16 frame */
}

/* Adjust for very small phones */
@media (max-width: 400px) {
    .video-wrapper-vertical {
        height: 50vh;
    }
}

/* Contact Section - Global Version */
.contact {
    background: #ffffff;
    color: #1d1d1f;
}

.location-text {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: #86868b; /* Apple-style muted gray */
    margin-top: 10px;
}

.email-wrapper {
    margin-top: 3rem;
}

.email-link {
    font-size: clamp(1.2rem, 5vw, 2rem);
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #d2d2d7;
    transition: border-color 0.3s ease;
}

.email-link:hover {
    border-color: #0071e3;
    color: #0071e3;
}

.socials-container {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.social-label {
    font-weight: 600;
    margin-right: 10px;
}

.social-item {
    color: #0071e3;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-item:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.slash {
    color: #d2d2d7;
    margin: 0 5px;
}

.footer-note {
    margin-top: 6rem;
    font-size: 0.8rem;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile Tweak: Stack socials if the screen is too narrow */
@media (max-width: 480px) {
    .socials-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .slash { display: none; }
    .email-link { font-size: 1.1rem; }
}