/* Theme Variables */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --background-color: #ffffff;
    --text-color: #1f2937;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --accent-color: #818cf8;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --text-secondary: #666666;
    --bg-color: #f9f9f9;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    --gradient-dark: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Responsive breakpoints */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a5b4fc;
    --background-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #334155;
    --text-secondary: #94a3b8;
    --bg-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --gradient-dark: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    --gradient-light: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
}

/* Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px var(--shadow-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--card-bg);
    box-shadow: 0 5px 30px var(--shadow-color);
}

[data-theme="dark"] .navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
    background: var(--card-bg);
    box-shadow: 0 5px 30px var(--shadow-color);
}

.nav-brand a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a i {
    font-size: 1.2rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 1rem;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(5px);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--card-bg);
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle i {
    transition: var(--transition);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .theme-toggle {
        margin: 1rem 0;
    }

    .navbar {
        padding: 0.8rem 5%;
    }

    .nav-brand a {
        font-size: 1.4rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.6rem 3%;
    }

    .nav-brand a {
        font-size: 1.2rem;
    }
}

/* Hero Section with Background Image */
.hero {
    height: 100vh;
    background: var(--gradient-dark), url('./assets/hero-background.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15), transparent 70%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: var(--secondary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Preview with Images */
.services-preview {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.service-card .service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.service-card .service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 4rem 5% 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.1), transparent 70%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-section:hover h4::after {
    width: 100px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: scale(0);
}

.social-links a:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

[data-theme="dark"] .social-links a {
    color: var(--primary-color);
}

[data-theme="dark"] .social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.15;
    animation: gradientMove 8s ease-in-out infinite;
}

.page-transition::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 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='%239C92AC' 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");
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.transition-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.transition-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    position: relative;
}

.transition-spinner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    border-bottom-color: transparent;
    animation: spin 2s linear infinite reverse;
}

.transition-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.transition-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.transition-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.transition-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.transition-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.page-transition.active {
    transform: scaleY(1);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Page Headers with Background Images */
.page-header {
    height: 50vh;
    background: var(--gradient-dark), url('../assets/header-background.png') center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 70%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.2), transparent 70%);
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.header-scroll-indicator i {
    font-size: 24px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Services Detailed */
.services-detailed {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--card-bg);
    padding: 5rem 5%;
    text-align: center;
}

