/* Mobile Styles - Max width 768px */
/* This file is loaded only on mobile devices to ensure no interference with desktop */

/**************************************
 * GLOBAL LAYOUT
 * GLOBAL LAYOUT
 **************************************/
* {
    box-sizing: border-box !important;
    /* Ensure padding doesn't add to width */
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    /* Prevent horizontal scroll */
}

img {
    max-width: 100% !important;
    height: auto;
}

/* Hide desktop elements */
.desktop-header,
.slider-container,
.slider-nav,
footer {
    /* We might want a mobile footer, but hiding desktop one for now */
    display: none !important;
}

/* Show mobile elements */
.mobile-header,
.mobile-slider-container {
    display: flex !important;
}

/**************************************
 * HEADER & NAVIGATION
 **************************************/
.mobile-slider-container {
    position: relative;
    /* Changed from fixed */
    top: auto;
    left: auto;
    width: auto;
    flex-grow: 1;
    /* Take remaining space */
    z-index: auto;
    /* Inherit from header */
    background: transparent;
    /* Remove duplicate bg */
    border-bottom: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    /* Remove vertical padding */
    margin-left: 10px;
    /* Space from menu toggle */
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    align-items: center;
    /* Vertically center items */
    height: 100%;
}

.mobile-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.mobile-slider-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.mobile-nav-item {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
    /* Adjusted to be more transparent */
    flex-shrink: 0;
}

.mobile-nav-item.active {
    color: #a8c0ff;
    font-weight: 700;
    opacity: 1;
    border-bottom: 2px solid #a8c0ff;
    padding-bottom: 2px;
    text-shadow: 0 0 8px rgba(168, 192, 255, 0.4);
}

/**************************************
 * HEADER & NAVIGATION
 **************************************/
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px;
    /* Reduced header padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 2px 5px;
    /* Reduced toggle padding */
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    /* Hidden by default */
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43);
    z-index: 1001;
    transition: left 0.3s ease;
    padding-top: 60px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    /* Force vertical stacking */
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between icon and text */
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    /* Reduced font size */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/**************************************
 * WELCOME OVERLAY
 **************************************/
/* Adjusted for smaller screens as requested */
#welcome-overlay {
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Reset height to fill screen exactly */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Adjusted for smaller screens as requested */
#welcome-overlay .split {
    width: 90%;
    line-height: 1.2;
    text-align: center;
    /* Center horizontally */
}

#welcome-overlay .split-1 {
    font-size: clamp(2rem, 10vw, 3rem);
    /* Fluid scaling */
}

#welcome-overlay .split-2 {
    font-size: clamp(1rem, 5vw, 1.5rem);
    margin: 10px 0;
}

#welcome-overlay .split-3 {
    font-size: clamp(2.5rem, 12vw, 4rem);
}

.overlay-bg-image {
    opacity: 0.15;
    /* Slightly more visible on mobile */
    object-position: center bottom;
    /* Adjust focus */
}

/**************************************
 * SECTIONS
 **************************************/
/* Reduced padding and margin for sections */
.section {
    padding: 0px 15px 0px 15px !important;
    min-height: auto !important;
    font-size: 14px !important;
    margin-left: 0px !important;
    margin-bottom: 0px !important;
    /* Reduced font size */
}

/* Reduce gap between summary and skills */
.main-content {
    margin-top: 20px !important;
    padding-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

#summary {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#summary h2 {
    text-align: left !important;
    padding-left: 0 !important;
    /* Fully left */
    margin-left: 0 !important;
    margin-top: 0 !important;
}

#summary .summary-text p:last-child {
    margin-bottom: 0 !important;
}

#skills {
    padding-top: 0 !important;
    margin-top: 0 !important;



}

#skills h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
}

#skills ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#skills,
#experience,
#projects,
#education,
#certificates {
    margin-top: 40px !important;
}

/* Align all sections except summary left and use full width */
.section:not(#summary) {
    text-align: left !important;
    align-items: flex-start !important;
    /* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
    padding-left: 20px !important;
    padding-right: 15px !important;
}




/* Make skills sub-headings stack on top */
.section:not(#summary) li strong {
    display: block !important;
    margin-bottom: 5px !important;
    width: 100% !important;
    color: #a8c0ff !important;
    /* Highlight sub-headings */
}

/* Spacing between skill items */
.section:not(#summary) li {
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}

.section:not(#summary) h2,
.section:not(#summary) p {
    line-height: 1.6 !important;
}

/* Headings align left */
.section:not(#summary) h2 {
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    /* Fully left */
    padding-right: 0 !important;
    margin-bottom: 5px !important;
    margin-top: 10px !important;
    text-decoration: underline !important;
}

/* Content padded left */
.section:not(#summary) p,
.section:not(#summary) ul,
.section:not(#summary) li,
.section:not(#summary) .experience-container,
.section:not(#summary) .projects-container,
.section:not(#summary) .education-container {
    text-align: left !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}


/* Re-add bullets for Experience and Projects but keep width */
.experience-container ul,
.projects-container ul,
.education-container ul,
.certificates-container ul {
    list-style: disc !important;
    padding-left: 0px !important;
    /* Minimal space for bullets */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;

    /* Ensure no right padding */
    width: 100% !important;
}

.education-container {
    max-height: none !important;
    /* Remove slider */
    overflow-y: visible !important;
}

/* Summary */
.profile-pic {
    width: 200px;
    height: 200px;
    margin: 60px auto 20px auto;
    border-width: 3px;
}

.name-container {
    font-size: 28px;
    margin-bottom: 20px;
}

.summary-text {
    margin: 0;
    padding: 0;
    font-size: 14px !important;
    /* Reduced font size */
    text-align: left;
}

.summary-point-quote {
    padding: 15px 20px;
    font-size: 15px;
}

.summary-point-quote::before,
.summary-point-quote::after {
    font-size: 40px;
    /* Smaller quotes */
}

/* Skills */
.skill-icons {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.skill-icons img {
    width: 40px;
    height: 40px;
}

/* Experience & Projects */
.experience-container,
.projects-container,
.education-container {
    margin: 0 !important;
    /* Remove large margins */
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* Ensure right edge is used */
    padding: 0 0 0px 0px !important;
    /* Reduce right padding */
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    /* Reduced font size */
}

/* Underline Project Headings */
.projects-container p strong {
    text-decoration: underline !important;
    font-size: 14px !important;
}

.experience-container p,
.projects-container p,
.education-container li {
    font-size: 13px !important;
    /* Enforce on children */
}

.company-logo img {
    width: 100px;
    /* Smaller logos */
    display: none !important;
    /* Hide original top logos */
}

.mobile-company-logo {
    display: block !important;
    width: 100px;
    margin-bottom: 10px;

    /* Align with text indentation */
}

/* Certificates */
.certificates-container {
    margin: 0 !important;
    font-size: 11px !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    /* Reduced from 20px */
}

.certificates-text {
    font-size: 11px !important;
    line-height: 1.3 !important;
    /* Reduced from 1.6 */
}

.certificates-text h3 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    text-decoration: underline !important;
}

.certificates-text ul {
    margin-bottom: 5px !important;
}

.certificates-text li {
    font-size: 11px !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
}

.certificates-logos img {
    width: 60px;
}