/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #040914;
    --bg-card: #0e121a;
    --bg-card-hover: #11161f;
    --accent-primary: #a06b90;
    --accent-primary-hover: #a86363;
    --accent-secondary: #976373;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #1f2937;
    --border-accent: #374151;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
    --font-size-base: clamp(1rem, 3vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-3xl: clamp(2rem, 6vw, 3rem);
    --font-size-4xl: clamp(2.5rem, 8vw, 4rem);
    
    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* ================================================
   UTILITIES
   ================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.highlight {
    color: var(--accent-secondary);
    font-weight: 600;
}

.highlight-white {
    color: var(--text-primary);
    font-weight: 600;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 48px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

/* Ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(10, 15, 26, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: calc(70px + var(--space-lg)) var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: right var(--transition-slow);
    border-left: 1px solid var(--border-color);
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-size: var(--font-size-lg);
    font-weight: 500;
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(70px + var(--space-xl)) var(--space-md) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: var(--space-sm) auto 0;
    border-radius: var(--radius-full);
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about {
    background: var(--bg-secondary);
}

.about-lead {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

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

.about-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-point {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.about-point:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.about-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.about-point h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.about-point p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================================
   SKILLS SECTION
   ================================================ */
.skills-carousel {
    position: relative;
    overflow: hidden;
}

.skills-track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-sm) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.skills-track::-webkit-scrollbar {
    display: none;
}

.skill-card {
    flex: 0 0 calc(100% - var(--space-md));
    scroll-snap-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.skill-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 28px;
    height: 28px;
}

.android-icon {
    background: rgba(61, 220, 132, 0.15);
    color: #3DDC84;
}

.flutter-icon {
    background: rgba(69, 209, 253, 0.15);
    color: #45D1FD;
}

.eng-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.skill-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-accent);
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* ================================================
   EXPERIENCE SECTION
   ================================================ */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-accent);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

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

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-lg) + 1px);
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.timeline-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--accent-secondary);
    font-weight: 500;
}

.timeline-company {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.timeline-achievements li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding-left: var(--space-md);
    position: relative;
}

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

.timeline-achievements strong {
    color: var(--text-primary);
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects-grid {
    display: grid;
    gap: var(--space-lg);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.project-image {
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.project-content {
    padding: var(--space-md);
}

.project-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.project-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.project-tech span {
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-secondary  );
    border-radius: var(--radius-full);
}

.project-links {
    display: flex;
    gap: var(--space-sm);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-secondary);
    background: rgba(34, 211, 238, 0.1);
}

/* ================================================
   CERTIFICATIONS SECTION
   ================================================ */
.certifications {
    background: var(--bg-secondary);
}

.certs-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cert-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.cert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    text-align: center;
    padding-bottom: calc(var(--space-2xl) + 80px);
}

.contact-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--border-color);
}

/* ================================================
   STICKY CTA
   ================================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.btn-sticky {
    width: 100%;
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */
@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .skill-card {
        flex: 0 0 calc(50% - var(--space-md) / 2);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ================================================
   RESPONSIVE - DESKTOP
   ================================================ */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        gap: var(--space-lg);
        border: none;
    }
    
    .nav-link {
        font-size: var(--font-size-sm);
        padding: var(--space-xs) 0;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-gradient);
        transition: width var(--transition-base);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
    
    .skill-card {
        flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
    }
    
    .skills-track {
        overflow: visible;
        justify-content: center;
    }
    
    .carousel-indicators {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .certs-grid {
        flex-direction: row;
    }
    
    .cert-card {
        flex: 1;
    }
    
    .sticky-cta {
        display: none;
    }
    
    .contact {
        padding-bottom: var(--space-2xl);
    }
    
    .about-points {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-point {
        flex-direction: column;
        text-align: center;
    }
    
    .about-point:hover {
        transform: translateY(-5px);
    }
    
    .timeline {
        padding-left: 0;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        padding-left: 50%;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 0;
        padding-right: 50%;
    }
    
    .timeline-marker {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: var(--space-lg);
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: var(--space-lg);
    }
    
    .timeline-content:hover {
        transform: translateX(0) scale(1.02);
    }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ================================================
   Latest changes manually added below
   ================================================ */
/* Container styling */
.certs-wrapper {
    width: 100%;
    overflow: hidden; /* Hides the cards outside the view */
    padding: 40px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); /* Fades edges */
}

/* The horizontal track */
.certs-slider {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: autoScroll 25s linear infinite;
    cursor: grab;
}

/* Manual scroll support + hiding scrollbar */
.certs-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.certs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Card Styling - High End Design */
.cert-card {
    flex: 0 0 350px; /* Prevents cards from shrinking */
    background: rgba(255, 255, 255, 0.05); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #007bff; /* Add a brand color highlight */
}

.cert-icon {
    font-size: 2.5rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.cert-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
}

.cert-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* Animation Logic */
@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls halfway because cards are duplicated */
}

/* Stop animation on user interaction */
.certs-wrapper:hover .certs-slider,
.certs-wrapper:active .certs-slider {
    animation-play-state: paused;
}

/* ================================================ 
   ================================================ */
/* Duplicate cards for seamless scrolling */
/* 1. Fade Mask Wrapper */
.contact-scroll-mask {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    width: 100%;
    overflow: hidden;
}

/* 2. Scroll Container */
.contact-scroll-container {
    overflow-x: auto;
    padding: 30px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}

.contact-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 3. The Track */
.contact-buttons-track {
    display: flex;
    gap: 15px;
    width: max-content;
    padding: 0 50px; /* Space for the fade effect */
    animation: autoScroll 25s linear infinite;
}

/* Pause on interaction */
.contact-scroll-container:hover .contact-buttons-track,
.contact-scroll-container:active .contact-buttons-track {
    animation-play-state: paused;
}

/* 4. Button Styling (Pill Design) */
.btn-pill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-pill:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 5. Brand Colors */
.btn-github { background: #24292e; color: #fff; }
.btn-linkedin { background: #0077b5; color: #fff; }
.btn-leetcode { background: #f89f1b; color: #fff; }
.btn-medium { background: #000000; color: #fff; }
.btn-stack { background: #f48024; color: #fff; }
.btn-x { background: #000000; color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.btn-insta { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }

/* 6. Infinite Animation Logic */
@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30%); } /* Adjust based on button count */
}

/* Scroll Indicator */
/* --- FIXED SCROLL INDICATOR --- */
/* Container: Fixed and centered */
/* Container: Fixed and centered */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}

/* The Mouse Body */
.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid #ffffff; /* Set border to white */
    border-radius: 20px;
    position: relative;
    background: transparent;
}

/* The Animated Wheel */
.wheel {
    width: 3px;
    height: 7px;
    background: #ffffff; /* Set wheel to white */
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    /* Optional: Glow effect */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); 
    animation: scroll-dot 2s infinite;
}

/* Animation for the scroll movement */
@keyframes scroll-dot {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}