/* Global Styles */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #00a8cc;
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Buttons with 3D Effect */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.1s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    top: 0;
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 6px 0 #003d82, 0 10px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    top: 6px;
    box-shadow: 0 0 0 #003d82, 0 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #003d82, 0 15px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 15px;
    box-shadow: 0 4px 0 rgba(0, 86, 179, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 0 var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary:active {
    top: 4px;
    box-shadow: none;
    transform: translateY(0);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    color: var(--white);
    padding: 10px 25px;
    box-shadow: none;
    /* Reset 3D shadow for nav link button if desired, or keep it */
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Hero Shapes - 3D Spheres */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 10s infinite ease-in-out;
    box-shadow: inset -20px -20px 60px rgba(0, 0, 0, 0.1), inset 20px 20px 60px rgba(255, 255, 255, 0.8);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 86, 179, 0.4), rgba(0, 86, 179, 0.8));
    top: -100px;
    right: -100px;
    backdrop-filter: blur(10px);
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 168, 204, 0.4), rgba(0, 168, 204, 0.8));
    bottom: 50px;
    left: -50px;
    animation-delay: 2s;
    backdrop-filter: blur(10px);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.about-details {
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.detail-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e6f0fa;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Services Section - 3D Cards */
.services {
    background-color: var(--bg-light);
    perspective: 1000px;
    /* Enable 3D space */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Subtle border */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    /* Faster transition for tilt */
    text-align: center;
    transform-style: preserve-3d;
    /* Important for 3D children */
    border-bottom: 5px solid rgba(0, 0, 0, 0.05);
    /* Physical thickness */
}

.service-card:hover {
    /* Transform handled by JS for dynamic tilt, but default hover fallback: */
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 5px 5px 10px #d9d9d9, -5px -5px 10px #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
    transform: translateZ(20px);
    /* Pop out in 3D */
}

.service-card:hover .icon-box {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: translateZ(30px) scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    transform: translateZ(10px);
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    transform: translateZ(5px);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item a {
    color: var(--white);
    text-decoration: underline;
}

.contact-form-container {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.llpin {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #bbb;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    flex: 1;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
}