.cta-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Responsive Design for Services */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 250px;
    }

    .service-icon {
        margin-bottom: 1rem;
    }

    .service-content ul li {
        text-align: left;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Modern Contact Page Styles */
.contact-section {
    padding: 80px 0;
    background: var(--card-bg);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.05;
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-header, .form-header {
    margin-bottom: 30px;
    position: relative;
}

.info-header-decoration, .form-header-decoration {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.info-header-decoration::after, .form-header-decoration::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.info-item:hover::before {
    height: 100%;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-item:hover .info-icon {
    transform: rotateY(180deg);
}

.info-content {
    flex: 1;
}

.info-content h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.info-content p {
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.6;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.info-link i {
    transition: transform 0.3s ease;
}

.info-link:hover i {
    transform: translateX(5px);
}

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-actions {
        margin-top: 25px;
    }
}

.map-section {
    padding: 40px 0;
    background: var(--card-bg);
    position: relative;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 40px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.map-overlay:hover {
    transform: translateY(-5px);
}

.map-info h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.map-info p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-link i {
    transition: transform 0.3s ease;
}

.map-link:hover i {
    transform: rotate(45deg);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .map-overlay {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
    }

    .info-item {
        padding: 15px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-icon i {
        font-size: 20px;
    }
}

/* About Page Styles */
.about-story {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-content h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.story-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.values-section {
    padding: 5rem 5%;
    background: var(--card-bg);
    text-align: center;
}

.values-section h2 {
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.value-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card:hover .value-image img {
    transform: scale(1.1);
}

.value-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--secondary-color);
}

.value-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
}

.team-section {
    padding: 5rem 5%;
    background: var(--card-bg);
    text-align: center;
}

.team-section h2 {
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 5px solid var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.team-member h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stats-section {
    padding: 5rem 5%;
    background: var(--gradient-light);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .stats-section {
    background: var(--gradient-dark);
    color: #ffffff;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.1), transparent 70%);
    animation: waveAnimation 8s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stat-item {
    background: rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-item h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item .counter {
    display: inline-block;
    position: relative;
    color: inherit;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: inherit;
    font-weight: 500;
}

[data-theme="dark"] .stat-item p {
    color: #e2e8f0;
    opacity: 1;
}

/* Responsive Design for Contact and About Pages */
@media (max-width: 768px) {
    .contact-container,
    .story-container {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form,
    .story-content,
    .story-image {
        padding: 1rem;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .service-image {
        height: 250px;
    }

    .value-image {
        height: 250px;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nav-right {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-right.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        justify-content: center;
        padding: 1rem 0;
    }
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.submit-button:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.submit-button i {
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Theme Transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .navbar {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .social-links a {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .page-transition {
    background-color: var(--card-bg);
}

.nav-logo {
    height: 70px; /* Adjust this value based on your needs */
    width: auto;
    padding: 0;
    vertical-align: middle;
    margin: 0;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Base Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
}

/* Enhanced Responsive Grid System */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Enhanced Responsive Hero Section */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Enhanced Responsive Services Section */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Enhanced Responsive Contact Form */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Enhanced Responsive Team Section */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        padding: 1.5rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Enhanced Responsive Stats Section */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }
}

/* Enhanced Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Enhanced Responsive Forms */
@media (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Enhanced Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Enhanced Responsive Utilities */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }

    .show-on-mobile {
        display: block;
    }
}

/* Enhanced Responsive Spacing */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 5%;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 2rem 3%;
    }
}

/* Enhanced Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

/* Enhanced Responsive Margins and Padding */
@media (max-width: 768px) {
    .m-1 { margin: 0.5rem; }
    .m-2 { margin: 1rem; }
    .m-3 { margin: 1.5rem; }
    .m-4 { margin: 2rem; }
    .m-5 { margin: 2.5rem; }

    .p-1 { padding: 0.5rem; }
    .p-2 { padding: 1rem; }
    .p-3 { padding: 1.5rem; }
    .p-4 { padding: 2rem; }
    .p-5 { padding: 2.5rem; }
}

/* Enhanced Responsive Flexbox */
@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }
}

/* Enhanced Responsive Grid */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Responsive Cards */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
}

/* Enhanced Responsive Buttons */
@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Responsive Navigation Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
}

/* Enhanced Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 1rem auto;
    }
}

/* Enhanced Responsive Carousel */
@media (max-width: 768px) {
    .carousel-item {
        height: auto;
    }
}

/* Enhanced Responsive Tabs */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Responsive Accordion */
@media (max-width: 768px) {
    .accordion-item {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Responsive Tooltips */
@media (max-width: 768px) {
    .tooltip {
        display: none;
    }
}

/* Enhanced Responsive Dropdowns */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Enhanced Responsive Alerts */
@media (max-width: 768px) {
    .alert {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Responsive Badges */
@media (max-width: 576px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Enhanced Responsive Progress Bars */
@media (max-width: 576px) {
    .progress {
        height: 0.5rem;
    }
}

/* Enhanced Responsive Lists */
@media (max-width: 768px) {
    .list-group-item {
        padding: 0.75rem;
    }
}

/* Enhanced Responsive Pagination */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-item {
        margin: 0.25rem;
    }
}

/* Enhanced Responsive Breadcrumbs */
@media (max-width: 576px) {
    .breadcrumb {
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        margin-bottom: 0.25rem;
    }
}

/* Enhanced Responsive Spinners */
@media (max-width: 576px) {
    .spinner {
        width: 2rem;
        height: 2rem;
    }
}

/* Enhanced Responsive Toasts */
@media (max-width: 576px) {
    .toast {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Enhanced Responsive Popovers */
@media (max-width: 768px) {
    .popover {
        display: none;
    }
}

/* Enhanced Responsive Scrollspy */
@media (max-width: 768px) {
    .scrollspy {
        position: static;
    }
}

/* Enhanced Responsive Collapse */
@media (max-width: 768px) {
    .collapse {
        transition: none;
    }
}

/* Enhanced Responsive Utilities */
@media (max-width: 768px) {
    .text-center-sm {
        text-align: center;
    }

    .text-left-sm {
        text-align: left;
    }

    .text-right-sm {
        text-align: right;
    }

    .d-none-sm {
        display: none;
    }

    .d-block-sm {
        display: block;
    }

    .d-flex-sm {
        display: flex;
    }
}

@media (max-width: 576px) {
    .text-center-xs {
        text-align: center;
    }

    .text-left-xs {
        text-align: left;
    }

    .text-right-xs {
        text-align: right;
    }

    .d-none-xs {
        display: none;
    }

    .d-block-xs {
        display: block;
    }

    .d-flex-xs {
        display: flex;
    }
}

