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

:root {
    --bg: #070913;
    --bg-alt: #0d1127;
    --bg-card: rgba(17, 24, 48, 0.45);
    --border: rgba(99, 102, 241, 0.08);
    --border-hover: rgba(99, 102, 241, 0.25);
    
    /* Sleek Indigo/Violet and Emerald Palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --radius-lg: 1.25rem;
    --radius-md: 0.75rem;
    --radius-sm: 0.5rem;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Ambient glow backgrounds */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.35;
    pointer-events: none;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
    top: 10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: 15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.15); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0.75rem 0 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    font-weight: 700;
    display: inline-block;
}

/* Glassmorphism card foundation */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.50rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
}

.btn-primary,
.nav-links a.btn-primary,
.mobile-menu-links a.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover,
.nav-links a.btn-primary:hover,
.mobile-menu-links a.btn-primary:hover {
    background: var(--primary-light);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-primary:active,
.nav-links a.btn-primary:active,
.mobile-menu-links a.btn-primary:active {
    transform: translateY(0);
}

.btn-outline,
.nav-links a.btn-outline,
.mobile-menu-links a.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text) !important;
}

.btn-outline:hover,
.nav-links a.btn-outline:hover,
.mobile-menu-links a.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
    color: var(--text) !important;
    transform: translateY(-2px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.75rem;
}

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

.logo span.logo-dash {
    color: var(--text) !important;
    margin-left: 0.12em;
    margin-right: 0.08em;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.nav-cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

/* Mobile Menu Trigger */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-light);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--text);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 8rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.2rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.15;
}

.hero-tagline {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-light) 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Hero Interactive Visuals */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-card-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-card {
    background: rgba(17, 24, 48, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: floatingCard 6s infinite alternate ease-in-out;
}

.tech-card.delay-1 {
    animation-delay: -3s;
    margin-left: 2rem;
}

.tech-card.delay-2 {
    animation-delay: -1.5s;
    margin-left: 1rem;
}

.tech-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.tech-icon.accent {
    background: var(--accent-glow);
    color: var(--accent);
}

.tech-icon.warning {
    background: var(--warning-glow);
    color: var(--warning);
}

.tech-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tech-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes floatingCard {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

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

.service-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-icon-wrapper.accent {
    background: var(--accent-glow);
    border-color: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.service-icon-wrapper.warning {
    background: var(--warning-glow);
    border-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2.5rem;
    text-align: left;
}

.why-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

/* Portfolio Section */
.portfolio-section {
    position: relative;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 3rem;
    align-items: center;
    border-radius: var(--radius-lg);
}

.portfolio-visual {
    width: 100%;
}

.browser-mockup {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-header {
    background: #111425;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    display: inline-block;
}

.browser-header .dot:nth-child(2) { background: #ffbd2e; }
.browser-header .dot:nth-child(3) { background: #27c93f; }

.browser-address {
    margin-left: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 3rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    flex-grow: 1;
    max-width: 300px;
}

.browser-body {
    background: #0d1127;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.browser-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-in-out;
}

.browser-mockup:hover .browser-body img {
    transform: translateY(-20%);
}

.portfolio-badge {
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portfolio-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags span {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-info-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.contact-info-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info-panel > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.contact-method-card:not(.static-card):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.contact-method-card.static-card {
    cursor: default;
    opacity: 0.7;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.method-icon.whatsapp {
    background: var(--accent-glow);
    color: var(--accent);
}

.method-icon.messenger {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.method-value {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Contact Form Panel */
.contact-form-panel {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-sans);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 1rem;
}

.form-status-message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Reveal on scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer styling */
footer {
    background: #04050b;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 5rem 0 2rem;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .tech-card-wrapper {
        align-items: center;
    }
    
    .tech-card.delay-1 {
        margin-left: 0;
    }
    
    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .portfolio-item,
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.5rem;
    }

    .service-card {
        padding: 2.25rem 1.5rem;
    }

    .why-card {
        padding: 1.75rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* ==========================================================================
   FAQ Section Styling
   ========================================================================== */
.faq-section {
    padding: 8rem 0;
    position: relative;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.faq-item:hover .faq-question h3 {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item:hover .faq-icon {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2rem;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    background: rgba(99, 102, 241, 0.01);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 30px -15px rgba(99, 102, 241, 0.15);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
}
