:root {
    --primary: #1a365d;
    --primary-light: #2a4b8d;
    --secondary: #651fff;
    --secondary-light: #834fff;
    --accent: #ff5757;
    --background: #f8f9fa;
    --dark: #121212;
    --light: #ffffff;
    --text: #333333;
    --text-light: #666666;
}

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

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

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

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

@keyframes tentacleWave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    background-color: var(--light);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: 50px;
    transition: transform 0.5s ease;
}

.logo:hover .logo-img {
    animation: tentacleWave 1s ease infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--secondary);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.cta-button {
    background: linear-gradient(45deg, var(--secondary), var(--secondary-light));
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    box-shadow: 0 5px 15px rgba(101, 31, 255, 0.4);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(101, 31, 255, 0.4);
}

/* Hero section */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(-45deg, #1a365d, #2a4b8d, #3a2481, #651fff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 100px;
    background: var(--light);
    bottom: -50px;
    left: -25%;
    border-radius: 100%;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Hero content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeIn 1s ease-out forwards;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

/* Services section */
.services {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out forwards;
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animated {
    animation: fadeIn 0.6s ease-out forwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    transition: height 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-text h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Form styles */
.form-control.error {
    border-color: var(--accent);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* About section */
.about {
    padding: 6rem 0;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    height: 40px;
    width: 40px;
    color: var(--light);
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.feature-item:hover .feature-icon {
    transform: rotate(10deg);
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Contact section */
.contact {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--background);
}

.contact-section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contact-section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

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

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

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(101, 31, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, var(--secondary), var(--secondary-light));
    color: var(--light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-light), var(--accent));
    transition: all 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    box-shadow: 0 10px 20px rgba(101, 31, 255, 0.3);
    transform: translateY(-3px);
}

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

/* Footer styles */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 40px;
    width: 40px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 20px;
}

.footer-links a:hover::before {
    background-color: var(--accent);
    opacity: 1;
}

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

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.contact-info i {
    margin-right: 1rem;
    color: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}