/* --- GLOBAL SETTINGS --- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #202A44;
    color: white; 
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- CONTAINER IMPROVEMENTS --- */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HERO SECTION--- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px; /* Ensure minimum height on small screens */
    overflow: hidden;
}

/* Hero image layers for smooth slideshow */
.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -2;
    transition: opacity 1.5s ease-in-out;
}

.hero-image-layer.active {
    opacity: 1;
}

.hero-image-layer.ken-burns {
    animation: kenburns-zoom 8s ease-in-out infinite;
}

/* KENBURNS EFFECT */
@keyframes kenburns-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}

.logo img {
    height: 160px;
    width: auto;
    transition: height 0.3s ease;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.6));
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.main-nav a:hover {
    color: #bbbbbb;
    transform: scale(1.1);
}

.hero-text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

/* --- INSTRUCTION MESSAGE WITH ANIMATED FINGER --- */
.mobile-instruction {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem auto;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-instruction::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.instruction-content {
    position: relative;
    z-index: 1;
}

.instruction-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.3;
}

.finger-tap {
    display: inline-block;
    font-size: 1.8rem;
    animation: tap 2s infinite ease-in-out;
    transform-origin: center bottom;
}

@keyframes tap {
    0%, 50%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-2px);
    }
}

.instruction-subtext {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Show instruction on mobile devices */
@media (max-width: 992px) {
    .mobile-instruction {
        display: block;
    }
}

/* Additional mobile refinements */
@media (max-width: 576px) {
    .mobile-instruction {
        margin: 2rem auto;
        padding: 1.8rem 1.5rem;
        width: 95%;
        max-width: 380px;
    }
    
    .instruction-text {
        font-size: 1.1rem;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    
    .finger-tap {
        font-size: 1.6rem;
    }
    
    .instruction-subtext {
        font-size: 0.9rem;
    }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    line-height: 1.2;
    padding: 0 1rem;
}

/* Add extra spacing above the Experience section */
#experience-section .section-title {
    padding-top: 4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #d3d3d3;
    margin: 1rem auto 0;
}

#my-goal-section-title {
    padding-top: 2rem;
}

/* Add extra padding to the bottom of the My Goal section */
#my-goal-section {
    padding-bottom: 3rem; /* Ensure footer doesn't show when navigating to this section */
}

/* --- PHOTO GALLERY --- */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px; 
}

.gallery-container-goals {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 250px;
    flex-shrink: 0;
}

.gallery-card, .gallery-card-goals {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    cursor: pointer;
    touch-action: manipulation; /* Better mobile touch handling */
}

.gallery-card {
    aspect-ratio: 9 / 16;
}

.gallery-card-goals {
    aspect-ratio: 1 / 1;
}

.gallery-card img, .gallery-card-goals img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: #2c3e50;
    display: block;
}

/* Fallback for broken/missing images */
.gallery-card img[src="#"], .gallery-card-goals img[src="#"] {
    background-color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card img[src="#"]::after, .gallery-card-goals img[src="#"]::after {
    content: "Image Loading...";
    color: #bdc3c7;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.card-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2; /* Ensure overlay is above the image */
}

/* FIXED: Separate hover and active states for better mobile handling */
/* Active states for mobile tap */
.gallery-card.active .card-overlay,
.gallery-card-goals.active .card-overlay {
    opacity: 1;
}

.gallery-card.active img,
.gallery-card-goals.active img {
    transform: scale(1.1);
}

/* Hover states only for devices that actually support hover */
@media (hover: hover) {
    .gallery-card:hover .card-overlay,
    .gallery-card-goals:hover .card-overlay {
        opacity: 1;
    }
    
    .gallery-card:hover img,
    .gallery-card-goals:hover img {
        transform: scale(1.1);
    }
}

.card-title {
    font-weight: bold;
    color: #00D4FF;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    font-size: 1rem;
}

.card-description {
    font-size: 0.9rem;
    margin: 0;
    padding-bottom: 0.5rem;
    line-height: 1.4;
}

/* Experience columns layout */
.experience-subtitles {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    padding: 2rem 1rem;
}

.experience-column {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-column h3 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

/* My goal section layout */
.my-goal-subtitles {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.my-goal-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    padding-bottom: 2rem;
}

.my-goal-column h3 {
    padding-bottom: 2rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

.my-goal-row {
    display: flex;
    flex-direction: row;
    gap: 2rem; 
    align-items: flex-start;
}

.my-goal-text {
    text-align: center;
    line-height: 1.6;
}

.vertical-divider {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1); 
    height: auto;
    align-self: stretch;
}

/* --- ABOUT ME & WHATS NEXT SECTION --- */
.section-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}
#who-am-i {
    padding-top: 4rem;
}
#my-path-title {
    padding-top: 4rem;
}

.about-me-image, .whats-next-image {
    width: 20rem;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #2c3e50;
}

.about-me-image img, .whats-next-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: #bdc3c7;
}
.about-me-text {
    padding: 0 1rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.whats-next-text {
    padding: 0 1rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.about-me-description {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.section-content.layout-reversed {
    flex-direction: row-reverse;
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 0 1rem;
}

.contact-info h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.5rem;
}

.contact-info .highlight {
    color: #82aaff;
}

blockquote {
    margin-top: 2rem;
    border-left: 3px solid #82aaff;
    padding-left: 1.5rem;
    font-style: italic;
    color: #adb5bd;
    line-height: 1.6;
}

blockquote footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 500;
    color: #f8f9fa;
}

.contact-page-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-page-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #adb5bd;
    border: 1px solid #495057;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-page-socials a:hover {
    transform: scale(1.1);
    background-color: #82aaff;
    border-color: #82aaff;
    color: white;
}

