/* === ALVA CI VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ALVA Original Colors */
    --alva-yellow: #E8FF00;
    --alva-black: #2B2B2B;
    --alva-dark-bg: #3A3A3A;
    --alva-light-gray: #F5F5F5;
    --text-primary: #2B2B2B;
    --text-secondary: #666666;
    --white: #ffffff;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HEADER (ALVA STYLE) === */
header.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--alva-black);
    z-index: 1000;
    padding: 1rem 5%;
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    background: var(--alva-yellow);
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--alva-black);
    border-radius: 4px;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.logo-text:hover {
    color: var(--alva-yellow);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--alva-yellow);
}

nav a.active {
    color: var(--alva-yellow);
    font-weight: 600;
}

.cta-header {
    background: var(--alva-yellow);
    color: var(--alva-black);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 255, 0, 0.4);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* === HERO (ALVA DARK STYLE) === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2B2B2B 0%, #3A3A3A 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 5% 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="80" fill="none" stroke="rgba(232,255,0,0.03)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
}

.hero h1 .highlight {
    background: var(--alva-yellow);
    color: var(--alva-black);
    padding: 0.1em 0.3em;
    display: inline-block;
    border-radius: 4px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

.cta-primary {
    display: inline-block;
    background: var(--alva-yellow);
    color: var(--alva-black);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(232, 255, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cta-primary:hover,
.cta-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232, 255, 0, 0.5);
}

.cta-primary:active {
    transform: translateY(-1px);
}

/* === STATS BAR (ALVA STYLE) === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: -4rem auto 0;
    padding: 0 5%;
    position: relative;
    z-index: 3;
}

.stat-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--alva-black);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === SECTION STYLES === */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 3rem;
    color: var(--alva-black);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    text-align: center;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* === CARDS (ALVA 3-COLUMN STYLE) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 4rem 0;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3,
.card h4 {
    color: var(--alva-black);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === ALTERNATING BG === */
.bg-light {
    background: var(--alva-light-gray);
    padding: 6rem 5%;
    max-width: 100%;
}

/* === NUMBER PREFIX (ALVA STYLE) === */
.number-prefix {
    color: var(--alva-yellow);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

/* === FEATURE LIST === */
ul.feature-list {
    list-style: none;
    margin: 3rem 0;
    display: grid;
    gap: 1.5rem;
}

ul.feature-list li {
    padding: 1.8rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--alva-yellow);
    line-height: 1.8;
}

ul.feature-list strong {
    color: var(--alva-black);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* === ANALYSIS GRID === */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.analysis-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border-top: 3px solid var(--alva-yellow);
}

.analysis-item h4 {
    color: var(--alva-black);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.analysis-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === SWOT (2x2 GRID) === */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 4rem 0;
}

.swot-box {
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    background: var(--white);
    border-top: 4px solid var(--alva-yellow);
}

.swot-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--alva-black);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.swot-box p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* === CV SPECIFIC STYLES === */
.cv-section {
    margin-bottom: 4rem;
}

.cv-section h3 {
    font-size: 2rem;
    color: var(--alva-black);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    border-bottom: 3px solid var(--alva-yellow);
    padding-bottom: 0.5rem;
}

.experience-item,
.education-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 2rem;
    border-left: 4px solid var(--alva-yellow);
}

.experience-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-title,
.education-degree {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alva-black);
    letter-spacing: -0.5px;
}

.experience-company,
.education-institution {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.3rem;
}

