/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

/* Roboto Font */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* Montserrat Font */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    --primary-color: #8226BF;
    --secondary-color: #020659;
    --accent-color: #434573;
    --dark-color: #1F2223;
    --medium-dark: #303436;
    --light-color: #f5f5f5;
    --text-color: #1F2223;
    --white: #ffffff;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(130, 38, 191, 0.1);
    --shadow-hover: 0 10px 30px rgba(130, 38, 191, 0.2);
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --bg-color: #1F2223;
    --card-bg: #303436;
    --light-color: #434573;
    --dark-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--primary-color);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    outline: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo:focus {
    outline: none;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(130, 38, 191, 0.05);
}

.nav-menu a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 8px rgba(130, 38, 191, 0.3);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(180deg) scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    transition: var(--transition);
}

.footer-bottom .theme-toggle {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(130, 38, 191, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(2, 6, 89, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #6b1fa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(130, 38, 191, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--light-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Services Overview */
.services-overview {
    background: var(--light-color);
    transition: background-color 0.3s ease;
}

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

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 38, 191, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 15px 40px rgba(130, 38, 191, 0.3);
    border-top: 4px solid var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(130, 38, 191, 0.3);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 30px rgba(130, 38, 191, 0.6);
}

.service-card h3 {
    transition: color 0.3s ease, transform 0.3s ease;
    margin-bottom: 15px;
}

.service-card:hover h3 {
    color: var(--primary-color);
    transform: scale(1.05);
}

.service-card p {
    transition: transform 0.3s ease;
    flex-grow: 1;
}

.service-card:hover p {
    transform: translateY(5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 15px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 10px 0;
    color: var(--text-color);
}

.features-list i {
    color: var(--primary-color);
    margin-left: 10px;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--medium-dark), var(--dark-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(130, 38, 191, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: #f5f5f5;
    color: #1F2223;
    padding: 60px 0 20px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .footer {
    background: #1F2223;
    color: #ffffff;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(31, 34, 35, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="dark"] .footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(31, 34, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(130, 38, 191, 0.4);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(31, 34, 35, 0.1);
    color: rgba(31, 34, 35, 0.6);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-center {
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 50px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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


/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Services Detail */
.services-detail {
    background: var(--light-color);
    transition: background-color 0.3s ease;
}

.service-detail-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    align-items: start;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 100px;
}

.service-detail-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-hover);
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(130, 38, 191, 0.3);
    transition: var(--transition);
}

.service-detail-card:hover .service-detail-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 25px rgba(130, 38, 191, 0.5);
}

.service-detail-content h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.service-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.service-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-features ul li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    line-height: 1.8;
    color: #555;
}

.service-features ul li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-features p {
    color: #666;
    line-height: 1.8;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-top: 3px solid var(--primary-color);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

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

.project-image i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.project-card:hover .project-image i {
    transform: scale(1.2) rotate(-5deg);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.project-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Contact Page */
.contact-section {
    background: var(--light-color);
    transition: background-color 0.3s ease;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-section h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-info-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    list-style: none;
}

.contact-method {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateX(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.contact-method:hover .contact-method-icon {
    transform: scale(1.15) rotate(10deg);
}

.contact-method-content h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-method-content p {
    color: #666;
    margin: 0;
}

.contact-method-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-method-content a:hover {
    color: var(--primary-color);
}

.contact-form-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-section h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

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

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 38, 191, 0.4);
    background: linear-gradient(135deg, #6b1fa0, #020659);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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


/* Additional Enhancements */
.service-card,
.project-card,
.contact-method {
    animation: fadeInUp 0.6s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }

/* Smooth page load */
body {
    animation: fadeIn 0.5s ease;
}

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

/* Gradient text effect for hero title */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b1fa0, #020659);
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta,
    .btn {
        display: none;
    }
}


/* Dark Theme Specific Adjustments */
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .project-content h3,
[data-theme="dark"] .service-detail-content h2,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .about-text h2,
[data-theme="dark"] .contact-info-section h2,
[data-theme="dark"] .contact-form-section h2,
[data-theme="dark"] .contact-method-content h3,
[data-theme="dark"] .footer-section h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .project-content p,
[data-theme="dark"] .service-intro,
[data-theme="dark"] .service-features p,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .contact-info-section p,
[data-theme="dark"] .contact-method-content p,
[data-theme="dark"] .section-header p {
    color: #b0b0b0;
}

[data-theme="dark"] .service-features ul li {
    color: #c0c0c0;
}

[data-theme="dark"] .form-group label {
    color: var(--dark-color);
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .project-tag {
    background: rgba(130, 38, 191, 0.2);
    color: #c9a0e8;
}




/* LTR (English) Layout Adjustments */
[dir="ltr"] .nav-menu {
    flex-direction: row;
}

[dir="ltr"] .logo {
    flex-direction: row;
}

[dir="ltr"] .logo-text {
    margin-left: 0;
    margin-right: 0;
}

[dir="ltr"] .features-list i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="ltr"] .contact-info i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="ltr"] .service-features ul li {
    padding-right: 0;
    padding-left: 25px;
}

[dir="ltr"] .service-features ul li:before {
    right: auto;
    left: 0;
}

[dir="ltr"] .contact-method:hover {
    transform: translateX(10px) scale(1.02);
}

[dir="ltr"] .service-detail-card:hover {
    transform: translateX(10px);
}

[dir="ltr"] .footer-section ul {
    text-align: left;
}

[dir="ltr"] .social-links {
    justify-content: flex-start;
}

/* Font adjustments for English */
[lang="en"] body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[lang="en"] .logo-text {
    font-family: 'Montserrat', sans-serif;
}


/* Our Partners Section */
.our-partners {
    background: var(--bg-color);
    padding: 80px 0;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.partners-carousel {
    --items: 6;
    --carousel-duration: 30s;
    --carousel-width: 100%;
    --carousel-item-width: 200px;
    --carousel-item-height: 120px;
    --carousel-item-gap: 3rem;

    position: relative;
    width: var(--carousel-width);
    height: calc(var(--carousel-item-height) + 40px);
    overflow: clip;
    margin-top: 40px;
    padding: 20px 0;
}

.partners-carousel[mask] {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10% 90%,
        transparent
    );
}

.partners-carousel:hover > article {
    animation-play-state: paused;
}

.partners-carousel > article {
    position: absolute;
    top: 20px;
    left: calc(100% + var(--carousel-item-gap));
    width: var(--carousel-item-width);
    height: var(--carousel-item-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 2px solid rgba(130, 38, 191, 0.1);
    box-shadow: var(--shadow);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;

    will-change: transform;
    animation-name: partnersMarquee;
    animation-duration: var(--carousel-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: calc(
        var(--carousel-duration) / var(--items) * 1 * var(--i) * -1
    );
}

.partners-carousel > article::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partners-carousel > article:nth-child(1) { --i: 0; }
.partners-carousel > article:nth-child(2) { --i: 1; }
.partners-carousel > article:nth-child(3) { --i: 2; }
.partners-carousel > article:nth-child(4) { --i: 3; }
.partners-carousel > article:nth-child(5) { --i: 4; }
.partners-carousel > article:nth-child(6) { --i: 5; }

.partners-carousel > article:hover,
.partners-carousel > article.touch-active {
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(130, 38, 191, 0.3);
    animation-play-state: paused;
}

.partners-carousel > article:hover::before,
.partners-carousel > article.touch-active::before {
    opacity: 1;
}

.partners-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-carousel > article:hover img,
.partners-carousel > article.touch-active img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes partnersMarquee {
    100% {
        transform: translateX(
            calc(
                (var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1
            )
        );
    }
}

/* Responsive adjustments for partners carousel */
@media (max-width: 768px) {
    .partners-carousel {
        --carousel-item-width: 150px;
        --carousel-item-height: 100px;
        --carousel-item-gap: 2rem;
    }
}
