/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
:root {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;

    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-white: #ffffff;

    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-gradient: linear-gradient(135deg, #238636 0%, #2ea043 100%);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;

    --font-main: 'Inter', sans-serif;

    --header-height: 80px;
    --section-padding: 100px 0;

    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Prevent header overlap */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto 3rem auto;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: var(--text-white);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.logo-short {
    display: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.nav-cta {
    padding: 0.5rem 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.eyebrow {
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 4px solid var(--bg-tertiary);
    position: relative;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    z-index: 1;
}

/* ==========================================================================
   Credibility Section
   ========================================================================== */
.credibility {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.credibility-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.credibility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.credibility-item i {
    color: var(--accent-secondary);
    font-size: 1.25rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--accent-secondary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    flex-grow: 1;
}

/* ==========================================================================
   Why Work With Me Section
   ========================================================================== */
.why {
    background: var(--bg-secondary);
}

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

.why-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.why-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.why-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

/* ==========================================================================
   Projects Showcase (Slider)
   ========================================================================== */
.project-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-slider {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    overflow: hidden;
}

.project-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
}

.project-slide.active {
    display: flex;
}

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

.project-slide-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: none;
    margin: 0 auto;
}

.project-slide-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.project-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.project-category {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.project-desc {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tags span {
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-primary);
}

.project-link {
    width: fit-content;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none; /* Let clicks pass through empty space */
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: auto; /* Re-enable clicks for buttons */
}

.slider-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.indicator.active {
    background: var(--accent-primary);
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .project-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
}
    .project-slide-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: none;
    margin: 0 auto;
}
}

@media (max-width: 768px) {
    .slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none; /* Let clicks pass through empty space */
}
    .project-title {
        font-size: 1.5rem;
    }
    .project-slide-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: none;
    margin: 0 auto;
}
}
/* ==========================================================================
   Process Section (How I Turn Your Idea Into A Product)
   ========================================================================== */
.process {
    background: var(--bg-secondary);
}

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

.process-step {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.15);
    position: absolute;
    top: 10px;
    right: 20px;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.process-step p {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Tech Stack / Skills Section
   ========================================================================== */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-align: center;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-pills span {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-pills span:hover {
    border-color: var(--accent-secondary);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about p {
    font-size: 1.125rem;
}

/* ==========================================================================
   Connect Section
   ========================================================================== */
.connect-container {
    text-align: center;
    max-width: 800px;
}

.connect-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.connect-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.connect-item {
    min-width: 200px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
    background: var(--bg-secondary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-secondary);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand .footer-tagline {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-social h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 2rem;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .logo-name { display: none; }
    .logo-short { display: block; }

    .credibility-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .connect-links {
        flex-direction: column;
    }
}
/* ==========================================================================
   Let's Connect Section Enhancement
   ========================================================================== */
#connect .section-title {
    margin-bottom: 2rem;
    display: block; /* ensure it behaves normally for flex centering */
    text-align: center;
    position: relative;
    left: 0;
    transform: none;
}

#connect .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

#connect .connect-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#connect .connect-desc {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}



/* ==========================================================================
   Enhance "Why Work With Me" Animations
   ========================================================================== */
.why-card i {
    animation: floatIcon 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Add slight animation delays to different cards so they don't float perfectly in sync */
.why-card:nth-child(1) i { animation-delay: 0s; }
.why-card:nth-child(2) i { animation-delay: 0.5s; }
.why-card:nth-child(3) i { animation-delay: 1s; }
.why-card:nth-child(4) i { animation-delay: 1.5s; }
.why-card:nth-child(5) i { animation-delay: 2s; }
.why-card:nth-child(6) i { animation-delay: 2.5s; }

@media (prefers-reduced-motion: reduce) {
    .why-card i {
        animation: none;
    }
}

/* ==========================================================================
   Industries Carousel
   ========================================================================== */
.industries {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Create gradient fades on the sides for a premium look */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    width: calc(250px * 16); /* 8 items original + 8 duplicated * item width roughly */
    animation: scrollCarousel 40s linear infinite;
    gap: 3rem;
    align-items: center;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.carousel-item i {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.carousel-item span {
    font-size: 1rem;
    font-weight: 500;
}

.carousel-item:hover {
    color: var(--accent-primary);
}

.carousel-item:hover i {
    color: var(--accent-primary);
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); } /* scroll halfway which is the original set */
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .carousel-container::before,
    .carousel-container::after {
        display: none;
    }
}
