/* Import Google Font with font-display swap for better performance */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700;900&display=swap');

/* Variables */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --accent: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --blackColor: #0f172a;
    --glass: rgba(255, 255, 255, 0.9);
    --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);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

img {
    max-width: 100%;
    /* Ensure images never overflow */
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* --- Design Summit Hero Section --- */
.hero-design {
    background-color: #ffffff;
    padding: 80px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-design-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-design-subtitle {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.hero-design-title {
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.1;
    color: #1a2542;
    margin-bottom: 30px;
}


.hero-design-location {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.blue-text {
    color: var(--accent);
}

.hero-design-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-schedule {
    background-color: #8FD4FB;
    color: #1a2542;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-learn {
    background-color: white;
    color: #1a2542;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid #1a2542;
    transition: transform 0.3s ease;
}

.btn-schedule:hover,
.btn-learn:hover {
    transform: translateY(-3px);
}



/* Visual Side */
.hero-design-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.capsule-container {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.capsule {
    border-radius: 200px;
    overflow: hidden;
    position: relative;
}

.capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capsule-yellow {
    width: 250px;
    height: 450px;
    background-color: #FFD233;
}

.capsule-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.capsule-purple {
    width: 200px;
    height: 280px;
    background-color: #D6A4E8;
}

.capsule-blue {
    width: 200px;
    height: 280px;
    background-color: #8FD4FB;
}

/* Decorations */
.decor {
    position: absolute;
    z-index: 1;
}

.design-star-1 {
    top: 50px;
    left: 40px;
    font-size: 4rem;
    color: var(--gradient);
    animation: rotate 10s linear infinite;
}

.design-star-2 {
    bottom: 100px;
    left: 200px;
    font-size: 2rem;
    color: var(--gradient);
}

.design-scribble {
    top: 150px;
    left: 20px;
    font-size: 5rem;
    color: #10b981;
    transform: rotate(-15deg);
    opacity: 0.8;
}

.design-sunburst {
    bottom: 50px;
    right: 50px;
    font-size: 6rem;
    color: #1a2542;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsiveness */
@media (max-width: 1200px) {
    .hero-design-title {
        font-size: 4rem;
    }

    .capsule-yellow {
        width: 200px;
        height: 380px;
    }

    .capsule-purple,
    .capsule-blue {
        width: 160px;
        height: 230px;
    }
}

@media (max-width: 992px) {
    .hero-design-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-design-buttons {
        justify-content: center;
    }



    .hero-design-visual {
        display: none;
    }

    .capsule-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-design {
        padding: 60px 0;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-design-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero-design-subtitle {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .hero-design-location {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-design-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .btn-schedule,
    .btn-learn {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
    }

    /* Hide the entire visual section on phones as requested */
    .hero-design-visual {
        display: none;
    }
}


/* =========================================
   Horizontal & Height Optimization 
   (Landscape / Short Screens)
   ========================================= */

@media (max-height: 600px) and (orientation: landscape) {
    .nav-container {
        height: 60px;
    }

    .hero-design {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-design-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-design-subtitle {
        font-size: 1.4rem;
    }

    .hero-design-location {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .hero-design-buttons {
        margin-bottom: 30px;
    }

    .section-modern {
        padding: 50px 0;
    }

    .section-header-modern {
        margin-bottom: 40px;
    }

    .section-title-modern {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .newspaper-section {
        padding: 40px 0;
    }
}

@media (max-height: 450px) {
    .nav-menu {
        padding: 20px;
        gap: 15px;
    }

    .nav-menu li a {
        font-size: 0.85rem;
    }

    .hero-design-visual {
        display: none !important;
        /* Force hide visuals on extremely short screens */
    }
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--dark);
    padding: 14px 35px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 8px;
    /* Arrow animation */
}


.features-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: #e2e8f0;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    margin-bottom: 25px;
    color: var(--gray);
    line-height: 1.7;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-features {
    list-style: none;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

/* Pages */
.page-header {
    background: var(--dark);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for header */
.page-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    filter: blur(80px);
    opacity: 0.2;
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.content-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

/* Search Bar */
.search-container {
    max-width: 100%;
    margin: 0 auto 50px;
    display: flex;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .content-section {
        padding: 20px 0;
    }

    .page-header {
        padding: 40px 0;
    }

    .marketplace-container {
        margin: 20px auto;
        gap: 20px;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .search-wrapper,
    .category-select {
        width: 100%;
        min-width: 100%;
    }
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    flex: 1;
}

.search-bar {
    flex: 1;
    padding: 18px 70px 18px 30px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background: transparent;
}

.category-select {
    padding: 18px 40px 18px 20px;
    border: none;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    outline: none;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    box-shadow: var(--shadow-md);
}

.category-select:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.search-icon-btn {
    position: absolute;
    right: 10px;
    background: var(--gradient);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.search-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.search-bar:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Grid Layouts - Apps/Store/Blog */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.card-price {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background: var(--dark);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* --- Modern Footer Redesign --- */
.site-footer {
    background-color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid #f1f5f9;
    color: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-btn {
    padding: 12px 20px;
    background: #059669;
    /* Darker primary for better contrast with white text */
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Professional Fix: Hide from layout calculations when closed */
        visibility: hidden;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .grid,
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */

.about-hero {
    padding: 100px 0;
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-container {
    position: sticky;
    top: 100px;
}

.profile-frame {
    background: var(--gradient);
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.profile-frame img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.skill-pill {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.skill-pill i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.skill-pill h4 {
    margin-bottom: 8px;
    color: var(--dark);
}

.skill-pill p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .profile-container {
        position: static;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}


/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
    color: var(--gray);
    font-size: 1.1rem;
}

.info-group {
    margin-bottom: 40px;
}

.info-group h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.info-group h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.info-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
}

.info-details i {
    color: var(--primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    font-size: 1.2rem;
}

.social-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Form Styles Update */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-input:focus,
.form-textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Ad Placement Styles --- */
.ad-placement {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    color: #64748b;
    font-size: 0.9rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-placement i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #94a3b8;
}

/* --- Marketplace Global Layouts (Blogs, Apps, Store) --- */
.marketplace-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.marketplace-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

@media (max-width: 992px) {
    .marketplace-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 95%;
    }

    .marketplace-sidebar {
        position: static;
        display: none;
        /* Hide sidebar ad on smaller screens to save height */
    }
}

/* =========================================
   Modern Homepage Sections (Merged)
   ========================================= */

/* Modern Homepage Sections */
.section-modern {
    padding: 100px 0;
    position: relative;
}

.apps-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.products-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 0.35;
    /* Adjusted for better text readability */
}

.products-section .container {
    position: relative;
    z-index: 2;
}



/* Section Headers */
.section-header-modern {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-description-modern {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.7;
}

.gradient-text-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Section CTA */
.section-cta-modern {
    text-align: center;
}

.btn-outline-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}


/* Responsive Design */

@media (max-width: 1024px) {
    .site-footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .section-modern {
        padding: 40px 0;
    }

    /* Smaller fonts for mobile */
    .promo-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-price,
    .product-price {
        font-size: 1rem;
    }
}

/* =========================================
   Masonry Bento Grid Layout (Featured Products)
   ========================================= */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.promo-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 250px;
}

.promo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.promo-item:hover::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    text-align: left;
}

.promo-large {
    grid-column: span 3;
    height: 380px;
}

.promo-small {
    grid-column: span 2;
    height: 280px;
}

.promo-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: white;
    text-transform: capitalize;
}

.promo-small .promo-title {
    font-size: 1.5rem;
}

.promo-shop-link {
    display: inline-block;
    padding: 10px 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid white;
    transition: all 0.3s ease;
}

.promo-shop-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .promo-large {
        grid-column: span 3;
        height: 300px;
    }

    .promo-small {
        grid-column: span 2;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .promo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        /* Tighter gap for small screens */
        padding: 0 10px;
    }

    .promo-item {
        padding: 15px;
        /* Smaller padding */
        min-height: auto;
    }

    .promo-large {
        grid-column: span 3;
        height: 180px;
    }

    .promo-small {
        grid-column: span 2;
        height: 120px;
    }

    .promo-title {
        font-size: 0.85rem !important;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .promo-tag {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }

    .promo-shop-link {
        font-size: 0.6rem;
        padding: 3px 0;
        border-bottom-width: 1px;
    }
}

/* =========================================
   Newspaper Style Layout (Blogs)
   ========================================= */

.newspaper-section {
    color: #2c2925;
    padding: 80px 0;
    font-family: 'Playfair Display', serif;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

.paper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1), inset 0 0 60px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e0d8;
    position: relative;
}

.paper-header {
    text-align: center;
    border-bottom: 3px double #2c2925;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #2c2925;
    border-bottom: 1px solid #2c2925;
    padding: 8px 0;
    margin: 15px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.paper-name {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.paper-subhead {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid #2c2925;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.headline-story {
    grid-column: 1 / 2;
    padding-right: 30px;
    border-right: 1px solid #e5e0d8;
}

.headline-large {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 20px;
    font-style: italic;
}

.main-image-wrap {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #2c2925;
    padding: 5px;
}

.sepia-img {
    width: 100%;
    height: auto;
    filter: sepia(30%) contrast(1.1);
    display: block;
    transition: filter 0.3s ease;
}

.sepia-img:hover {
    filter: sepia(0%) contrast(1);
}

.news-col-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
}

.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

.side-story {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-headline {
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 2px solid #2c2925;
    padding-bottom: 10px;
}

.news-box {
    border: 3px solid #2c2925;
    padding: 20px;
    background: #2c2925;
    color: #fdfbf7;
}

.news-box h4 {
    color: #fdfbf7;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-list a {
    color: #fdfbf7;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.news-list a:hover {
    text-decoration: underline;
}

.read-more-btn {
    display: inline-block;
    border: 1px solid #2c2925;
    padding: 10px 30px;
    text-decoration: none;
    color: #2c2925;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.read-more-btn:hover {
    background: #2c2925;
    color: #fdfbf7;
}

.weather-widget {
    text-align: center;
    border-top: 1px double #2c2925;
    border-bottom: 1px double #2c2925;
    padding: 10px 0;
    margin: 20px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .headline-story {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e5e0d8;
        padding-bottom: 30px;
    }

    .paper-name {
        font-size: 3rem;
    }
}

/* Partner Program & Dashboard Styles */
.earning-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}

.step-card {
    transition: transform 0.3s ease;
    display: flex;
    gap: 20px;
}

.step-card:hover {
    transform: translateX(10px);
}

.dashboard-table-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 992px) {
    .earning-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-table-container {
        padding: 15px;
        margin-top: 20px;
    }

    .dashboard-table td,
    .dashboard-table th {
        padding: 15px 12px;
        font-size: 0.85rem;
    }

    .section-header-modern h2 {
        font-size: 2.2rem;
    }

    .earning-grid .card {
        padding: 25px !important;
    }

    .earning-grid .card h3 {
        font-size: 1.4rem;
    }

    /* Stack stats on mobile */
    .earning-grid .card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .step-card {
        gap: 15px;
    }

    .step-card div:first-child {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo h1 {
        font-size: 1.4rem !important;
    }

    .section-header-modern h2 {
        font-size: 1.6rem;
    }

    .hero-design-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-design-subtitle {
        font-size: 1.2rem;
    }

    .hero-design-buttons {
        gap: 10px;
    }

    .btn-schedule,
    .btn-learn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Fix Bento Grid for 320px */
    .promo-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
    }

    .promo-large,
    .promo-small {
        grid-column: span 1 !important;
        height: 200px !important;
    }

    .promo-title {
        font-size: 1.3rem !important;
    }

    /* Search & Categories Fix for 320px */
    .search-container {
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .search-bar {
        padding: 12px 60px 12px 20px !important;
        font-size: 0.95rem !important;
    }

    .category-select {
        padding: 12px 35px 12px 15px !important;
        font-size: 0.9rem !important;
        min-width: 100% !important;
    }

    .search-icon-btn {
        width: 38px !important;
        height: 38px !important;
        right: 6px !important;
    }

    .site-footer {
        padding: 40px 0 20px !important;
    }

    .footer-grid {
        gap: 30px !important;
    }

    .footer-brand .logo-text {
        font-size: 1.5rem !important;
    }
}

.dashboard-table th {
    padding: 15px 20px;
    text-align: left;
    color: var(--gray);
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dark);
}

.worker-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.performance-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.stat-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}