/* =========================================
   ARTIFY EVENT PROTOTYPE
   MODERN DARK THEME
========================================= */

:root {
    --bg-dark: #07070a;
    --bg-darker: #0d0d12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f2;
    --text-muted: #9ba0ab;
    --accent: #ff2a70;
    --accent-hover: #ff4a88;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Clash Display', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

.accent-text {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--bg-darker);
}

.mb-4 {
    margin-bottom: 2rem;
}

/* =========================================
   Header & Nav
========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(7, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .bracket {
    color: var(--accent);
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
========================================= */
#hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: var(--accent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   Grid Layout Sections (The distinctive Artify layout)
========================================= */
.container-flex {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
}

.section-number {
    display: block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.separator-line {
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

/* =========================================
   Services Grid
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.2);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.card-text {
    padding: 30px 20px;
}

.card-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sub-category {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.short-line {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

/* =========================================
   How We Do It / Process
========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.process-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.process-item:hover {
    background: var(--bg-card-hover);
}

.process-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.process-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* =========================================
   Projects Section
========================================= */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: center;
}

.project-row:hover {
    background: var(--bg-card-hover);
    border-left: 4px solid var(--accent);
    padding-left: 26px;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--accent);
}

.project-meta i {
    margin-right: 5px;
    margin-left: 10px;
}

.project-meta i:first-child {
    margin-left: 0;
}

/* =========================================
   About Section
========================================= */
.quote-text {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 300;
    color: #fff;
}

.about-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    color: var(--text-muted);
}

.about-list li strong {
    color: #fff;
    margin-right: 10px;
}

.about-list li i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1rem;
}

/* =========================================
   Gallery
========================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* =========================================
   FAQ Section
========================================= */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: rgba(0,0,0,0.2);
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 500px; /* arbitrary large value for transition */
}

/* =========================================
   Contact Form
========================================= */
.form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Footer
========================================= */
.footer {
    background: #000;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 15px;
    max-width: 300px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* =========================================
   Animations & Reveals
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Chatbot Widget
========================================= */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-body);
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 42, 112, 0.4);
    transition: transform 0.3s ease;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-dark), #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--bg-darker);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.chatbot-title strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.online-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-left: 8px;
}

.chatbot-messages {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.02);
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-user-message {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.chatbot-input input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-family: inherit;
}

.chatbot-input button {
    background: transparent;
    border: none;
    color: var(--accent);
    padding: 0 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.chatbot-input button:hover {
    color: var(--accent-hover);
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .container-flex {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .separator-line {
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .project-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none; /* Handle mobile menu conceptually */
    }

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

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
