/* Fonts */
:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --color-bg: #0b0c15;
    --color-bg-darker: #050508;
    --color-primary: #6c5ce7;
    --color-secondary: #a29bfe;
    --color-accent: #00cec9;
    --color-text: #dfe6e9;
    --color-text-muted: #b2bec3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Logo */
.navbar-logo {
    height: 35px;
    margin-right: 10px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.section-padding {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(11, 12, 21, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(11, 12, 21, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    z-index: 1001;
}

.navbar-toggler {
    border: none;
    padding: 5px 10px;
    background: transparent;
    z-index: 1001;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 25px;
    height: 25px;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28108, 92, 231, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link {
    color: var(--color-text-muted) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.glow-btn {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Page Header (For subpages) */
.page-header {
    height: 60vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-darker));
}

/* Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: 50px;
    right: -50px;
}

.hero-img {
    border: 1px solid var(--glass-border);
}

/* Services Cards */
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    /* Ensure full height */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.icon-box i {
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

/* Team Cards */
.team-card {
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-overlay {
    background: linear-gradient(to top, rgba(11, 12, 21, 0.95), transparent);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

/* Contact Form */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.custom-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
}

.custom-input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
    color: white;
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: var(--color-bg-darker);
}

/* Hero Background Container */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-img {
    object-fit: cover;
    opacity: 0.15;
}

/* Service Image Container */
.service-image-container {
    height: 150px;
}

.service-image-container img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Team Stats Badge */
.team-stats-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem;
    margin: 1rem;
    border-radius: 0.75rem;
    width: 200px;
}

/* Client Logos */
.client-logo {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .display-3 {
        font-size: 3.5rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-section {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .page-header {
        height: 50vh;
        padding-top: 100px;
    }
    
    .display-3 {
        font-size: 2.8rem;
    }
    
    .display-5 {
        font-size: 2.2rem;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
        text-align: center;
    }
    
    .page-header {
        height: 40vh;
        padding-top: 70px;
        text-align: center;
    }
    
    .display-3 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .navbar {
        padding: 15px 0;
        background-color: rgba(11, 12, 21, 0.98);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        display: block !important;
        position: relative;
    }
    
    .navbar-collapse {
        background: rgba(11, 12, 21, 0.98);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 25px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
        max-height: 80vh;
        overflow-y: auto;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 999;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        margin: 10px 0;
        padding: 12px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
        font-size: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-link:hover {
        background-color: rgba(108, 92, 231, 0.15);
        transform: translateX(5px);
    }
    
    .nav-link.active {
        background-color: rgba(108, 92, 231, 0.2);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px;
        min-width: 120px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-outline-light {
        width: 100%;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .service-card,
    .testimonial-card,
    .feature-card {
        margin-bottom: 25px;
        padding: 25px !important;
    }
    
    .hero-img {
        margin-bottom: 30px;
        max-width: 100%;
        height: auto;
    }
    
    .shape-1,
    .shape-2 {
        width: 150px;
        height: 150px;
        opacity: 0.3;
    }
    
    .icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .icon-box i {
        font-size: 1.5rem;
    }
    
    .text-center.text-lg-start {
        text-align: center !important;
    }
    
    .text-center.text-lg-end {
        text-align: center !important;
    }
    
    .ps-lg-5 {
        padding-left: 0 !important;
        padding-top: 2rem;
    }
    
    .mb-5.mb-lg-0 {
        margin-bottom: 2rem !important;
    }
    
    .service-card img,
    .testimonial-card img,
    .feature-card img {
        height: 150px !important;
        object-fit: cover;
    }
    
    .testimonial-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-card img {
        margin-bottom: 10px;
    }
    
    .letter-spacing-2 {
        letter-spacing: 1px;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .row.g-4 {
        gap: 1.5rem;
    }
    
    .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .page-header {
        height: 35vh;
        padding-top: 60px;
    }
    
    .display-3 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
        margin: 3px;
        min-width: 100px;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 0.95rem;
        min-width: 120px;
    }
    
    .service-card img,
    .testimonial-card img,
    .feature-card img {
        height: 120px !important;
    }
    
    .hero-img {
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .shape-1,
    .shape-2 {
        width: 120px;
        height: 120px;
        opacity: 0.25;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .icon-box i {
        font-size: 1.2rem;
    }
    
    .letter-spacing-2 {
        letter-spacing: 0.5px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .service-card,
    .testimonial-card,
    .feature-card {
        padding: 20px !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .display-3 {
        font-size: 1.6rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .service-card,
    .testimonial-card,
    .feature-card {
        padding: 20px !important;
    }
    
    .testimonial-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-card img {
        margin-bottom: 15px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .service-card img,
    .testimonial-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .testimonial-card:hover,
    .feature-card:hover,
    .team-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    }
    
    .nav-link:hover {
        color: var(--color-accent) !important;
        background-color: transparent;
    }
}

/* Additional mobile optimizations */
@media (max-width: 767.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .order-lg-2 {
        order: -1;
    }
    
    .navbar.scrolled {
        background-color: rgba(11, 12, 21, 0.98);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    .pulse-animation {
        display: none;
    }
}