:root {
    --primary-green: #00A650;
    --background-white: #FFFFFF;
    --background-alt: #F2FAF5;
    --text-black: #111111;
    --text-gray: #666666;
    --border-color: #EAEAEA;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Archivo Black', sans-serif;
    --padding-sides: 5%;
}

body.dark-mode {
    --primary-green: #00FF41;
    --background-white: #0a0f0d;
    --background-alt: #111b15;
    --text-black: #FFFFFF;
    --text-gray: #AAAAAA;
    --border-color: #1f3325;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-white);
    color: var(--text-black);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base sections styling */
section {
    padding: 100px var(--padding-sides);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--padding-sides);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mode-toggle {
    background: none;
    border: 1px solid var(--text-gray);
    color: var(--text-black);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.mode-toggle:hover {
    background-color: var(--text-black);
    color: var(--background-white);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-icon span {
    width: 30px;
    height: 2px;
    background-color: var(--text-black);
}

/* Typography Base */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin-bottom: 4rem;
}

.section-title-dark {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin-bottom: 4rem;
    color: var(--text-black);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-bottom: 0; /* Important to keep bottom aligned */
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    height: 100%;
}

.hero-text-top {
    font-size: clamp(2rem, 10vw, 5rem);
    line-height: 1;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 35vw;
}

.hero-main-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    margin-top: 2rem;
}

.background-text {
    font-family: var(--font-title);
    font-size: clamp(3rem, 20vw, 12rem);
    line-height: 0.8;
    color: var(--primary-green);
    text-align: center;
    position: absolute;
    top: -50px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.person-container {
    position: relative;
    z-index: 30;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 0;
}

.hero-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -2rem; /* Pull up over the background below a bit */
    position: relative;
    z-index: 50;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.small-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-gray);
}

.hero-cta {
    position: absolute;
    left: 50%;
    bottom: -25px; /* Overlap the next section slightly */
    transform: translateX(-50%);
    z-index: 60;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(46, 91, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 91, 255, 0.4);
    background-color: #1a42db;
}

.description {
    font-size: 0.9rem;
    max-width: 250px;
    text-align: right;
    line-height: 1.5;
    color: var(--text-gray);
}

/* Services Section */
.services {
    background-color: var(--primary-green);
    color: white;
    padding-top: 100px;
    position: relative;
    z-index: 20;
}

.services .section-title {
    color: white;
}

.services-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.services-tags {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 700px;
}

.tag {
    background-color: white;
    color: #111;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.services-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    text-align: right;
}

.services-info p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    color: rgba(255,255,255,0.9);
}

