/* 
   Qubesolve Innovations Landing Page Styles
   Primary Color: #F14B0E
*/

/* Theme Variables */
:root {
    /* Common colors */
    --primary-color: #F14B0E;
    --primary-light: #ff6a3c;
    --primary-dark: #d13700;
    --transition: all 0.3s ease;

    --white: #ffffff;
    --black: #000000;
    
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #777777;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
    --nav-bg: #ffffff;
    --footer-bg: #2A2A2A;
    --footer-text: #e0e0e0;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
    --card-bg: #2a2a2a;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.4);
    --nav-bg: #1a1a1a;
    --footer-bg: #121212;
    --footer-text: #b3b3b3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-text i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 200px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 400;
    position: relative;
}

.nav-menu a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:not(.btn-contact):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: var(--bg-primary);
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f14b0e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--bg-primary-rgb), 0.97) 0%,
        rgba(var(--bg-primary-rgb), 0.93) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-caption {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 40px;
}

.hero-caption::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    opacity: 0.2;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: translate(-5px, -5px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dark theme adjustments */
[data-theme="dark"] .hero {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f14b0e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(135deg, 
        rgba(var(--bg-primary-rgb), 0.95) 0%,
        rgba(var(--bg-primary-rgb), 0.92) 100%
    );
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
    }

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

    .hero-content {
        max-width: 100%;
    }

    .hero-caption {
        padding-left: 0;
    }

    .hero-caption::before {
        display: none;
    }

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

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-caption {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 100px 0 40px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}

/* Clients Section */
.clients {
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

.clients h3 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-item {
    padding: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--bg-secondary);
}

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

.benefit-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.benefit-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

/* Services Section */
.services h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.service-category {
    display: flex;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.service-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    margin-right: 2rem;
    line-height: 1;
}

.service-details {
    flex: 1;
}

.service-details h3 {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.service-item {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
}

.service-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Dark mode adjustments */
[data-theme="dark"] .project-card {
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.25rem;
    }

    .tech-stack span {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.team h2 {
    text-align: center;
    margin-bottom: 60px;
}

.team-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.team-content {
    padding: 20px;
}

.team-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
}

.team-content h3 span {
    color: var(--primary-color);
}

.team-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-content .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.team-content .btn-text:hover {
    gap: 15px;
}

/* Dark mode adjustments */
[data-theme="dark"] .team-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .team-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .team-content {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }

    .team-content h3 {
        font-size: 1.75rem;
    }

    .team-content p {
        font-size: 1rem;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-secondary);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: none;
}

.testimonial-card.active {
    display: block;
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.client-info h4 {
    margin-bottom: 0.2rem;
}

.client-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.quote::before, .quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.quote::before {
    left: 0;
    top: -10px;
}

.quote::after {
    right: 0;
    bottom: -20px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: none;
    box-shadow: var(--shadow);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Honeypot field - hidden from users but accessible to screen readers */
.hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

.hidden label {
    display: none !important;
}

.hidden input {
    display: none !important;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(241, 75, 14, 0.2);
}

.form-status {
    margin-top: 20px;
}

.form-success {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    grid-column: 1 / -1;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    border-left: 4px solid #00a085;
    position: relative;
    overflow: hidden;
}

.form-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.form-success p {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.form-success i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .form-success {
    background: linear-gradient(135deg, #00a085, #008f75);
    box-shadow: 0 4px 15px rgba(0, 160, 133, 0.4);
    border-left: 4px solid #008f75;
}

.form-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    grid-column: 1 / -1;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border-left: 4px solid #d63031;
    position: relative;
    overflow: hidden;
}

.form-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.form-error p {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.form-error i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

[data-theme="dark"] .form-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    border-left: 4px solid #a93226;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments for form status */
[data-theme="dark"] .form-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
}

[data-theme="dark"] .form-success p {
    color: #ecf0f1;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-img {
    width: 300px;
}

.footer-logo p {
    color: var(--footer-text);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

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

.link-group ul li a {
    color: var(--footer-text);
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--footer-text);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--footer-text);
    margin-left: 1.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* Mobile-First Responsive Design */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container, .team-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .service-category {
        flex-direction: column;
    }
    
    .service-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* Navigation Mobile Fixes */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        width: 150px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: var(--shadow-strong);
    }
    
    .nav-menu.active {
        left: 0;
        background-color: var(--bg-primary);
        box-shadow: none;
    }
    
    [data-theme="dark"] .nav-menu.active {
        background-color: var(--bg-primary);
    }
    
    /* Add overlay when menu is active */
    .menu-toggle.active + .nav-menu::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }
    
    .nav-menu a:not(.btn-contact)::after {
        display: none;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 8rem 0 3rem;
        margin-top: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Container Mobile */
    .container {
        width: 95%;
        padding: 0 1rem;
    }
    
    /* Sections Mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Cards Mobile */
    .benefit-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    /* Footer Mobile */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-icons {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .social-icons a:first-child {
        margin-left: 0;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Process Steps Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps::before,
    .process-steps::after {
        display: none;
    }
    
    .step-item {
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-icon {
        margin: 0 auto 1rem;
    }
    
    /* Legal Pages Mobile */
    .legal-nav {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-primary);
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .legal-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-nav a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Theme Toggle Mobile */
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    /* Extra Small Mobile */
    .container {
        width: 100%;
        padding: 0 0.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 7rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .logo-img {
        width: 120px;
    }
    
    /* Buttons Mobile */
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards Extra Small */
    .benefit-card {
        padding: 1rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    /* Contact Form Extra Small */
    .contact-form {
        padding: 0 0.5rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Process Steps Extra Small */
    .step-item {
        padding: 1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    .step-number {
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    /* Legal Pages Extra Small */
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
    
    .legal-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Footer Extra Small */
    .footer-top {
        padding: 2rem 0;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-links a {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
}

/* Landscape Mobile Fixes */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .nav-menu {
        padding: 2rem 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* High DPI Mobile Screens */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-menu a:hover {
        transform: none;
    }
    
    .benefit-card:hover,
    .service-item:hover,
    .project-card:hover {
        transform: none;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.5rem;
}

/* Sub Footer Styles */
.sub-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-weight: 300;
}

.legal-links a {
    color: var(--footer-text);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.7;
}

.legal-links a i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--footer-text);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.03);
}

.legal-links a:hover i {
    opacity: 0.8;
}

/* Dark theme adjustments for sub-footer */
[data-theme="dark"] .sub-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Process Section Styles */
.process {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Gradient lines for desktop */
@media screen and (min-width: 993px) {
    .process-steps::before {
        content: '';
        position: absolute;
        top: 100px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        opacity: 0.3;
        z-index: 1;
    }

    .process-steps::after {
        content: '';
        position: absolute;
        top: 100px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        opacity: 0.3;
        z-index: 1;
        transform: translateY(350px);
    }
}

/* Responsive adjustments for process section */
@media screen and (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 576px) {
    .process {
        padding: 40px 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-item {
        min-height: auto;
        padding: 30px 20px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .step-icon i {
        font-size: 1.5rem;
    }

    .step-number {
        font-size: 1rem;
        width: 25px;
        height: 25px;
        top: 10px;
        right: 10px;
    }

    .step-item h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .step-item p {
        font-size: 0.9rem;
    }
}

.step-item {
    background: var(--card-bg);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    border: 1px solid var(--border-color);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(241, 75, 14, 0.3);
}

.step-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(241, 75, 14, 0.4);
}

.step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 15px;
    right: 15px;
    line-height: 1;
    background: var(--bg-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.step-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.step-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Dark theme adjustments */
[data-theme="dark"] .step-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .step-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

[data-theme="dark"] .step-number {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

[data-theme="dark"] .process-steps::before {
    opacity: 0.2;
}

/* Legal Pages Styles */
.legal-content {
    padding: 120px 0 60px;
    min-height: calc(100vh - 400px);
}

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

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-header h1 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.last-updated i {
    margin-right: 0.5rem;
}

.policy-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.legal-nav {
    position: sticky;
    top: 80px;
    background: var(--bg-primary);
    padding: 1rem 0;
    margin-bottom: 2rem;
    z-index: 90;
    border-bottom: 1px solid var(--border-color);
}

.legal-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-nav a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.legal-nav a:hover {
    background: var(--bg-secondary);
}

.legal-sections {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-section h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.subsection {
    margin-top: 2rem;
}

.subsection h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.subsection h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.subsection ul {
    list-style: none;
    padding-left: 1.5rem;
}

.subsection ul li {
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-secondary);
}

.subsection ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

/* Mobile Responsive Adjustments for Legal Pages */
@media screen and (max-width: 768px) {
    .legal-content {
        padding: 100px 0 40px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-nav {
        top: 60px;
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-nav ul {
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .legal-nav::-webkit-scrollbar {
        height: 3px;
    }

    .legal-nav::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

    .legal-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .subsection h3 {
        font-size: 1.2rem;
    }

    .policy-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 576px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .legal-section {
        padding: 1.25rem;
    }

    .contact-info {
        padding: 1rem;
    }
}
