/* ================================================
   1. CSS Variables (Custom Properties)
   ================================================ */
:root {
    --font-primary: 'Poppins', sans-serif;
    
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-hero-bg: #0c0a1a;
    --color-dark-bg1: #11111b;
    --color-dark-bg2: #16213e;
    
    --color-text-light: #ffffff;
    --color-text-medium: #cccccc;
    --color-text-dark: #888888;
    
    --color-accent-gold1: #ffd700;
    --color-accent-gold2: #fca311;

    --color-whatsapp-1: #25d366;
    --color-whatsapp-2: #128C7E;
}

/* ================================================
   2. Base & Reset Styles
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-light);
    background: var(--color-hero-bg);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   3. Reusable Components (Buttons, Titles, etc.)
   ================================================ */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem; 
    color: var(--color-text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--color-whatsapp-1), var(--color-whatsapp-2));
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-whatsapp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp.large {
    font-size: 1.2rem;
    padding: 18px 38px;
}
.btn-whatsapp.small {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    gap: 8px;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
    background-color: rgba(12, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a {
    color: var(--color-text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.header-nav a:not(.btn-whatsapp):hover { color: var(--color-primary); }
.mobile-nav-toggle { display: none; }


/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-hero-bg);
}
.hero-animated-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 150vmax; height: 150vmax;
    background: radial-gradient(circle, #6a5acd 0%, #3a2d80 30%, #0c0a1a 65%);
    transform: translate(-50%, -50%);
    animation: slowSpin 30s linear infinite;
    opacity: 0.6;
}
@keyframes slowSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-container {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.hero-content { max-width: 55%; text-align: left; }
.hero-headline {
    font-size: 4.5rem; font-weight: 700;
    line-height: 1.1; color: var(--color-text-light); margin-bottom: 1.5rem;
}
.hero-headline span {
    display: block; opacity: 0;
    transform: translateY(30px); animation: textFadeUp 0.8s ease forwards;
}
.hero-headline span:nth-child(2) {
    background: linear-gradient(90deg, var(--color-accent-gold1), var(--color-accent-gold2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation-delay: 0.3s;
}
@keyframes textFadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-tagline {
    font-size: 1.2rem; color: var(--color-text-medium);
    margin-bottom: 2.5rem; max-width: 500px;
    opacity: 0; transform: translateY(20px); animation: textFadeUp 0.8s ease 0.6s forwards;
}
.hero-content .btn-whatsapp { opacity: 0; animation: textFadeUp 0.8s ease 0.9s forwards; }
.hero-visual {
    position: relative; width: 400px; height: 400px;
    display: flex; align-items: center; justify-content: center;
}
.hero-visual .shape {
    position: absolute; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0.3;
}
.shape-1 { width: 100%; height: 100%; animation: float 15s ease-in-out infinite; }
.shape-2 {
    width: 70%; height: 70%;
    background: linear-gradient(135deg, var(--color-accent-gold1), var(--color-accent-gold2));
    animation: float 12s ease-in-out infinite reverse;
}
.shape-3 { width: 150px; height: 150px; background: white; opacity: 0.8; filter: blur(80px); }
@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-hero-bg) 0%, var(--color-dark-bg1) 100%);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.service-card {
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 2.5rem 2rem;
    text-align: center; backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.2);
}
.service-icon {
    font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h4 {
    font-size: 1.4rem; margin-bottom: 1rem;
    color: var(--color-text-light); font-weight: 600;
}
.service-card p { color: var(--color-text-medium); line-height: 1.7; }

/* ================================================
   7. AI Logo Image Generator Section (CORRECTED & FINAL)
   ================================================ */
.ai-generator-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-dark-bg1) 0%, var(--color-dark-bg2) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    max-width: 600px;
    margin: -3rem auto 2.5rem;
    color: var(--color-text-medium);
    font-size: 1.1rem;
}

.ai-input-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    align-items: flex-end; /* Aligns button and inputs nicely */
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
}

/* Ye CSS direct input fields ko target karega taake unka size theek ho */
.ai-input-container input[type="text"] {
    flex: 1; /* Makes the input fields take up available space */
    min-width: 250px; /* Prevents them from getting too small */
    width: 100%; /* Ensures it fills the parent if wrapped */
    padding: 18px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-input-container input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Optional: If you still have .ai-input-group wrappers, you can keep this for labels */
.ai-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1; /* For proper spacing */
    min-width: 250px; /* Ensure it matches input min-width */
}

.ai-input-group label {
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-medium);
    opacity: 0.8;
}

#generate-logo-btn {
    white-space: nowrap;
    padding: 18px 30px;
    height: 62px; /* Match the height of the input boxes for perfect alignment */
}

