:root {
    --primary-color: #008cd1;
    --primary-light: #41bdef;
    --accent-color: #00dcf5;
    --bg-dark: #15324e;
    --text-main: #ffffff;
    --text-muted: #c9dbec;
    --glass-bg: rgba(21, 50, 78, 0.75);
    --glass-border: rgba(0, 220, 245, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--primary-light);
    color: #fff;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #204d74 0%, var(--bg-dark) 100%);
}

#particleCanvas {
    width: 100%;
    height: 100%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 101;
}

.logo-img {
    height: 90px;
    /* Adjust height based on your visual reference */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2));
    transition: transform 0.3s ease;
}

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

.main-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px var(--accent-color);
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
    width: 30px;
    height: 30px;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu.open {
    max-height: 300px;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    /* Align menu items to the left */
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 20px;
    position: relative;
}

.hero-content {
    background: rgba(0, 153, 224, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 153, 224, 0.6);
    padding: 5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 900px;
    width: 100%;
    animation: fadeIn 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    animation: rotateBg 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-content>* {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 5px 20px rgba(0, 153, 224, 0.7);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    animation: slideUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
    max-width: 600px;
    margin: 0 auto;
}

.pulse-ring {
    width: 150px;
    height: 150px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.pulse-ring.delay {
    animation-delay: 2s;
}

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

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        width: 150px;
        height: 150px;
        opacity: 0.5;
        border-width: 2px;
    }

    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        border-width: 0px;
    }
}

/* Glitch Effect Subtle */
.glitch {
    position: relative;
    /* Removed aggressive old glitch, using an elegant hover glitch instead */
    transition: text-shadow 0.3s ease;
}

.glitch:hover {
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.8), -3px 0 rgba(255, 0, 0, 0.4), 3px 0 rgba(0, 0, 255, 0.4);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    position: relative;
    background-color: #f8fafc;
    /* Very light gray/blue, almost white */
    z-index: 10;
    color: #1a202c;
    /* Dark text for contrast */
}

.about-container {
    max-width: 1250px;
    /* Expanded from 1000px to give it more room */
    margin: 0 auto;
    padding: 0 5%;
}

.about-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.1;
    /* Removed text-transform: capitalize to respect HTML casing */
}

.about-header h2.bold-text {
    font-weight: 800;
    color: var(--primary-color);
}

.about-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.benefit-item p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
    font-weight: 400;
    margin: 0;
}

.about-images-wrapper {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: auto;
}

.office-img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 81, 123, 0.15);
    transition: transform 0.4s ease;
}

.primary-img {
    align-self: flex-end;
    margin-top: 0;
    z-index: 1;
}

.secondary-img {
    align-self: flex-start;
    margin-left: 0;
    margin-top: -120px;
    border: 5px solid #ffffff;
    z-index: 2;
}

.office-img:hover {
    transform: translateY(-5px);
    z-index: 3;
}

/* Projects Carousel Section */
.projects-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.projects-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 5%;
}

.projects-header h2 {
    font-size: 3rem;
    color: var(--text-main);
    font-weight: 300;
}

.projects-header h2 .bold-text {
    font-weight: 800;
    color: var(--accent-color);
}

.projects-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    padding: 2rem 0;
}

/* Gradient Masks for fading edges */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

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

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

.projects-carousel {
    width: 100%;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    align-items: center;
}

.carousel-slide {
    width: 320px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    user-select: none;
    /* Prevent text selection while dragging */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    pointer-events: none;
    /* Crucial: stops image drag-and-drop from interfering with JS scroll */
}

.carousel-slide:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
    z-index: 5;
}

.carousel-slide:hover img {
    transform: scale(1.1);
}

/* Swiper custom continuous linear animation override */
.swiper-wrapper {
    transition-timing-function: linear;
}

.about-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.about-content-box p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
    /* Darker gray for readability */
    margin-bottom: 1.5rem;
    font-weight: 400;
    /* Slightly thicker for light background */
}

.about-content-box p:last-child {
    margin-bottom: 0;
}

/* Footer Section */
.main-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-contact h3,
.footer-social h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.2);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover img {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        justify-content: flex-start;
        /* Flow everything to the left naturally */
        gap: 20px;
        /* Space between hamburger and logo */
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

    .about-content-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
        /* Tighter padding for mobile */
    }

    .about-text {
        gap: 1.5rem;
    }

    .about-images-wrapper {
        flex: auto;
        width: 100%;
        margin-top: 2rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    .primary-img {
        width: 100%;
        max-width: 380px;
        height: 360px;
        margin-top: 0;
        align-self: center;
    }

    .secondary-img {
        width: 100%;
        max-width: 380px;
        height: 360px;
        margin-left: 0;
        margin-top: -80px;
        align-self: center;
        transform: none;
    }

    .carousel-slide {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        margin: 0 15px;
    }

    .badge {
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 6px 15px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    header.scrolled {
        padding: 15px 0;
    }

    .projects-section {
        padding: 4rem 0;
    }

    .projects-header h2 {
        font-size: 2.2rem;
    }

    .carousel-slide {
        width: 240px;
        height: 320px;
    }

    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        padding: 3rem 5%;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .benefit-title {
        font-size: 1.3rem;
    }

    .benefit-item p {
        font-size: 1rem;
    }

    .primary-img,
    .secondary-img {
        height: 280px;
    }

    .secondary-img {
        margin-top: -50px;
    }

    .carousel-slide {
        width: 200px;
        height: 280px;
    }
}

/* Contact Page Styles */
.contact-page-section {
    padding: 140px 5% 6rem;
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 1100px;
    width: 100%;
    background: rgba(4, 12, 24, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.contact-info h2 .accent {
    color: var(--accent-color);
}

.services-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.services-list li {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.contact-details p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 81, 123, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 81, 123, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }

    .contact-page-section {
        padding: 120px 5% 4rem;
    }
}