:root {
    --primary-color: #0d47a1;
    --primary-light: #5472d3;
    --secondary-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    background-color: #0c1220;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
    background: transparent;
}

#main-header.scrolled {
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 16px 0;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

#main-header:not(.scrolled) .logo {
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

#main-header.scrolled .nav-links li a {
    color: var(--secondary-color);
}

#main-header:not(.scrolled) .nav-links li a {
    color: var(--secondary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

#main-header:not(.scrolled) .nav-links li a::after {
    background-color: var(--secondary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    background: transparent;
    overflow: hidden;
    color: var(--secondary-color);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* Hero Animated Shapes */
.hero-shapes div {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, var(--primary-light));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sections */
.section {
    padding: 100px 24px;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.02);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 800;
}

.section-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 48px;
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: all 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.3);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.06);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #93c5fd;
}

.card p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.card:hover .card-link {
    gap: 12px;
    color: #bfdbfe;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    padding: 14px 28px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-call {
    background-color: #3b82f6;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-call:hover {
    background-color: #2563eb;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.contact-email-text {
    width: 100%;
    margin-top: 24px;
    font-size: 1.1rem;
    color: #94a3b8;
    text-align: center;
}

.contact-email-text a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-email-text a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* About Us Section specifics */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-left {
    text-align: center;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), #93c5fd);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Aceternity Lamp Section */
.lamp-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0c1220;
    padding: 100px 0;
    z-index: 0;
}

.lamp-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.lamp-glow-left {
    position: absolute;
    right: 50%;
    top: 20%;
    width: 30rem;
    height: 40%;
    background-image: conic-gradient(from 90deg at center top, var(--primary-light), transparent, transparent);
    opacity: 0.8;
    filter: blur(80px);
}

.lamp-glow-right {
    position: absolute;
    left: 50%;
    top: 20%;
    width: 30rem;
    height: 40%;
    background-image: conic-gradient(from 270deg at center top, transparent, transparent, var(--primary-light));
    opacity: 0.8;
    filter: blur(80px);
}

.lamp-bg-block {
    position: absolute;
    top: 20%;
    width: 100%;
    height: 60%;
    background: #0c1220;
    z-index: 2;
}

.lamp-bg-beam {
    position: absolute;
    top: 20%;
    width: 40rem;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    z-index: 3;
    box-shadow: 0 0 20px var(--primary-light);
}

.lamp-text-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(2rem);
}

.lamp-title {
    background: linear-gradient(to bottom right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.lamp-cards {
    display: flex;
    gap: 24px;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 300px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: white;
    font-weight: 600;
}

/* Forms */
.appointment-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.appointment-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 700px;
    width: 100%;
}

.appointment-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0c1220;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 800;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: #060913;
    padding: 80px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.footer-info p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    display: inline-block;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-contact a {
    color: #cbd5e1;
    transition: var(--transition);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes slideUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Mobile Responsiveness --- */

/* Tablet & Large Mobile (up to 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 5%;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .lamp-title {
        font-size: 2.8rem;
    }

    .lamp-cards {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {

    /* Header adjustments */
    .navbar {
        flex-direction: row;
        padding: 0.3rem 5%;
        justify-content: space-between;
        align-items: center;
    }

    #main-header {
        position: relative;
        background: rgba(12, 18, 32, 0.95);
        padding: 2px 0;
    }

    #main-header.scrolled {
        padding: 2px 0;
    }

    .nav-links {
        display: none;
        /* Hide navigation links on mobile */
    }

    .nav-actions {
        width: auto;
        text-align: right;
        margin-top: 0;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-actions .btn {
        width: auto;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Hero section */
    .hero {
        padding: 50px 16px 36px;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Services / Grids */
    .grid-cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 16px;
    }

    /* Aceternity Lamp scaling */
    .lamp-glow-left,
    .lamp-glow-right {
        width: 15rem;
    }

    .lamp-bg-beam {
        width: 20rem;
    }

    .lamp-title {
        font-size: 2rem;
    }

    .lamp-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .lamp-text-container {
        transform: translateY(1rem);
    }

    /* Forms & Modals */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .appointment-card {
        padding: 40px 20px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    /* About Us */
    .about-card {
        padding: 40px 20px;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-num {
        font-size: 2rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-links ul li a:hover {
        transform: none;
        /* Disable shift on mobile hover */
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn {
        justify-content: center;
    }
}