.contact-quote-footer {
    background-color: rgb(32, 42, 68);
}

.contact-form-container {
    background-color: white;
    color: #212529;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-container h3 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: none; 
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #82aaff;
    box-shadow: 0 0 0 3px rgba(130, 170, 255, 0.25);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(90deg, #6a82fb, #a777e3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(130, 170, 255, 0.4);
}

.response-time {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.response-time i {
    color: #ffc107;
}
/* --- CONTACT PAGE STYLES --- */
#contact-section {
    padding-top: 8rem;
    padding-bottom: 10rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 0 1rem;
}

/* --- FOOTER --- */
footer {
    background-color: #f8f9fa;
    color: #212529;
}

footer .container {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0d6efd;
}

.footer-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #212529;
    text-decoration: none;
}

.social-link i {
    font-size: 24px; 
    width: 30px;
    text-align: center;
}

.social-link p {
    margin: 0;
}

.footer-logo img {
    height: 150px;
    width: auto;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- BURGER MENU --- */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 9999;
    width: 3em;
    height: 3em;
    position: relative;
}

.hamburger {
    display: block;
    background: white;
    height: 3px;
    width: 1.75em;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background: white;
    height: 3px;
    width: 1.75em;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large tablets and small desktops (1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .my-goal-subtitles {
        gap: 2rem;
    }
    
    .experience-subtitles {
        gap: 2rem;
    }
}

/* Tablets (992px and down) */
@media (max-width: 992px) { 
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .logo img {
        height: 120px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-content {
        flex-direction: column; 
        text-align: center;
        gap: 2rem;
    }
    
    .section-content.layout-reversed {
        flex-direction: column;
    }
    
    .about-me-image, .whats-next-image {
        width: 300px;
        max-width: 90%;
    }
    
    .about-me-description {
        width: 100%;
    }
    
    .experience-subtitles {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .experience-column {
        width: 100%;
        max-width: 400px;
    }
    
    .gallery-container {
        max-width: 350px;
        width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .my-goal-subtitles {
        flex-direction: column;
        gap: 3rem;
    }
    
    .my-goal-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .gallery-container-goals {
        width: 200px;
        align-self: center;
    }
    
    .vertical-divider {
        display: none;
    }
}

/* Small tablets and large phones (768px and down) */
@media (max-width: 768px) {
    .main-nav { 
        display: none; 
    }
    
    .nav-toggle { 
        display: block; 
        background: transparent; 
        border: 0; 
        cursor: pointer; 
        z-index: 10; 
    }
    
    .main-nav.is-open {
        display: flex; 
        position: fixed; 
        top: 0; 
        right: 0; 
        bottom: 0;
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        width: 70%; 
        background-color: rgba(20, 20, 20, 0.98);
        z-index: 5;
        gap: 2rem;
    }
    
    .main-nav.is-open a {
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Adjust spacing for tablets */
    #experience-section .section-title {
        padding-top: 3rem;
    }
    
    #my-goal-section {
        padding-bottom: 7rem; /* Medium padding on tablets */
    }
    
    .experience-column h3, .my-goal-column h3 {
        font-size: 1.8rem;
    }
    
    .about-me-text, .whats-next-text {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .nav-toggle.is-open .hamburger { 
        transform: translate(-50%, -50%) rotate(45deg); 
    }
    
    .nav-toggle.is-open .hamburger::before { 
        transform: rotate(-90deg) translateX(8px); 
    }
    
    .nav-toggle.is-open .hamburger::after { 
        opacity: 0; 
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-socials {
        align-items: center; 
    }
    
    .footer-nav {
        gap: 1rem; /* Smaller gap on tablets to help fit items */
    }
    
    .section-content {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
}

/* Mobile phones (576px and down) */
@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .logo img {
        height: 100px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Adjust spacing for mobile */
    #experience-section .section-title {
        padding-top: 2rem;
    }
    
    #my-goal-section {
        padding-bottom: 6rem; /* Less padding on mobile */
    }
    
    .main-container {
        padding: 2rem 0;
    }
    
    .experience-column h3, .my-goal-column h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-me-text, .whats-next-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .about-me-image, .whats-next-image {
        width: 250px;
    }
    
    .gallery-container, .gallery-container-goals {
        max-width: 280px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.8rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form-container h3 {
        font-size: 1.3rem;
    }
    
    .footer-logo img {
        height: 120px;
    }
    
    .main-nav.is-open {
        width: 85%;
    }
    
    .experience-subtitles, .my-goal-subtitles {
        padding: 1rem 0.5rem;
    }
    
    .contact-grid {
        padding: 0 0.5rem;
        gap: 2rem;
    }
}

/* Extra small phones (480px and down) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-me-image, .whats-next-image {
        width: 200px;
    }
    
    .gallery-container, .gallery-container-goals {
        max-width: 250px;
    }
    
    .contact-page-socials a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .main-nav.is-open {
        width: 90%;
    }
    
    .main-nav.is-open a {
        font-size: 1.3rem;
    }
}