/* Base Styles & Variables */
:root {
    --primary-blue: #0E82D5;
    --light-blue: #4CB8F3;
    --dark-blue: #043292;
    --white: #ffffff;
    --bg-color: #f8fbff;
    --text-color: #333333;
    --text-light: #666666;

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 10px 30px rgba(14, 130, 213, 0.15);
    --card-shadow-3d: 0 20px 40px rgba(14, 130, 213, 0.2),
                      0 15px 12px rgba(14, 130, 213, 0.1),
                      inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.desktop-nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--primary-blue);
}

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

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px;
    transition: 0.4s;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);

    /* 3D sliding effect */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    transform: translateX(50px) rotateY(-20deg);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.2s;
}

.mobile-menu.active ul {
    transform: translateX(0) rotateY(0);
    opacity: 1;
}

.mobile-menu li {
    margin: 30px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary-blue);
}

/* Hamburger Animation */
.hamburger.active .bar1 {
    transform: translate(0, 8px) rotate(-45deg);
}
.hamburger.active .bar2 {
}
.hamburger.active .bar3 {
    transform: translate(0, -8px) rotate(45deg);
}

/* Common Section Styles */
main {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    perspective: 1000px; /* Enable 3D space for children */
}

/* 3D Typography & Elements */
.3d-text {
    transform-style: preserve-3d;
    /* opacity: 0 removed for safety */
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    transform-style: preserve-3d;
}

.3d-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.3d-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--card-shadow-3d);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    text-align: center;
}

.main-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--light-blue);

    /* 3D Text Effect */
    text-shadow:
        1px 1px 0px var(--dark-blue),
        2px 2px 0px var(--dark-blue),
        3px 3px 0px var(--primary-blue),
        4px 4px 0px var(--primary-blue),
        5px 5px 15px rgba(0,0,0,0.2);
}

.sub-text {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(14, 130, 213, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.3d-btn {
    transform-style: preserve-3d;
}

.3d-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(14, 130, 213, 0.4);
}

.glow-btn:hover {
    box-shadow: 0 0 15px 5px rgba(76, 184, 243, 0.6), 0 15px 25px rgba(14, 130, 213, 0.4);
}

/* About Section */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.about .card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about .card-content .highlight {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;

    /* 3D drop shadow on icon */
    filter: drop-shadow(3px 3px 0px rgba(76, 184, 243, 0.5));
}

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

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

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    padding: 30px 20px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--light-blue);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

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

/* Clients Section */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    padding: 30px;
    border-left: 5px solid var(--primary-blue);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.client-name {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.client-quote {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.connect-card {
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 184, 243, 0.1);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.contact .section-title {
    margin-bottom: 20px;
}

.contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-desc {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(14, 130, 213, 0.1);
    position: relative;
    z-index: 10;
}

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

.footer-left p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-left a {
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 10px;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    color: var(--dark-blue);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(14, 130, 213, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 130, 213, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-text { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }

    .main-text { font-size: 2.8rem; }
    .sub-text { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }

    .section { padding: 80px 20px; }
    .hero { padding-top: 120px; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-text { font-size: 2.2rem; }
    .card { padding: 25px; }

    .main-text {
        text-shadow:
            1px 1px 0px var(--dark-blue),
            2px 2px 0px var(--dark-blue),
            3px 3px 5px rgba(0,0,0,0.2);
    }
}
/* About Us Page Specifics */
.title-with-arrow {
    position: relative;
    display: inline-block;
}

.about-arrow {
    position: absolute;
    left: 100%;
    top: 30%;
    width: 700px;
    height: 250px;
    margin-left: 10px;
    overflow: visible;
    pointer-events: none;
    z-index: 10;
}

.arrow-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawArrow 2s ease-out forwards;
    animation-delay: 0.5s;
}

.arrow-head {
    opacity: 0;
    animation: fadeInArrowHead 0.5s ease-out forwards;
    animation-delay: 2.3s;
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArrowHead {
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .about-arrow {
        width: 300px;
        height: 120px;
        margin-left: 5px;
    }
}

@media (max-width: 768px) {
    .about-arrow {
        display: none; /* Hide on smaller screens if it overlaps too much */
    }
}

/* Additional Styles for About Us Page */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 40px;
    gap: 40px;
}

.team-card.reverse {
    flex-direction: row-reverse;
    text-align: left;
}

.team-card-profile {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    .team-card,
    .team-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .team-card-profile {
        flex: auto;
    }

    .team-card-info {
        text-align: center;
    }
}

.team-card:hover .team-image-wrapper {
    transform: scale(1.05);
    border-color: #007bff;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.team-card .role {
    font-size: 1rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-card .team-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.team-card .focus {
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}


/* Fix for team card name color */
.team-card h3 {
    color: var(--secondary-color, #001f3f) !important;
}

/* Fix for team card description and focus color */
.team-card .team-desc {
    color: var(--text-color, #333) !important;
}

.team-card .focus {
    color: var(--text-color, #333) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Typing Animation */
.typing-container {
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.typing-text {
    color: var(--primary-blue);
    font-weight: 800; /* Match main text font weight */
}

.typing-cursor {
    display: inline-block;
    background-color: var(--primary-blue);
    width: 0.5em; /* Initial thick width */
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
    height: 1.1em;
    margin-left: 5px;
}

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