/* ===========================================
   Portfolio Styles - Hermanyo H.
   =========================================== */

/* CSS Variables */
:root {
    --primary-color: #9932cc;
    --secondary-color: #7b2cbf;
    --accent-color: #c77dff;
    --bg-dark: #191919;
    --bg-darker: #121212;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(153, 50, 204, 0.25);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Override Bootstrap img constraint */
img {
    max-width: 100%;
}

/* ===========================================
   Language Selector
   =========================================== */
.language-selector {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(153, 50, 204, 0.15);
}

.lang-btn i:first-child {
    color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(153, 50, 204, 0.15);
}

.lang-option.active {
    background: rgba(153, 50, 204, 0.25);
    color: var(--accent-color);
}

.lang-option .flag {
    font-size: 18px;
}

/* ===========================================
   Header Navigation
   =========================================== */
.header-section {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-menu ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-menu ul li span {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.main-menu ul li span:hover,
.main-menu ul li.active span {
    color: var(--primary-color);
}

.main-menu ul li.current span {
    color: var(--primary-color);
    position: relative;
}

.main-menu ul li.current span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===========================================
   Typing Animation
   =========================================== */
.typing-text {
    display: inline-block;
    min-height: 1.5em;
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.typing-text.typing-complete {
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* ===========================================
   AOS Custom Enhancements
   =========================================== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===========================================
   Buttons
   =========================================== */
.download-cv-btn,
.download-cv-btn:link,
.download-cv-btn:visited {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
}

.download-cv-btn:hover,
.download-cv-btn:active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.download-cv-btn i,
.download-cv-btn span {
    color: #ffffff !important;
    text-transform: none !important;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(153, 50, 204, 0.4);
    text-decoration: none;
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===========================================
   Fade Animations
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   Hero Section
   =========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hs-text .role-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

.hs-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.hs-text .subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.hs-text p {
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
}

/* ===========================================
   Social Links
   =========================================== */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(153, 50, 204, 0.15);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(153, 50, 204, 0.35);
    text-decoration: none;
    color: var(--text-light);
}

/* ===========================================
   Section Spacing
   =========================================== */
.spad {
    padding: 80px 0;
}

/* ===========================================
   Section Title
   =========================================== */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===========================================
   About Section
   =========================================== */
.about-us-section {
    background: var(--bg-dark);
    padding-top: 80px;
    padding-bottom: 80px;
}

.as-pic {
    display: block;
}

.as-pic img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block !important;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    visibility: visible !important;
    opacity: 1 !important;
}

.as-text {
    padding-left: 30px;
}

.as-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 15px;
}

.as-text p strong {
    color: var(--primary-color);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
}

/* ===========================================
   Experience Section
   =========================================== */
.experience-section {
    background: var(--bg-darker);
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 35px;
    padding-left: 10px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-darker);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item h4 {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item .company {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item .company i {
    margin-right: 8px;
}

.timeline-item .date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.timeline-item .date i {
    margin-right: 6px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
   Skills Section
   =========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.skill-category h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(153, 50, 204, 0.12);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(153, 50, 204, 0.25);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   Education Section
   =========================================== */
.education-section {
    background: var(--bg-dark);
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.education-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.education-card h4 {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-card h4 i {
    color: var(--primary-color);
}

.education-card .institution {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.education-card .period {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===========================================
   Certifications
   =========================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.cert-card i {
    font-size: 28px;
    color: var(--primary-color);
}

.cert-card span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.cert-issuer {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

/* ===========================================
   Achievements
   =========================================== */
.achievements {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(153, 50, 204, 0.12);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.achievement-badge i {
    color: var(--primary-color);
    font-size: 22px;
}

.achievement-badge span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* ===========================================
   Projects Section
   =========================================== */
.services-section {
    background: var(--bg-darker);
}

.projects-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.projects-row > [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(153, 50, 204, 0.15);
}

.project-card img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h4 {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tag {
    background: rgba(153, 50, 204, 0.15);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ===========================================
   Project Buttons
   =========================================== */
.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-btn i {
    font-size: 16px;
}

.project-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.project-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 50, 204, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.project-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.project-btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--accent-color);
    text-decoration: none;
}

/* ===========================================
   Stats
   =========================================== */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: var(--bg-darker);
    padding: 50px 0 80px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

.footer .social-links {
    justify-content: center;
}

/* ===========================================
   Back to Top
   =========================================== */
.button-to-Top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: none;
}

.button-to-Top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(153, 50, 204, 0.4);
}

.button-to-Top a:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: var(--text-light);
}

/* ===========================================
   Responsive - Tablet
   =========================================== */
@media (max-width: 991px) {
    .as-text {
        padding-left: 0;
        padding-top: 30px;
    }

    .as-pic img {
        max-width: 100%;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   Responsive - Mobile
   =========================================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html,
    body {
        overflow-x: clip;
        max-width: 100vw;
    }
    
    /* Ensure all content is visible */
    section,
    .container {
        overflow: visible !important;
    }
    
    /* Ensure images load properly */
    img {
        display: block;
        max-width: 100%;
        height: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* AOS fallback - ensure elements are visible even if AOS fails */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Ensure all sections are visible */
    section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-section {
        padding: 10px 0;
    }
    
    .main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
        padding: 0 10px;
    }

    .main-menu ul li span {
        font-size: 12px;
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .hero-section {
        padding: 80px 10px 50px;
        min-height: auto;
    }
    
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hs-text h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hs-text .subtitle {
        font-size: 0.85rem;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
    
    .hs-text .subtitle .typing-text {
        white-space: normal;
        word-wrap: break-word;
        display: inline;
    }
    
    .hs-text p {
        font-size: 12px;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        padding: 0;
        line-height: 1.5;
    }
    
    .hs-text {
        padding: 0 5px;
        max-width: 100%;
        overflow: visible;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .cta-buttons a,
    .primary-btn,
    .btn-outline,
    .download-cv-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 20px !important;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* About Section Mobile */
    .about-us-section .row {
        flex-direction: column;
    }
    
    .as-pic {
        text-align: center;
        margin-bottom: 30px;
        display: block !important;
    }
    
    .as-pic img {
        max-width: 250px;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Skills Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-category h4 {
        font-size: 1rem;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .timeline-item h4 {
        font-size: 1.1rem;
    }
    
    .timeline-item p {
        font-size: 13px;
    }

    .timeline-item::before {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    /* Education Mobile */
    .education-card {
        padding: 25px 20px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cert-card {
        padding: 15px;
        font-size: 13px;
    }
    
    /* Projects Mobile */
    .project-card {
        margin-bottom: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-card img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    
    #projects .row {
        justify-content: center;
    }
    
    #projects .col-lg-4,
    #projects .col-md-6 {
        display: flex;
        justify-content: center;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h4 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 13px;
    }
    
    .project-tags {
        gap: 6px;
    }
    
    .project-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Project Buttons Mobile */
    .project-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer p {
        font-size: 12px;
    }

    .language-selector {
        top: auto;
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: calc(12px + env(safe-area-inset-right));
    }

    .language-selector .lang-dropdown {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 8px;
        transform: translateY(10px);
    }
    
    .language-selector select {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .button-to-Top {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(12px + env(safe-area-inset-right));
        z-index: 9999 !important;
        position: fixed !important;
    }
    
    .button-to-Top a {
        width: 50px;
        height: 50px;
        font-size: 20px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ===========================================
   Responsive - Small Mobile
   =========================================== */
@media (max-width: 480px) {
    .hs-text h2 {
        font-size: 1.7rem;
    }
    
    .role-badge {
        font-size: 11px;
        padding: 6px 15px;
    }
    
    .main-menu ul li span {
        font-size: 11px;
    }
    
    .as-pic img {
        max-width: 200px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .timeline-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}
