/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(119, 136, 153, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(119, 136, 153, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* Global Centering Styles */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - Perfect Centering */
#hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.95) 50%, rgba(255, 255, 255, 0.9) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(102, 16, 242, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.hero-icon {
    font-size: 4rem;
    color: #0d6efd;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    text-shadow: none;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

#hero p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    align-self: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #6f42c1, #0d6efd);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    position: absolute;
    bottom: -240px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: floatUp 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.1s ease;
    z-index: 3;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(13, 110, 253, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.scroll-arrow i {
    font-size: 1.5rem;
    color: #0d6efd;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: rgba(33, 37, 41, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    transform: scale(1.1);
}

.scroll-indicator:hover span {
    color: #212529;
}

@keyframes floatUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Services Section - Perfect Centering */
#services {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 40px auto;
    padding: 60px 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1200px;
}

#services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    text-shadow: none;
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease-out both;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 0.7s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6c757d, #495057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-icon {
    color: #0d6efd;
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
    text-align: center;
}

.service-card p {
    color: #6c757d;
    line-height: 1.7;
    font-weight: 400;
    text-align: center;
}

/* About Section - Perfect Centering */
#about {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 40px auto;
    padding: 60px 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
}

#about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    text-shadow: none;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

#about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #495057;
    font-weight: 400;
    text-align: center;
}

/* Contact Section - Perfect Centering */
#contact {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 40px auto;
    padding: 60px 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    text-shadow: none;
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact input,
#contact textarea {
    width: 100%;
    max-width: 500px;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #adb5bd;
    font-weight: 400;
    text-align: center;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: #fff;
}

#contact textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design - Perfect Centering on All Devices */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 3rem;
    }
    
    section {
        padding: 80px 20px;
    }
    
    #services, #contact {
        margin: 30px auto;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: 80vh;
        padding: 60px 20px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    #hero p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    
    section {
        padding: 60px 20px;
    }
    
    #services, #contact {
        margin: 20px auto;
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }
    
    #services h2, #contact h2, #about h2 {
        font-size: 2rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-card {
        padding: 30px 20px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    form {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        max-width: 100%;
    }
    
    #contact input,
    #contact textarea {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 70vh;
        padding: 50px 15px;
    }
    
    #hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    #hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    #services, #contact {
        margin: 15px auto;
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
    }
    
    #services h2, #contact h2, #about h2 {
        font-size: 1.75rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .service-card {
        padding: 25px 15px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    #about p {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
    }
    
    form {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        max-width: 100%;
    }
    
    #contact input,
    #contact textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
        max-width: 100%;
        width: 100%;
    }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 360px) {
    #hero h1 {
        font-size: 1.75rem;
    }
    
    #hero p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    #services h2, #contact h2, #about h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 20px 12px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}