.btn-outline {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* About / Perfil Section */
.about {
    background-color: var(--background-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

.about-label {
    text-align: right;
}

.label-tag {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-green);
    letter-spacing: 2px;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.about-text strong {
    color: var(--text-black);
}

.about-chips {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.chip {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-download {
    display: inline-block;
    border-bottom: 2px solid var(--text-black);
    color: var(--text-black);
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-download:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Experience Section */
.experience {
    background-color: var(--background-white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin-left: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--background-white);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.timeline-list {
    list-style-type: none;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.timeline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Skills Section */
.skills {
    background-color: var(--background-alt);
}

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

.skill-cat-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.skill-pill {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.skill-pill:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Certifications Section */
.certifications {
    background-color: var(--background-white);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s;
    background-color: var(--background-white);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cert-icon {
    font-size: 2rem;
    background-color: var(--background-alt);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

.cert-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cert-year {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Projects Section */
.projects {
    background-color: var(--background-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.project-number {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--border-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    background-color: var(--background-alt);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    background-color: var(--background-white);
    padding-bottom: 50px;
}

.contact-content {
    max-width: 600px;
}

.contact-sub {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--background-alt);
    text-decoration: none;
    color: var(--text-black);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-item:hover {
    background-color: var(--text-black);
    color: var(--background-white);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text-top { gap: 15vw; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-label { text-align: left; }
    .timeline { margin-left: 0; }
}

@media (max-width: 768px) {
    section { padding: 60px var(--padding-sides); }
    .navbar { padding: 1.5rem var(--padding-sides); }
    .hero { padding-top: 100px; }
    .hero-text-top { font-size: 1.5rem; flex-direction: column; align-items: center; gap: 0; margin-bottom: 1rem;}
    .background-text { font-size: clamp(3rem, 18vw, 6rem); top: 5%; }
    .hero-bottom { flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
    .hero-cta { position: relative; bottom: auto; left: auto; transform: none; margin-top: 1rem; }
    .hero-info-right { display: none; } /* Hide description on mobile to save space */
    .services-content { flex-direction: column; gap: 3rem; }
    .services-info { align-items: flex-start; text-align: left; }
    .about-title { font-size: 2rem; }
    .timeline::before { left: 15px; }
    .timeline-dot { left: 10px; }
    .timeline-item { padding-left: 40px; }
}

/* ======== ICONS & TYPOGRAPHY TWEAKS ======== */
.ph, .ph-fill, .ph-light { margin-right: 8px; vertical-align: middle; }
.social-icon .ph { margin: 0; font-size: 1.5rem; }
.contact-icon .ph { margin: 0; font-size: 1.8rem; }
.cert-icon .ph { margin: 0; font-size: 2.5rem; }

/* ======== TOP CONTENT CAROUSEL ======== */
.top-content {
    background-color: var(--background-alt);
    padding: 80px 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    padding: 1rem 0 3rem 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.content-card {
    min-width: 320px;
    height: 250px;
    padding: 0;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-black);
    transition: all 0.3s ease;
}

.card-thumb {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}

.content-card:hover .card-thumb {
    transform: scale(1.05);
}

.content-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,166,80,0.15);
}

.card-info {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background-white);
    position: relative; /* to stay above scaled image */
    flex: 1;
}

.card-info i {
    font-size: 2rem;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.yt-card:hover .card-info i { color: #FF0000; }
.li-card:hover .card-info i { color: #0A66C2; }
body.dark-mode .yt-card:hover .card-info i { color: #FF4A4A; }
body.dark-mode .li-card:hover .card-info i { color: #378FE9; }

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.card-info p {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Certifications Link tweak */
a.cert-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ======== LANG BUTTON ======== */
.btn-lang {
    background: none;
    border: 1px solid var(--text-gray);
    color: var(--text-black);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-lang:hover {
    background-color: var(--text-black);
    color: var(--background-white);
}


/* ======== HACKER OVERRIDES ======== */
.skill-category {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
body.dark-mode .skill-category {
    border: 1px solid #1a3322;
    box-shadow: 0 4px 20px rgba(0,255,65,0.05);
}
.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 166, 80, 0.15);
}
body.dark-mode .skill-category:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}
.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background-color: transparent;
    transition: background-color 0.4s;
}
.skill-category:hover::before {
    background-color: var(--primary-green);
}

.skill-pill {
    background-color: var(--background-alt) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.skill-pill:hover {
    border-color: var(--primary-green) !important;
    background-color: var(--primary-green) !important;
    color: var(--background-white) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 166, 80, 0.3) !important;
}
body.dark-mode .skill-pill:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4) !important;
    color: #000 !important;
}

.cert-card {
    position: relative !important;
    overflow: hidden !important;
    background: var(--background-alt) !important;
    border: 1px solid var(--border-color) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.cert-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 15px 35px rgba(0, 166, 80, 0.1) !important;
}
body.dark-mode .cert-card:hover {
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.15) !important;
}
.cert-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important; width: 4px !important;
    background-color: transparent !important;
    transition: background-color 0.4s !important;
}
.cert-card:hover::before {
    background-color: var(--primary-green) !important;
}
.cert-icon {
    font-size: 2.5rem !important;
    background-color: var(--background-white) !important;
    color: var(--primary-green) !important;
    width: 65px !important;
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* ======== HERO GAP FIX & CERT BTN ======== */
.hero-bottom {
    padding-bottom: 0px !important;
}
.hero {
    padding-bottom: 0px !important;
}
.person-container {
    margin-bottom: -15px !important; 
}

.btn-cert {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: var(--text-black);
    color: var(--background-white);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.3s;
}
.cert-card:hover .btn-cert {
    transform: translateX(5px);
    background: var(--primary-green);
    color: white;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
========================================= */
@media (max-width: 900px) {
    :root {
        --padding-sides: 2rem;
    }
    .hero-text-top {
        font-size: 3rem;
    }
    .background-text {
        font-size: 12vw;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-sides: 1.5rem;
    }

    .navbar {
        padding: 1rem var(--padding-sides);
    }
    
    /* Typography Scaling */
    .hero-text-top {
        font-size: 2.5rem;
    }
    .background-text {
        font-size: 16vw;
        letter-spacing: -2px;
    }
    .section-title, .section-title-dark {
        font-size: 2.5rem;
    }

    /* Layout Stacking */
    .hero-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
    .hero-info-left, .hero-info-right {
        text-align: center;
    }
    .person-container {
        margin-bottom: 0px !important; 
        max-width: 300px;
        margin: 0 auto;
    }

    .services-content, .about-grid, .contact-content {
        flex-direction: column;
        display: flex;
        gap: 2rem;
    }

    /* Grids safe fallback for mobile */
    .skills-grid, .certs-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Internal Card Padding scaling */
    .skill-category {
        padding: 1.5rem;
    }
    .cert-card {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }
    .cert-icon {
        margin-bottom: 0.5rem;
    }

    /* Timeline Adjustments */
    .timeline-item {
        padding-left: 2rem;
    }
    .timeline-dot {
        left: 0;
    }
}

@media (max-width: 480px) {
    .background-text {
        font-size: 18vw;
    }
    .hero-text-top {
        font-size: 2rem;
    }
    .btn-lang {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
    }
    .mode-toggle {
        font-size: 0.6rem;
    }
}
