/* 
 * Color Scheme & Variables
 * Theme: Dark Neon
 */
:root {
    --bg-primary: #0f172a;
    /* Slate 900 */
    --bg-secondary: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --accent: #10b981;
    /* Emerald 500 */
    --danger: #ef4444;
    /* Red 500 */

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    /* 2xl radius requirement */
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    --container-width: 1200px;
    --header-height: 80px;

    --transition-base: all 0.3s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

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

.btn--outline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.btn--sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-link,
.link-btn {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition-base);
    display: inline;
    padding: 0;
    font-size: inherit;
}

.modal-link:hover,
.link-btn:hover {
    color: var(--accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo__icon {
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    padding: 2px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transition: var(--transition-base);
}

.logo:hover .logo__icon {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    transform: rotate(15deg);
}

.logo__text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav__link:hover {
    color: white;
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    padding: 5px;
    z-index: 1001;
}

.burger__line {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition-base);
    transform-origin: center;
}

/* Burger Animation to 'X' */
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-base);
        z-index: 1000;
    }

    .nav.nav--active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero__subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero__note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    transform: rotate(-2deg);
    transition: var(--transition-base);
}

.glass-card:hover {
    transform: rotate(0) translateY(-5px);
}

.chart-placeholder {
    margin-top: 1.5rem;
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chart-placeholder .bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.8;
    transition: height 1s ease;
}

.chart-placeholder .bar:nth-child(even) {
    background: var(--accent);
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--primary));
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Services Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.masonry-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.item-large {
    grid-column: span 1;
    grid-row: span 2;
}

@media (min-width: 1024px) {
    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-tall {
        grid-row: span 2;
    }
}

.service-card {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.service-card--accent {
    background: var(--primary);
    color: white;
}

.service-card--accent:hover {
    background: var(--primary-hover);
}

.service-card--accent p {
    color: rgba(255, 255, 255, 0.9);
}

.text-link {
    display: inline-block;
    color: var(--accent);
    margin-top: 1rem;
    font-weight: 600;
}

/* Reviews */
.reviews__slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 1rem 3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews__slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 350px;
    flex: 0 0 350px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
}

@media (max-width: 480px) {
    .review-card {
        min-width: 280px;
        flex: 0 0 280px;
        padding: 2rem 1.5rem;
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transition: var(--transition-base);
}

.review-card:hover .review-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.review-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: white;
}

.review-info p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.review-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__list {
    margin-top: 2rem;
}

.contact__list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

.contact__form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input {
    width: auto;
}

/* CTA Section */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__container {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.cta__title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta__text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Footer */
.footer {
    background: #0b1120;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__col h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer__col ul li {
    margin-bottom: 0.8rem;
}

.footer__col a,
.footer-link {
    color: var(--text-secondary);
    transition: var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.footer__col a:hover,
.footer-link:hover {
    color: var(--primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-secondary);
    line-height: 1;
    transition: var(--transition-base);
    z-index: 10;
}

.modal__close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}



/* Responsive adjustments */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        width: 92%;
    }

    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        margin: 0 auto 2rem;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .masonry-grid {
        grid-auto-rows: auto;
    }

    .masonry-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta__title {
        font-size: 2.2rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

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

    .cta__title {
        font-size: 1.8rem;
    }

    .logo__text {
        font-size: 1.2rem;
    }
}

/* Page Content */
.page-content {
    padding: 120px 0 60px;
    min-height: 60vh;
}

.page-content h1 {
    margin-bottom: 30px;
}

.content-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-size: 1.5rem;
}

.content-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.25rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .page-content {
        padding: 100px 0 40px;
    }
}