/* ============================================================================
   DROPSHIP ACADEMY - CUSTOM CSS
   Mobile-First Responsive Design without External Libraries
   ============================================================================ */

/* ============================================================================
   1. RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ============================================================================
   2. TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================================================
   3. BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #00b34d;
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-primary-dark);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 220px;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* ============================================================================
   4. HEADER STYLES
   ============================================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/*Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Social Icons */
.social-icons {
    display: none;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--color-light-bg);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 20px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    animation: slideDown var(--transition-normal) ease-out;
}

.mobile-nav.active {
    display: block;
}

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

.mobile-nav-list {
    list-style: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

[data-theme="dark"] .mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link.btn {
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================================================
   5. HERO SECTION STYLES
   ============================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    z-index: 1;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-cta-group .btn {
    width: 100%;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-proof-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.social-proof-text {
    font-size: 0.95rem;
    color: var(--color-text);
}

.social-proof-text strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.hero-image {
    display: none;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   6. BENEFITS SECTION STYLES
   ============================================================================ */

.benefits {
    padding: 3rem 1rem;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

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

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    flex-shrink: 0;
}

.benefit-card:nth-child(1) .benefit-icon {
    background: linear-gradient(135deg, var(--color-primary), #0099ff);
}

.benefit-card:nth-child(2) .benefit-icon {
    background: linear-gradient(135deg, var(--color-secondary), #00ff99);
}

.benefit-card:nth-child(3) .benefit-icon {
    background: linear-gradient(135deg, var(--color-accent), #ffb84d);
}

.benefit-card:nth-child(4) .benefit-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.benefit-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0;
}

/* ============================================================================
   7. PRODUCTS SECTION STYLES
   ============================================================================ */

.products {
    padding: 3rem 1rem;
    background-color: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
}

.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.product-card:nth-child(7) {
    animation-delay: 0.35s;
}

.product-card:nth-child(8) {
    animation-delay: 0.4s;
}

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

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background-color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    opacity: 0.85;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-profit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 0.5rem 0;
}

.profit-label {
    font-size: 0.85rem;
    color: var(--color-text);
    opacity: 0.7;
    font-weight: 500;
}

.profit-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.products-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.products-note {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================================
   8. HOW IT WORKS SECTION STYLES
   ============================================================================ */

.how-it-works {
    padding: 3rem 1rem;
    background-color: var(--color-bg);
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.timeline-step:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-step:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-step:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-step:nth-child(4) {
    animation-delay: 0.4s;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .step-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0;
}

.how-it-works-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ============================================================================
   9. CONTAINER & UTILITY CLASSES
   ============================================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================================
   10. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .header-container {
        padding: 1rem 2rem;
    }

    .desktop-nav {
        display: flex;
    }

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

    .mobile-nav {
        display: none !important;
    }

    .social-icons {
        display: flex;
    }

    .btn-primary {
        min-width: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero {
        min-height: 80vh;
        padding: 3rem 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta-group {
        flex-direction: row;
    }

    .hero-cta-group .btn {
        width: auto;
    }

    .hero-image {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .benefits {
        padding: 4rem 2rem;
    }

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

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

    .products {
        padding: 4rem 2rem;
    }

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

    .product-image {
        height: 250px;
    }

    .how-it-works {
        padding: 4rem 2rem;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .timeline-step {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .header-container {
        padding: 1rem 3rem;
    }

    .nav-list {
        gap: 2.5rem;
    }

    .header-controls {
        gap: 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero {
        min-height: 90vh;
        padding: 4rem 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 700px;
    }

    .hero-container {
        gap: 3rem;
    }

    .benefits {
        padding: 5rem 3rem;
    }

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

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .benefit-card {
        padding: 2rem;
    }

    .products {
        padding: 5rem 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        height: 280px;
    }

    .product-content {
        padding: 1.75rem;
    }

    .how-it-works {
        padding: 5rem 3rem;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-step {
        grid-template-columns: auto 1fr;
        gap: 2.5rem;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* ============================================================================
   11. ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
