:root {
    --primary-bg: #E5E0D9;
    --navy-glass: rgba(255, 255, 255, 0.5);
    --white-glass: rgba(43, 82, 136, 0.1);
    --accent-glow: #2B5288;
    --text-main: #2B5288;
    --text-dim: rgba(43, 82, 136, 0.8);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Background Particles/Gradients */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(229, 224, 217, 1) 100%);
    z-index: -1;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(43, 82, 136, 0.1);
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #2B5288;
}

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


.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(43, 82, 136, 0.2);
}

/* Glassmorphism Classes */
.glass-pane {
    background: var(--navy-glass);
    backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(43, 82, 136, 0.08);
    /* slight blue shadow */
    transition: var(--transition-smooth);
}

.glass-pane:hover {
    border-color: rgba(43, 82, 136, 0.3);
    box-shadow: 0 15px 40px rgba(43, 82, 136, 0.15);
    transform: translateY(-5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #2B5288;
}

.hero p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2B5288;
    color: #E5E0D9;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(43, 82, 136, 0.4);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid #2B5288;
    color: #2B5288;
}

.btn-outline:hover {
    background: rgba(43, 82, 136, 0.1);
}

/* Sections General */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    text-align: center;
}

.service-card i {
    font-size: 40px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #2B5288, #5a8bc7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Infinite Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.marquee-card {
    width: 350px;
    flex-shrink: 0;
}

/* Portfolio Wrapper with Arrows */
.portfolio-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.portfolio-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(43, 82, 136, 0.2);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #2B5288;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    z-index: 3;
}

.portfolio-arrow:hover {
    background: #2B5288;
    color: #E5E0D9;
    box-shadow: 0 0 20px rgba(43, 82, 136, 0.35);
    transform: scale(1.1);
}

.portfolio-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .portfolio-arrow {
        display: none;
    }
}

@keyframes scrollMarquee {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-card {
        width: 280px;
    }

    .marquee-container::before,
    .marquee-container::after {
        display: none;
    }
}

/* Contact Socials */
.contact-socials a {
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.contact-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(43, 82, 136, 0.3);
}

.contact-socials img {
    height: 1.8rem;
    width: auto;
    transition: var(--transition-smooth);
    filter: invert(24%) sepia(35%) saturate(1634%) hue-rotate(185deg) brightness(94%) contrast(92%);
    opacity: 0.8;
}

.contact-socials a:hover img {
    filter: invert(24%) sepia(35%) saturate(1634%) hue-rotate(185deg) brightness(94%) contrast(92%) drop-shadow(0 0 8px rgba(43, 82, 136, 0.3));
    opacity: 1;
    transform: scale(1.1);
}

/* Footer Styling Fixes */
footer h4 {
    margin-bottom: 20px;
}

footer li {
    margin-bottom: 10px;
}

footer {
    padding: 60px 10%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(43, 82, 136, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-visual {
        width: 100%;
        margin-top: 50px;
    }

    .float-card {
        position: relative;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .logo {
        display: none;
    }
}

/* Contact Page Styles */
.contact-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(43, 82, 136, 0.15);
    color: #2B5288;
}

.contact-info-col {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #2B5288;
    color: #E5E0D9;
}

.contact-info-col h5 {
    color: rgba(229, 224, 217, 0.7);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-info-col h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-info-col>p {
    color: rgba(229, 224, 217, 0.9);
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 18px;
    color: #2B5288;
    width: 36px;
    height: 36px;
    background: #E5E0D9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.detail-item span {
    font-size: 0.8rem;
    color: rgba(229, 224, 217, 0.6);
    display: block;
    margin-bottom: 2px;
}

.detail-item p {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-col {
    flex: 1;
    padding: 40px;
    background: #ffffff;
    display: flex;
    align-items: center;
}

.clean-form {
    width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 20px;
    box-shadow: none;
}

/* Network Unstable Loader Appearance */
.network-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeIn 0.4s ease-out;
}

.network-overlay.active {
    display: flex !important;
}

.loader {
    --dim: 4rem;
    width: var(--dim);
    height: var(--dim);
    position: relative;
    animation: spin988 2s linear infinite;
}

.loader .circle {
    --color: #2B5288;
    --dim: 1.5rem;
    width: var(--dim);
    height: var(--dim);
    background-color: var(--color);
    box-shadow: 0 0 15px rgba(43, 82, 136, 0.4);
    border-radius: 50%;
    position: absolute;
}

.loader .circle:nth-child(1) { top: 0; left: 0; }
.loader .circle:nth-child(2) { top: 0; right: 0; }
.loader .circle:nth-child(3) { bottom: 0; left: 0; }
.loader .circle:nth-child(4) { bottom: 0; right: 0; }

@keyframes spin988 {
    0% { transform: scale(1) rotate(0); }
    20%, 25% { transform: scale(1.3) rotate(90deg); }
    45%, 50% { transform: scale(1) rotate(180deg); }
    70%, 75% { transform: scale(1.3) rotate(270deg); }
    95%, 100% { transform: scale(1) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.network-status-text {
    font-weight: 700;
    color: #2B5288;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.network-status-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: -10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #2B5288;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f4f2ef;
    border: 1px solid rgba(43, 82, 136, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2B5288;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2B5288;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 82, 136, 0.1);
}

.btn-blue-submit {
    background: #2B5288;
    color: #E5E0D9;
    border: none;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-blue-submit:hover {
    background: #1c375c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 82, 136, 0.3);
}

.btn-blue-submit i {
    background: #E5E0D9;
    color: #2B5288;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 30px;
    }

    .contact-info-col h2 {
        font-size: 2rem;
    }
}

/* Toast Notifications & Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(229, 224, 217, 0.3);
    border-top: 2px solid #E5E0D9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

.btn-blue-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}