/* 
 * aivideogenerator.love - AI Video Generator Website Styles
 * Unique red-orange gradient theme with mobile-first responsive design
 */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #ff3366;
    --secondary-color: #ff9933;
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-color: #111111;
    --text-color: #333333;
    --light-text: #ffffff;
    --muted-text: #888888;
    --light-bg: #f8f8f8;
    --dark-bg: #222222;
    --card-bg: #ffffff;
    --border-color: #dddddd;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;
    
    /* Borders & Shadows */
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(255, 51, 102, 0.2);
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 700;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.accent-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-heading {
    text-align: center;
    margin-bottom: 5rem;
}

.section-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted-text);
    font-size: 1.8rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
    color: var(--light-text);
}

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

.btn-secondary:hover {
    background: rgba(255, 51, 102, 0.05);
    transform: translateY(-3px);
}

.btn-cta {
    background: #fff;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo span {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-color);
}

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

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.6rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

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

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 5rem;
}

.nav-cta:hover {
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 18rem 0 12rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 2.5rem;
}

.hero-text p {
    font-size: 1.8rem;
    color: var(--muted-text);
    margin-bottom: 4rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

.hero-svg {
    max-width: 100%;
    height: auto;
}

.hero-svg .play-circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.hero-svg .ai-connection {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 3s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-svg .ai-node {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.hero-svg .video-frame {
    animation: fade 1.5s infinite alternate;
}

@keyframes fade {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.8;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.step-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 4rem 3rem 3rem;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-weight: 700;
    font-size: 2rem;
}

.step-content {
    text-align: center;
}

.step-icon {
    margin: 0 auto 2rem;
}

.section-cta {
    text-align: center;
    margin-top: 5rem;
}

/* ===== EXAMPLES SECTION ===== */
.examples-section {
    padding: var(--section-padding);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.example-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.example-preview {
    position: relative;
    overflow: hidden;
}

.example-svg {
    width: 100%;
    height: auto;
    display: block;
}

.example-details {
    padding: 2rem;
}

.example-details h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.examples-note {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.examples-note p {
    margin-bottom: 2rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

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

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-question {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.8rem;
    flex: 1;
}

.faq-toggle {
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

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

.faq-answer p {
    padding: 0 2rem 2rem;
    margin: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 2rem;
}

.cta-section p {
    font-size: 2rem;
    margin-bottom: 4rem;
}

.cta-section .accent-text {
    color: #fff;
    position: relative;
}

.cta-section .accent-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 8rem 0 2rem;
    background-color: var(--dark-bg);
    color: #aaa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo span {
    color: var(--light-text);
    font-weight: 600;
    font-size: 2rem;
}

.footer-tagline {
    font-size: 1.4rem;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-links-column h4 {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 1rem;
}

.footer-links-column a {
    color: #aaa;
    transition: var(--transition-fast);
    font-size: 1.4rem;
}

.footer-links-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--light-text);
        z-index: 1001;
        transition: var(--transition-fast);
        padding-top: 8rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 3rem;
        gap: 2rem;
    }
    
    .nav-cta {
        display: inline-block;
        margin-top: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text,
    .hero-visual {
        flex: none;
        width: 100%;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 5rem;
    }
    
    .hero-text p {
        margin: 0 auto 4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .section-heading {
        margin-bottom: 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .features-grid,
    .steps-container,
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading p {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
    }
}
