:root {
    --primary-color: #00a8ff;
    --secondary-color: #004e92;
    --dark-bg: #051923;
    --light-bg: #f0f4f8;
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --ocean-gradient: linear-gradient(135deg, #000428 0%, #004e92 100%);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: var(--dark-bg);
    --card-bg: var(--glass-bg);
    --text-color: var(--text-light);
}

[data-theme="light"] {
    --bg-color: var(--light-bg);
    --card-bg: rgba(0, 0, 0, 0.05);
    --text-color: var(--text-dark);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.wave-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wave {
    width: 10px;
    height: 50px;
    background: var(--primary-color);
    animation: wave-anim 1s infinite ease-in-out;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }

@keyframes wave-anim {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

.loader-text {
    letter-spacing: 5px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

#dark-mode-toggle, .menu-btn {
    cursor: pointer;
    font-size: 20px;
}

.menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--ocean-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: move-particle 20s linear infinite;
}

@keyframes move-particle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark-bg);
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bg svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-bg .shape-fill {
    fill: var(--dark-bg);
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.section-title.center {
    width: 100%;
    text-align: center;
}

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

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.glass-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 30px;
    background: rgba(0, 168, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.glass-card i {
    font-size: 30px;
    color: var(--primary-color);
}

.floating {
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    color: var(--primary-color);
}

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

.service-card {
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 168, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.service-card .icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Stats */
.stats {
    background: var(--ocean-gradient);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    background: rgba(0, 168, 255, 0.05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
}

.stars {
    color: #f1c40f;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.client-info h4 {
    font-size: 1rem;
}

.client-info span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    background: rgba(0, 168, 255, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item a {
    color: #fff;
    text-decoration: none;
}

.whatsapp-btn {
    background: #25d366;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    width: fit-content;
}

.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #020b10;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.fab {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about-wrapper, .contact-wrapper { grid-template-columns: 1fr; }
    .about-img { order: 2; }
    .about-text { order: 1; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu logic to be added in JS */
    }
    .menu-btn {
        display: block;
    }
    .hero h1 { font-size: 2.5rem; }
}
