@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-blue: #00f2ea;
    --accent-purple: #ff00ff;
    --accent-pink: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-text: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    background: linear-gradient(rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.95)), url('assets/images/watermark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    /* Fallback */
    color: white;
    border: 1px solid var(--accent-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 234, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Header */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.logo-img {
    height: 50px;
    /* Kept from previous iterations to support image logo */
    object-fit: contain;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glow Effects */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Capabilities Section */
.capabilities-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cap-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.cap-tab:hover,
.cap-tab.active {
    border-color: var(--accent-blue);
    background: rgba(0, 242, 234, 0.1);
    color: white;
}

.capabilities-list {
    max-width: 900px;
    margin: 0 auto;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capabilities-list.active {
    display: flex;
    opacity: 1;
}

.cap-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
}

.cap-item:last-child {
    border-bottom: none;
}

.cap-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.cap-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
    font-weight: 600;
}

.cap-content p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
}

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

.card p {
    color: #aaa;
}

/* Footer */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

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

.social-icons a:hover {
    color: white;
    background: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(157, 0, 255, 0.3);
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .success-modal {
    transform: translateY(0);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-blue);
}

.success-modal h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-modal p {
    color: #aeaeae;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-close-btn {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
}

/* Mobile */
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Base Nav Styles (ensuring desktop looks right with new class) */
.nav-menu {
    display: flex;
    align-items: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Contact Page Styles */
.contact-page {
    background: #020024;
    /* Deep dark blue background */
    background: linear-gradient(90deg, #020024 0%, #090979 35%, #00d4ff 100%);
    /* Optional: dynamic BG */
    background: #050505;
    /* Stick to main theme or use the reference blue? Reference looks like deep blue. Let's use a deep blue-black blend to fit the brand */
    background: radial-gradient(circle at top left, #0a0a2e, #000000);
}

.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    /* Offset for fixed header */
}

.contact-container {
    display: flex;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

/* Left Side */
.contact-info {
    flex: 1;
    min-width: 300px;
    color: white;
    padding-right: 20px;
}

.contact-info h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-icon svg {
    color: var(--accent-blue);
    margin-top: 5px;
}

.info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-text p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Right Side (Form) */
.contact-form-wrapper {
    flex: 1;
    min-width: 350px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #1e293b;
}

.contact-form .form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    /* Spacing handled by group */
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

/* Hover/Focus Effects for Labels */
.contact-form .form-group:hover label,
.contact-form .form-group:focus-within label {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback color if gradient fails */
    color: var(--accent-blue);
    transform: scale(1.05) translateX(5px);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #0f172a;
    transition: border-color 0.3s;
    background: transparent;
    outline: none;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 5%;
    text-align: center;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent-purple);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 20px;
}

.testimonial-card p {
    color: #ddd;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info h4 {
    color: var(--accent-blue);
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.9rem;
    color: #888;
}

/* Portfolio Section */
#portfolio {
    padding: 80px 5%;
    text-align: center;
}

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

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-preview {
    height: 250px;
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-preview {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: left;
}

.portfolio-info h3 {
    margin-bottom: 5px;
    color: white;
    font-size: 1.2rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 5%;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    /* responsive */
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent-purple);
}

.newsletter-form button {
    border: none;
    background: var(--gradient-1);
    /* Use brand gradient */
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Specific styling for Date/Time to match text inputs */
.contact-form input[type="date"],
.contact-form input[type="time"] {
    color: #64748b;
    /* Lighter color for placeholder effect if needed, or stick to dark */
    color: #0f172a;
}


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

.submit-btn {
    width: 100%;
    background: #4f46e5;
    /* Indigo/Purple similar to reference */
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #4338ca;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        padding-bottom: 50px;
        gap: 40px;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
        width: 100%;
        max-width: 600px;
    }

    .contact-info h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    /* Center the info items (icon + text) block */
    .info-item {
        justify-content: center;
        text-align: left;
        /* Keep text left-aligned for readability */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 500px;
        padding: 30px;
        min-width: auto;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding-top: 120px;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 20px;
    }
}