:root {
    --bg-dark: #050505;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --primary: #8a2be2;
    --secondary: #00ffcc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated Gradient Background */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15), rgba(0, 255, 204, 0.05), transparent 60%);
    animation: rotateGradient 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography */
h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; }

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.section-padding { padding: 6rem 10%; }
.mt-4 { margin-top: 2rem; }

/* Glassmorphism */
.glass-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), #b055ff);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-play {
    background: transparent;
    color: var(--text-main);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.play-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    transition: all 0.3s;
}

.btn-play:hover .play-icon {
    background: var(--secondary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-cta { display: flex; align-items: center; margin-top: 2rem; }

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

/* Portfolio Section */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--glass-bg);
    color: var(--text-main);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--secondary);
}

.portfolio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.portfolio-info { padding: 1.5rem; }
.portfolio-info h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(138, 43, 226, 0.2);
    color: #d1a3ff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; scale: 0.95; }
    to { opacity: 1; scale: 1; }
}

/* Estimator */
.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.estimator-result {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.total-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
}

/* Form Wizard */
.wizard-container { max-width: 800px; margin: 0 auto; }
.progress-bar {
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 33.33%;
    background: var(--secondary);
    transition: width 0.4s ease;
}

.wizard-step { display: none; animation: fadeIn 0.5s; }
.wizard-step.active { display: block; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.success-icon {
    width: 80px; height: 80px;
    background: var(--secondary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}
#stepSuccess { text-align: center; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover { color: #fff; }

.video-modal {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #111, #222);
}

.play-pulse {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

.cs-body { margin-top: 2rem; display: grid; gap: 1.5rem; }
.cs-section h3 { color: var(--secondary); margin-bottom: 0.5rem; font-size: 1.2rem; }

/* Admin CRM Styles */
.crm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.crm-table th, .crm-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.crm-table th { color: var(--text-muted); font-weight: 600; }
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
}
.status-new { background: rgba(0, 255, 204, 0.2); color: var(--secondary); }

.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.kpi-card { text-align: center; padding: 2rem; }
.kpi-value { font-size: 3rem; font-weight: 800; margin: 0.5rem 0; }

.cms-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

@media (max-width: 768px) {
    .estimator-grid, .cms-form .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    h1 { font-size: 2.5rem; }
    .section-padding { padding: 4rem 5%; }
    .glass-header { padding: 1rem 5%; }
    .table-container { overflow-x: auto; }
}

/* Client Logos */
.clients-section { text-align: center; padding: 3rem 0; border-bottom: 1px solid var(--glass-border); }
.clients-title { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.clients-logos { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; opacity: 0.7; }
.logo-badge { font-weight: 800; font-size: 1.2rem; color: var(--text-light); filter: grayscale(100%); transition: filter 0.3s, transform 0.3s; }
.logo-badge:hover { filter: grayscale(0%); transform: scale(1.05); color: var(--secondary); }

/* Portfolio Item Overrides */
.portfolio-item { cursor: pointer; position: relative; overflow: hidden; border-radius: 12px; transition: transform 0.3s; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-img { position: relative; height: 250px; width: 100%; transition: transform 0.5s; background-size: cover; background-position: center; }
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 10, 10, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Team Section */
.team-section h2 { text-align: center; margin-bottom: 3rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.team-member { text-align: center; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 15px; padding: 2rem; transition: transform 0.3s; }
.team-member:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); }
.team-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 2px solid var(--primary); }
.team-member h3 { margin-bottom: 0.5rem; }
.team-member p { color: var(--text-muted); }

/* Testimonials Section */
.testimonials-section { max-width: 1000px; margin: 4rem auto; text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.testimonial-card { background: rgba(0,0,0,0.3); padding: 2rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.testimonial-card .quote { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card .author { color: var(--secondary); font-weight: 600; }

/* Footer Improvements */
.glass-footer { background: var(--glass-bg); backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); padding: 4rem 2rem 2rem; margin-top: 5rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; color: var(--text-light); }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-bottom { text-align: center; padding-top: 3rem; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3rem; }
