/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-purple: #8b5cf6;
    --gradient: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(99,102,241,0.08), rgba(139,92,246,0.15));
    --border-color: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Top Nav ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue-light);
}

.lang-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.lang-divider {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.8rem;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 70%, rgba(139,92,246,0.08) 0%, transparent 50%),
        var(--bg-primary);
    z-index: 0;
}

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

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* ===== About ===== */
.about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(59,130,246,0.3);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.56rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Platforms & Tools ===== */
.tools-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tools-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    min-width: 110px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.08);
}

.tool-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tool-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Social Cards ===== */
.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: block;
}

.social-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}

.social-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59,130,246,0.3);
}

.social-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.social-handle {
    font-size: 0.85rem;
    color: var(--accent-blue-light);
}

.social-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1rem;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(59,130,246,0.3);
    border-color: var(--accent-blue);
}

.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(59,130,246,0.5);
    transform: scale(1.3);
}

/* ===== Brand Campaign ===== */
.brand-campaign {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brand-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.brand-intro h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.campaign-block {
    margin-bottom: 3rem;
}

.campaign-block:last-child {
    margin-bottom: 0;
}

.campaign-block h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    margin-bottom: 0.75rem;
}

.campaign-block > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.campaign-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.08);
}

.campaign-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.campaign-card span {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Certifications Spinning Carousel ===== */
.cert-carousel-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    padding: 1rem 0;
}

.cert-carousel {
    display: flex;
    gap: 2rem;
    animation: certScroll 30s linear infinite;
    width: max-content;
}

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

@keyframes certScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 1rem;
    min-width: 130px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.08);
}

.cert-badge {
    width: 80px;
    height: 80px;
}

.cert-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(59,130,246,0.2));
}

.cert-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.certs-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ===== Connect Section ===== */
.connect {
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(59,130,246,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 30% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.connect-heading {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    position: relative;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.3);
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 1.25rem;
    }

    .brand-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-cards {
        grid-template-columns: 1fr;
    }

    .campaign-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect {
        padding: 5rem 1.25rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -2.06rem;
    }
}

@media (max-width: 480px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }
}

/* ===== Scroll 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);
}
