:root {
    --primary-color: #0a192f; /* Deep Navy Blue */
    --secondary-color: #64ffda; /* Teal/Cyan Accent */
    --accent-color: #bd34fe; /* Purple for gradients */
    --text-primary: #cbd6f4; /* Light Blue-Grey */
    --text-secondary: #8892b0; /* Muted Grey */
    --bg-dark: #0a192f;
    --bg-light: #112240; /* Slightly lighter navy */
    --bg-card: #172a45;
    --white: #e6f1ff;
    --transition: all 0.3s ease-in-out;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --gradient-main: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
}

/* Utilities */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-tag {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Header & Nav */
header {
    background: rgba(10, 25, 47, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.highlight {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: rgba(100, 255, 218, 0.1);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    min-height: 90vh;
    padding: 120px 0;
    background: radial-gradient(circle at 30% 20%, #172a45 0%, #0a192f 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background mesh/glow effect */
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* CSS-only SEO Card Visual */
.seo-card-visual {
    width: 380px;
    height: 480px;
    background: rgba(23, 42, 69, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.seo-card-visual:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line {
    height: 8px;
    background: rgba(203, 214, 244, 0.1);
    border-radius: 4px;
}
.w-70 { width: 70%; }
.w-50 { width: 50%; }

.chart-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(203, 214, 244, 0.1);
    margin-top: 20px;
}

.bar {
    width: 40px;
    background: linear-gradient(to top, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.5));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar.h-40 { height: 40%; }
.bar.h-60 { height: 60%; }
.bar.h-80 { height: 80%; }
.bar.h-100 { height: 100%; background: linear-gradient(to top, var(--secondary-color), var(--accent-color)); box-shadow: 0 0 15px rgba(100, 255, 218, 0.4); }

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.stat-box {
    text-align: center;
}

.stat-box .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-box .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

@keyframes float {
    0% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-10deg) rotateX(5deg); }
    100% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.trust-indicators {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
}

.trust-indicators i {
    color: var(--secondary-color);
}
/* End Hero */

/* About Section Enhancements */
.about-visual {
    display: flex;
    justify-content: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag {
    background: rgba(100, 255, 218, 0.05);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(100, 255, 218, 0.15);
    transform: translateY(-2px);
}
/* End About */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-right: 15px;
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    color: var(--secondary-color);
}

/* Sections */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 15px;
}

/* About Section */
#about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.stats-list {
    margin-top: 30px;
    display: flex;
    gap: 40px;
}

.stats-list li {
    display: flex;
    flex-direction: column;
}

.stats-list strong {
    color: var(--secondary-color);
    font-size: 1.5rem;
    display: block;
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background: #0a192f;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-secondary);
    position: relative;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
    transition: var(--transition);
}

.placeholder-img:hover::before {
    top: 10px;
    left: 10px;
}

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

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #172a45;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.service-card i {
    font-size: 1.5rem; /* Reset font size as it's controlled by icon-box */
    margin-bottom: 0;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Process Section */
#process {
    background: var(--bg-dark);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    position: relative;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(203, 214, 244, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.step h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Testimonials */
#testimonials {
    background: var(--bg-light);
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.quote {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.client-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.client-info span {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* FAQ */
#faq {
    background: var(--bg-dark);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
}

/* Portfolio Updates */
.portfolio-item {
    background: var(--bg-card); /* Update to match theme */
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
}

/* Contact Form */
#contact {
    background: var(--bg-light);
}

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

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-item i {
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form {
    background: #172a45;
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0a192f;
    border: 1px solid #233554;
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background: #020c1b;
    color: var(--text-secondary);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.8rem;
    border-top: 1px solid #233554;
    padding-top: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999; /* Increased z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

.whatsapp-float i {
    margin-top: 2px; /* Center icon better vertically if needed */
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #hero {
        padding: 80px 0;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        flex-direction: column-reverse; /* Stack visual on top of text or vice versa */
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
    }
    
    .trust-indicators {
        justify-content: center;
    }

    .seo-card-visual {
        width: 100%;
        max-width: 350px;
        height: 400px;
        transform: rotateY(0deg) rotateX(0deg); /* Disable 3D on mobile for simplicity */
        animation: none; /* Disable float if performance is concern, or keep it */
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #112240;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px -15px rgba(2,12,27,0.7);
    }

    .nav-menu.active {
        right: 0;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}