:root {
    --primary-blue: #4a90c2;
    --secondary-blue: #357abd;
    --dark-blue: #2c5f8a;
    --logo-dark-blue: #236ba0;
    --light-blue: #6ba3d0;
    --accent-blue: #87ceeb;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --gradient: linear-gradient(135deg, #4a90c2 0%, #357abd 100%);
    --shadow: 0 4px 20px rgba(74, 144, 194, 0.15);
    --shadow-hover: 0 8px 30px rgba(74, 144, 194, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--logo-dark-blue);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cursor {
    animation: blink 1s step-end infinite;
    font-weight: 900;
    margin-left: 4px;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(35, 107, 160, 0.4);
}

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 107, 160, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, #ffffff 0%, #e8f4fc 100%);
    color: var(--logo-dark-blue);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-schedule {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(35, 107, 160, 0.4);
}

.btn-schedule:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 107, 160, 0.5);
}

/* Particles.js Background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Code Overlay */
.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.25;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    animation: blink-caret 0.75s step-end infinite;
}

.code-line.typing-done {
    border-right: none;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes blink-caret {
    0%, 100% { border-color: rgba(255, 255, 255, 0.7); }
    50% { border-color: transparent; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: var(--light-gray);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: linear-gradient(180deg, #e8f4fc 0%, #f5fafd 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 75% center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--white);
}

.about-text {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.about-text p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.about-text::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 35px solid var(--white);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.about p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.stats-card {
    background: var(--gradient);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: var(--white);
    box-shadow: var(--shadow);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.stat:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--light-gray);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.contact > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-item strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.contact-map {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-full {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-full .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-full input,
.contact-form-full textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-full input:focus,
.contact-form-full textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form-full button {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: #2980bf;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo-img {
    height: 45px;
    max-width: 220px;
    filter: brightness(1.2);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer p {
    color: var(--white);
    opacity: 0.8;
}

/* Legal Pages Styling */
.legal-page {
    padding: 120px 20px 80px;
    background: var(--white);
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-content {
    max-width: 800px;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.legal-content h3 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--logo-dark-blue);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #particles-js,
    .code-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
    }

    .code-line {
        font-size: 11px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        order: -1;
    }

    .about-photo img {
        width: 180px;
        height: 180px;
    }

    .about-text::before {
        left: 50%;
        top: -25px;
        transform: translateX(-50%);
        border-top: 0;
        border-bottom: 30px solid var(--white);
        border-left: 15px solid transparent;
        border-right: 25px solid transparent;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats-card {
        padding: 2rem 1.5rem;
    }
    
    .stat {
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .legal-page {
        padding: 100px 20px 60px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .services,
    .about,
    .contact {
        padding: 80px 20px;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form-full {
        padding: 2rem 1.5rem;
    }

    .contact-form-full .form-row {
        grid-template-columns: 1fr;
    }
    
    .pixel-square:nth-child(1) {
        width: 60px;
        height: 60px;
    }
    
    .pixel-square:nth-child(2) {
        width: 45px;
        height: 45px;
    }
    
    .pixel-square:nth-child(3) {
        width: 70px;
        height: 70px;
    }
    
    .pixel-square:nth-child(4) {
        width: 40px;
        height: 40px;
    }
    
    .floating-elements::after {
        width: 120px;
        height: 120px;
    }
    
    .floating-elements::before {
        width: 100px;
        height: 100px;
    }
}

/* Scroll to Top Button - Mobile Only */
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #scrollToTop {
        display: block;
    }
}