/* Modern Design System - CITS */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #f9fafb;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --loader-bg: rgba(255, 255, 255, 0.98);
    --loader-primary: var(--primary-color);
    --loader-secondary: rgba(37, 99, 235, 0.1);
    --font-size-base: 0.95rem;
    --font-size-sm: 0.85rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.8rem;
    --font-size-4xl: 2rem;
}

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

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

/* Enhanced Glassmorphism Effects */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Neumorphism Effects */
.neumorphic-card {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1),
                -8px -8px 15px rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neumorphic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neumorphic-card:hover::after {
    opacity: 1;
}

.neumorphic-card:hover {
    box-shadow: 12px 12px 20px rgba(0, 0, 0, 0.1),
                -12px -12px 20px rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

/* Enhanced Header Styles */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    transition: var(--header-transition);
}

.header-modern.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: block;
    transition: var(--header-transition);
}

.logo {
    height: 70px;
    transition: var(--header-transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-modern.scrolled .logo {
    height: 55px;
}

.logo-container:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--header-transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1.2rem;
    transition: var(--header-transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item i {
    margin-right: 10px;
    color: #007bff;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--header-transition);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--header-transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--header-transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        background: transparent;
    }

    .dropdown-item {
        padding-left: 2rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }
}

/* Header Animations */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-modern {
    animation: headerSlideDown 0.5s ease forwards;
}

/* CTA Button in Header */
.header-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--header-transition);
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.header-cta:hover::before {
    transform: translateX(100%);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Enhanced Buttons */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-modern:hover::before {
    transform: translateX(100%);
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Typography */
.heading-modern {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-size: var(--font-size-4xl);
}

.heading-modern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.heading-modern:hover::after {
    width: 100%;
}

/* Enhanced Grid System */
.grid-modern {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    perspective: 1000px;
}

/* Enhanced Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.service-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    transition: var(--transition-smooth);
    transform: scale(1);
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.5s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

/* Enhanced Form Elements */
.form-modern {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-smooth);
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Footer */
.footer-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: gradientMove 15s linear infinite;
}

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

/* Enhanced Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    font-size: var(--font-size-3xl);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.shadow-soft:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.rounded-xl {
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

/* Responsive Design */
@media (max-width: 768px) {
    .h1-modern { font-size: 2rem; }
    .h2-modern { font-size: 1.75rem; }
    .h3-modern { font-size: 1.5rem; }
    
    .grid-modern {
        grid-template-columns: 1fr;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* About Page Styles */
.about-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

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

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

.hero-image img {
    transition: transform 0.5s ease;
}

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

.icon-box {
    display: inline-block;
    padding: 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
}

.expertise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-card i {
    transition: transform 0.3s ease;
}

.expertise-card:hover i {
    transform: scale(1.1);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-modern {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Animation Classes */
.wow {
    visibility: hidden;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Services Page Styles */
.services-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.services-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05));
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.service-card {
    display: block;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
}

.service-link i {
    margin-left: 10px;
    transition: transform 0.4s ease;
}

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

.service-card:hover .service-link i {
    transform: translateX(5px);
}

.service-card-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card-sm i {
    margin-bottom: 20px;
    transition: all 0.4s ease;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.service-card-sm i::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card-sm:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.service-card-sm:hover i::before {
    opacity: 1;
    transform: scale(1.2);
}

.service-card-sm h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
}

.service-card-sm h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.service-card-sm:hover h4::after {
    width: 60px;
}

/* Services Grid Animation */
.services-grid {
    perspective: 1000px;
}

.service-card {
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.service-card:hover {
    transform: translateY(-15px) rotateY(5deg);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .services-hero {
        padding: 80px 0;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .service-card, .service-card-sm {
        padding: 25px 20px;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .service-card-sm:hover {
        transform: translateY(-8px);
    }
}

/* Services Section Animation */
@keyframes serviceFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.service-card {
    animation: serviceFloat 6s ease-in-out infinite;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:nth-child(4) {
    animation-delay: 0.6s;
}

.service-card:nth-child(5) {
    animation-delay: 0.8s;
}

.service-card:nth-child(6) {
    animation-delay: 1s;
}

/* Additional Services Section */
.additional-services {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    position: relative;
    overflow: hidden;
}

.additional-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.additional-services .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.additional-services .section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.additional-services .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.additional-services .section-title p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-card-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card-sm::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-sm:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-sm:hover::before {
    opacity: 1;
}

.service-card-sm:hover::after {
    transform: scaleX(1);
}

.service-card-sm i {
    margin-bottom: 25px;
    transition: all 0.4s ease;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
}

.service-card-sm i::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card-sm:hover i {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

.service-card-sm:hover i::before {
    opacity: 1;
    transform: scale(1.2);
}

.service-card-sm h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    color: var(--text-color);
    transition: color 0.4s ease;
}

.service-card-sm:hover h4 {
    color: var(--primary-color);
}

.service-card-sm p {
    color: var(--light-text);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-sm .service-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.4s ease;
    margin-top: auto;
}

.service-card-sm:hover .service-link {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.service-card-sm .service-link i {
    margin-left: 8px;
    font-size: 1rem;
    padding: 0;
    background: none;
    color: inherit;
}

/* Additional Services Grid Animation */
.additional-services-grid {
    perspective: 1000px;
}

.service-card-sm {
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.service-card-sm:hover {
    transform: translateY(-15px) rotateY(5deg);
}

/* Floating Animation for Additional Services */
@keyframes floatAdditional {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.service-card-sm {
    animation: floatAdditional 6s ease-in-out infinite;
}

.service-card-sm:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card-sm:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card-sm:nth-child(4) {
    animation-delay: 0.6s;
}

/* Responsive Styles for Additional Services */
@media (max-width: 991px) {
    .additional-services {
        padding: 60px 0;
    }
    
    .additional-services .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card-sm {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .service-card-sm:hover {
        transform: translateY(-10px);
    }
    
    .service-card-sm i {
        font-size: 2.5rem;
        padding: 15px;
    }
}

/* Hover Effect for Additional Services Grid */
.additional-services-grid:hover .service-card-sm:not(:hover) {
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

/* Contact Page Styles */
.contact-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.contact-hero .hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-hero .hero-image img {
    transition: transform 0.5s ease;
}

.contact-hero .hero-image:hover img {
    transform: scale(1.05);
}

/* Contact Info Cards */
.contact-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-icon {
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon::before {
    opacity: 1;
    transform: scale(1.2);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-link {
    color: var(--text-color);
    transition: color 0.4s ease;
}

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

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

/* Contact Form Styles */
.contact-form-map {
    padding: 80px 0;
    background: #fff;
}

.contact-form-container {
    padding: 40px;
    height: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.modern-input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-color);
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    outline: none;
    background: transparent;
    transition: all 0.4s ease;
}

.modern-input:focus,
.modern-input:valid {
    border-bottom-color: var(--primary-color);
}

.form-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: var(--light-text);
    pointer-events: none;
    transition: all 0.4s ease;
}

.modern-input:focus ~ .form-label,
.modern-input:valid ~ .form-label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
}

textarea.modern-input {
    min-height: 120px;
    resize: vertical;
}

/* Map Container */
.map-container {
    padding: 20px;
    height: 100%;
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-hero {
        padding: 80px 0;
    }
    
    .contact-info, .contact-form-map {
        padding: 60px 0;
    }
    
    .contact-card, .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-card:hover {
        transform: translateY(-10px);
    }
    
    .map-container {
        margin-top: 30px;
    }
}

/* Floating Animation for Contact Cards */
@keyframes floatContact {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.contact-card {
    animation: floatContact 6s ease-in-out infinite;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    height: 150px;
    position: relative;
    animation: pulse 2s infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary-color);
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Text styles */
.lead {
    font-size: var(--font-size-lg);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    :root {
        --font-size-base: 0.9rem;
        --font-size-sm: 0.8rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.2rem;
        --font-size-2xl: 1.4rem;
        --font-size-3xl: 1.6rem;
        --font-size-4xl: 1.8rem;
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-base: 0.85rem;
        --font-size-sm: 0.75rem;
        --font-size-lg: 0.95rem;
        --font-size-xl: 1.1rem;
        --font-size-2xl: 1.3rem;
        --font-size-3xl: 1.5rem;
        --font-size-4xl: 1.7rem;
    }
} 