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

:root {
    --primary-color: #4776E6;
    --secondary-color: #8E54E9;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --light-bg: #f9f9ff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

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

section {
    padding: 90px 0;
    position: relative;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    text-align: center;
    font-size: 2.4rem;
    position: relative;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(71, 118, 230, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(71, 118, 230, 0.3);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo h1 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.9rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
#hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background-color: #f7f9ff;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(135deg, rgba(247, 249, 255, 0.97) 0%, rgba(247, 249, 255, 0.95) 100%),
        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='%234776E6' 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");
}

#hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.05;
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.08;
    }
    100% {
        transform: scale(1);
        opacity: 0.05;
    }
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
#services {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.03;
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    border-top: 3px solid transparent;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
    border-top: 3px solid;
    border-image: var(--gradient) 1;
}

.service-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    transform: scale(1.2);
}

.service-card h3 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* About Section */
#about {
    background-color: #f7f9ff;
    position: relative;
    background-image: 
        linear-gradient(135deg, rgba(247, 249, 255, 0.97) 0%, rgba(247, 249, 255, 0.9) 100%),
        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='%238E54E9' 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");
    overflow: hidden;
}

#about::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.03;
    z-index: 0;
}

#about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
    padding-right: 50px;
}

.about-content h2 {
    text-align: left;
}

.about-content h2::after {
    left: 0;
    transform: none;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Contact Section */
#contact {
    background-color: var(--white);
    position: relative;
}

#contact::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.03;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.contact-info {
    max-width: 600px;
    text-align: center;
    background-color: #f7f9ff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    animation: bounce 5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: center;
}

.contact-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item p {
    color: var(--light-text);
    font-size: 1.2rem;
}

.contact-item p a {
    color: var(--light-text);
    transition: all 0.3s ease;
    position: relative;
}

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

.contact-item p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.contact-item p a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(71, 118, 230, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    text-align: center;
}

footer .logo h1 {
    color: var(--white);
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.footer-content p {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 1rem;
}

.legal-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.legal-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero .container,
    #about .container,
    .contact-wrapper {
        flex-direction: column;
    }

    .hero-content,
    .about-content,
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .container {
        flex-direction: column;
    }

    .social-links {
        margin-top: 20px;
    }

    .social-links a:first-child {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    header .container {
        justify-content: center;
    }

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

    section {
        padding: 60px 0;
    }

    #hero {
        padding-top: 130px;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 20px;
    }

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

    h2 {
        font-size: 1.8rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 