#ai-result-container {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

#logo-canvas-container {
    max-width: 512px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.generated-logo-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.error{color:#ff8a8a;font-size:1.1rem;}
.success-message{color:#a5d6a7;font-size:1.1rem;}

/* --- EYE-CATCHING GENERATING VIEW STYLES --- */
.generating-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}
.generating-dots {
    display: flex;
    gap: 1rem;
}
.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--color-primary);
    animation: pulse 1.5s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.generating-text {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    transition: opacity 0.5s ease;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .ai-input-container {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
    }
    .ai-input-container input[type="text"] {
        min-width: unset; /* Remove min-width on small screens */
    }
    #generate-logo-btn {
        width: 100%; /* Make button full width on small screens */
        height: auto;
    }
    .ai-input-group {
        width: 100%;
        min-width: unset;
    }
    .ai-input-group label {
        text-align: center;
        margin-left: 0;
    }
}


/* ================================================
   ALL OTHER SECTIONS
   ================================================ */
.trust-section, .video-section, .portfolio-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-dark-bg1) 0%, var(--color-dark-bg2) 100%);
}
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; padding: 2rem; }
.trust-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1rem; }
.trust-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.trust-item p { color: var(--color-text-medium); font-size: 0.9rem; }

.video-container { max-width: 800px; margin: 0 auto; }
.video-placeholder {
    aspect-ratio: 16 / 9;
    background-color: rgba(30, 30, 50, 0.4);
    background-image: url('https://placehold.co/800x450/16213e/cccccc?text=Your+Video+Thumbnail');
    background-size: cover; background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 2rem; cursor: pointer;
    transition: transform 0.4s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.video-placeholder::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 10, 26, 0.5); transition: background 0.4s ease;
}
.video-placeholder:hover { transform: scale(1.03); }
.video-placeholder:hover::before { background: rgba(12, 10, 26, 0.2); }
.video-play-icon {
    font-size: 5rem; color: var(--color-text-light);
    background: rgba(102, 126, 234, 0.5);
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 1; margin-bottom: 1rem;
}
.video-placeholder:hover .video-play-icon {
    transform: scale(1.1); background: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary);
}
.video-title, .video-subtitle { z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.video-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.video-subtitle { color: var(--color-text-medium); }

.portfolio-slider { position: relative; max-width: 800px; margin: 0 auto 3rem; height: 400px; overflow: hidden; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.portfolio-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; }
.portfolio-item.active { opacity: 1; }
.portfolio-mockup { position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: var(--color-text-light); font-size: 1.5rem; font-weight: 600; }
.portfolio-mockup:hover .portfolio-overlay { opacity: 1; }
.portfolio-nav { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.nav-btn { background: rgba(255, 255, 255, 0.1); border: none; color: var(--color-text-light); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.nav-btn:hover { background: var(--color-primary); transform: scale(1.1); }
.portfolio-indicators { display: flex; gap: 10px; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s ease; }
.indicator.active { background: var(--color-primary); transform: scale(1.2); }

.cta-section { padding: 100px 0; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); text-align: center; }
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 2.5rem; line-height: 1.3; }

.footer { background: var(--color-hero-bg); padding: 60px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 2rem; }
.footer-brand h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--color-text-medium); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--color-text-medium); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: var(--color-text-dark); }


/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; text-align: center; order: 2; }
    .hero-visual { order: 1; margin-bottom: 2rem; width: 300px; height: 300px; }
    .hero-headline { font-size: 3rem; }
    .hero-tagline { margin: 0 auto 2.5rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .cta-title { font-size: 1.8rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .header-nav {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--color-hero-bg);
        flex-direction: column; justify-content: center;
        gap: 2rem; font-size: 1.5rem;
        transition: right 0.5s ease-in-out;
    }
    .header-nav.is-active { right: 0; }
    .mobile-nav-toggle {
        display: block; position: relative; z-index: 1001;
        width: 30px; height: 21px; cursor: pointer;
        border: none; background: transparent; padding: 0;
    }
    .mobile-nav-toggle .bar {
        width: 100%; height: 3px; background: var(--color-text-light);
        border-radius: 3px; position: absolute;
        transition: all 0.4s ease-in-out;
    }
    .bar:nth-child(1) { top: 0; }
    .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .bar:nth-child(3) { bottom: 0; }
    .mobile-nav-toggle.is-active .bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .mobile-nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.is-active .bar:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }
    .ai-input-area { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.5rem; }
    .hero-visual { width: 250px; height: 250px; }
    .section-title { font-size: 1.8rem; }
    .cta-title { font-size: 1.4rem; }
    .btn-whatsapp { padding: 12px 24px; font-size: 1rem; }
}


