/* 
 * DevPortfolio - Premium Styles
 * Designed for Visual Excellence
 */

:root {
    /* Colors - HSL Palette */
    --primary-hue: 265;
    /* Bright Purple */
    --primary-sat: 100%;
    --primary-light: 65%;

    --color-primary: hsl(var(--primary-hue), var(--primary-sat), 50%);
    --color-primary-dark: hsl(var(--primary-hue), var(--primary-sat), 40%);
    --color-primary-light: hsl(var(--primary-hue), var(--primary-sat), 75%);
    --color-primary-glow: hsla(var(--primary-hue), var(--primary-sat), 50%, 0.4);

    --color-bg-body: #ffffff;
    --color-bg-light: #f8f9fc;
    --color-text-main: #1a1a1a;
    --color-text-muted: #555555;
    --color-border: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --gradient-text: linear-gradient(135deg, #2D3748 0%, #8B5CF6 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--color-primary-glow);

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #111;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border-color: #333;
    color: #333;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    background: #EDE9FE;
    color: var(--color-primary);
    margin-bottom: 1rem;
    border: 1px solid #C4B5FD;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.hamburger {
    display: none;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Take remaining space */
    margin-left: 2rem;
    /* Spacing from logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 0.25rem;
    display: flex;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
}

.lang-option {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.lang-option.active {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option:hover:not(.active) {
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    /* To align container centered if needed, or just standard block */
    box-sizing: border-box;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
    /* Ensure it takes full width of slide */
}

/* Navigation Controls */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--color-primary);
    color: white;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Mobile Responsive for Hero Carousel */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-prev,
    .hero-next {
        display: none;
        /* Hide arrows on mobile, rely on swipe (if added) or dots */
    }

    .hero-slide {
        padding: 0 1rem;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #888;
    font-size: 1.5rem;
}

.tech-icons span {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.code-window-mockup {
    background: #1e1e1e;
    /* VS Code dark theme bg */
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid #333;
}

.code-window-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-body {
    padding: 1.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    white-space: pre-wrap;
    min-height: 200px;
    /* Ensure height for design slides */
}

/* Visualization for Slide 2 (Design) */
.design-mockup .window-body {
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.design-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.preview-card {
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-white {
    color: white;
}

/* Visualization for Slide 3 (Mobile) */
.mobile-mockup {
    width: 200px;
    height: 400px;
    background: #111;
    border-radius: 30px;
    border: 8px solid #333;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.notch {
    width: 50%;
    height: 20px;
    background: #333;
    position: absolute;
    top: 0;
    left: 25%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 5;
}

.screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    padding-top: 30px;
}

.app-header {
    height: 40px;
    background: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.app-content {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-item {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.keyword {
    color: #c586c0;
    font-weight: bold;
}

.function {
    color: #dcdcaa;
}

.string {
    color: #ce9178;
}

.variable {
    color: #9cdcfe;
}

.number {
    color: #b5cea8;
}

.comment {
    color: #6a9955;
    font-style: italic;
}

.key {
    color: #9cdcfe;
}

/* Technologies Section */
.technologies {
    background: white;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.tech-card {
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: default;
    background: white;
}

.tech-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.tech-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Specific tech colors */
.laravel-bg i {
    color: #FF2D20;
}

.react-bg i {
    color: #61DAFB;
}

.tailwind-bg i {
    color: #38dec0;
}

.wp-bg i {
    color: #21759b;
}

.tech-card:hover .tech-icon-wrapper {
    background: #111;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Services Section */
.section-tag {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #111;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Portfolio Section */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
}

.portfolio-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.carousel-window {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.4s ease-in-out;
}

.project-card {
    border: 1px solid #111;
    /* Bold border like in reference */
    padding: 0;
    background: white;
    transition: transform 0.3s ease;
    flex: 0 0 calc(50% - 1.25rem);
    /* (100% - gap) / 2 */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px 0px #111;
    /* Brutalist shadow effect */
}

.project-image {
    padding: 2rem;
    background: #f8f9fc;
    border-bottom: 1px solid #111;
}

.placeholder-img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    background: white !important;
}

.project-info {
    padding: 1.5rem 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-link {
    font-size: 1.25rem;
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tags span {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid #ddd;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    border-radius: 4px;
}

.btn-text {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #eee;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    color: #111;
    transition: 0.2s;
}

.btn-text:hover {
    background: #111;
    color: white;
}


/* Testimonial */
.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 3rem;
    color: #111;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.author-info p {
    font-size: 0.8rem;
    color: #666;
}


/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    border: 1px solid #ddd;
    padding: 3rem 2rem;
    text-align: center;
    background: white;
    position: relative;
    transition: 0.3s;
}

.pricing-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    background: white;
    z-index: 10;
    transform: scale(1.05);
}

/* Interactive Button Styles */
.pricing-card .btn {
    transition: all 0.3s ease;
}

.pricing-card.active .btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.pricing-card:not(.active) .btn {
    background: transparent;
    border-color: #333;
    color: #333;
    box-shadow: none;
}

.badge-pop {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pricing-card .desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    height: 40px;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 2rem;
}

.currency {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    display: block;
}

.features {
    text-align: left;
    margin-bottom: 2rem;
}

.features li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features li i {
    color: #111;
    font-size: 0.8rem;
}


/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

.value {
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-form {
    background: white;
    padding: 3rem;
    border: 1px solid #111;
    box-shadow: 15px 15px 0px #111;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    border-top: 1px solid #eee;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.social-links a:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.copyright p {
    font-size: 0.8rem;
    color: #888;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 2rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */
    .nav-actions {
        display: none;
    }

    /* Hide buttons on mobile for now or create mobile menu */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobile Menu */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #111;
        transition: all 0.3s ease-in-out;
    }

    /* Active State for Hamburger */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below navbar */
        display: flex;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 2rem 0;
        gap: 2rem;
        height: calc(100vh - 70px);
        /* Fill rest of screen */
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    /* Hide code block on small screens or adjust */
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Center Services Section Titles on Mobile */
    .services .section-tag,
    .services .section-title {
        text-align: center;
        display: block;
        /* Ensure span behaves as block for centering */
        margin-left: auto;
        margin-right: auto;
    }

    .project-card {
        flex: 0 0 100%;
        /* Full width on mobile */
    }

    .pricing-card {
        transform: scale(0.95);
        margin-bottom: 0;
        /* Tighten up if needed */
    }

    .pricing-card.popular,
    .pricing-card.active {
        transform: scale(0.95);
        /* Uniform size on mobile, even when active */
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        box-shadow: 10px 10px 0px #111;
        margin-top: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary, #6C63FF);
    /* Fallback color */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: #5a52d5;
}