.experience-date,
.education-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--alva-light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.experience-description ul,
.education-description ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.experience-description li,
.education-description li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.experience-description li::before,
.education-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--alva-yellow);
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border-top: 3px solid var(--alva-yellow);
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--alva-black);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === CONTACT SECTION (ALVA DARK BG) === */
.contact-section {
    text-align: center;
    padding: 6rem 5%;
    background: linear-gradient(135deg, #2B2B2B 0%, #3A3A3A 100%);
    color: var(--white);
}

.contact-section h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.btn-download,
.btn-email,
.btn-linkedin {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-download {
    background: var(--alva-yellow);
    color: var(--alva-black);
}

.btn-email {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-linkedin {
    background: #0077b5;
    color: var(--white);
}

.btn-download:hover,
.btn-email:hover,
.btn-linkedin:hover,
.btn-download:focus,
.btn-email:focus,
.btn-linkedin:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-download:active,
.btn-email:active,
.btn-linkedin:active {
    transform: translateY(-1px);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 2.5rem 5%;
    background: var(--alva-black);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

footer a {
    color: var(--alva-yellow);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === SCROLL BEHAVIOR === */
html {
    scroll-behavior: smooth;
}

/* === HIGHLIGHT === */
mark {
    background: var(--alva-yellow);
    color: var(--alva-black);
    padding: 0.1em 0.3em;
    font-weight: 600;
    border-radius: 2px;
}

/* === PAGE HEADER (for subpages) === */
.page-header {
    padding: 10rem 5% 5rem;
    background: linear-gradient(135deg, #2B2B2B 0%, #3A3A3A 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* === RESPONSIVE === */

/* Large Tablets and Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    section {
        padding: 5rem 5%;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .card-grid,
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2.5rem;
    }
    
    .stats-bar {
        gap: 2rem;
    }
}

/* Mobile Devices and Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        display: none;
    }

    nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--alva-black);
        padding: 1rem 5%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    nav.mobile-open a {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav.mobile-open a:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    /* Header */
    header.main-header {
        padding: 0.8rem 5%;
    }
    
    .logo-box {
        width: 50px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 5% 4rem;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-primary {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    /* Page Header */
    .page-header {
        padding: 8rem 5% 4rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 4rem 5%;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-intro {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    /* Grids */
    .stats-bar {
        margin-top: -3rem;
        gap: 1.5rem;
    }

    .stats-bar,
    .card-grid,
    .analysis-grid,
    .swot-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .card {
        padding: 2rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card h3,
    .card h4 {
        font-size: 1.2rem;
    }

    /* Stats */
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }

    /* Contact Buttons */
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn-download,
    .btn-email,
    .btn-linkedin {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        text-align: center;
    }

    /* CV Sections */
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-date,
    .education-date {
        margin-top: 0.5rem;
    }
    
    .experience-item,
    .education-item {
        padding: 1.5rem;
    }
    
    .experience-title,
    .education-degree {
        font-size: 1.1rem;
    }
    
    /* Feature List */
    ul.feature-list li {
        padding: 1.5rem;
    }
    
    /* Analysis Grid */
    .analysis-item {
        padding: 1.5rem;
    }
    
    .number-prefix {
        font-size: 3rem;
    }
    
    /* SWOT */
    .swot-box {
        padding: 2rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 4rem 5%;
    }
    
    /* Footer */
    footer {
        padding: 2rem 5%;
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    body {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .section-intro {
        font-size: 0.95rem;
    }
    
    /* Header */
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-box {
        width: 45px;
        height: 32px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    /* Cards and Items */
    .card,
    .experience-item,
    .education-item,
    .analysis-item,
    .swot-box {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Buttons */
    .cta-primary,
    .btn-download,
    .btn-email,
    .btn-linkedin {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
    
    /* Contact Buttons */
    .contact-buttons {
        gap: 0.8rem;
    }
}

/* Very Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .card,
    .experience-item,
    .education-item,
    .analysis-item,
    .swot-box {
        padding: 1.2rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 5% 3rem;
    }
    
    .page-header {
        padding: 6rem 5% 3rem;
    }
}

/* Print Styles */
@media print {
    header.main-header,
    .contact-buttons,
    .mobile-menu-toggle,
    footer {
        display: none;
    }
    
    .hero,
    .page-header,
    .contact-section {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .card,
    .experience-item,
    .education-item {
        page-break-inside: avoid;
    }
}

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

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