/* Core Design System & Tokens */
:root {
    --bg-dark: #05070f;
    --bg-surface: rgba(15, 22, 42, 0.65);
    --bg-surface-hover: rgba(30, 41, 59, 0.7);
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #06b6d4; /* Cyan */
    --color-accent: #a855f7; /* Purple */
    --color-success: #10b981; /* Emerald */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(16px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Background Blur Blobs */
.bg-blur {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
    animation: floatBlobs 20s infinite alternate ease-in-out;
}

.bg-blur-1 {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.bg-blur-2 {
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

.bg-blur-3 {
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.9);
    }
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 7, 15, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.accent-text {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px 0;
    position: relative;
}

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

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

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 10%, var(--color-secondary) 50%, var(--color-accent) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(20px);
    animation: rotateSphere 8s infinite linear;
}

.sphere-2 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
    animation: rotateSphere 6s infinite linear reverse;
    left: 20%;
    top: 15%;
}

@keyframes rotateSphere {
    from { transform: rotate(0deg) translate(20px) rotate(0deg); }
    to { transform: rotate(360deg) translate(20px) rotate(-360deg); }
}

.floating-card {
    position: absolute;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: floatCard 6s infinite ease-in-out;
}

.web-card {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.mobile-card {
    bottom: 10%;
    right: -20px;
    animation-delay: -3s;
}

@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-card i {
    font-size: 2rem;
}

.icon-code {
    color: var(--color-secondary);
}

.icon-mobile {
    color: var(--color-accent);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.bar-long { width: 80px; }
.bar-medium { width: 55px; }
.bar-short { width: 40px; }

/* Sections Common styling */
section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

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

.service-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-secondary);
    margin-bottom: 1.75rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Projects Coming Soon */
.coming-soon-container {
    max-width: 750px;
    margin: 0 auto;
}

.coming-soon-card {
    background: linear-gradient(135deg, rgba(15, 22, 42, 0.8), rgba(9, 14, 28, 0.9));
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 4rem 3rem;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.coming-soon-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: bounceIcon 3s infinite ease-in-out;
}

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

.coming-soon-card h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.coming-soon-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem auto;
}

.apps-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.indicator-dot.active {
    background: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
    animation: flashDot 2s infinite ease-in-out;
}

.indicator-dot.active:nth-child(2) { animation-delay: 0.3s; }
.indicator-dot.active:nth-child(3) { animation-delay: 0.6s; }
.indicator-dot.active:nth-child(4) { animation-delay: 0.9s; }
.indicator-dot.active:nth-child(5) { animation-delay: 1.2s; }

@keyframes flashDot {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-visual {
    display: flex;
    justify-content: flex-start;
}

.plane-icon {
    font-size: 4.5rem;
    color: rgba(99, 102, 241, 0.15);
    transform: rotate(-15deg);
    animation: driftPlane 8s infinite alternate ease-in-out;
}

@keyframes driftPlane {
    0% { transform: translate(0, 0) rotate(-15deg); }
    100% { transform: translate(15px, -15px) rotate(-10deg); }
}

.badge-accent {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--color-accent);
}

/* Contact Form */
.contact-form-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 28px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.btn-submit {
    justify-content: center;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 7, 15, 0.9);
}

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

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-success);
    border-left: 5px solid var(--color-success);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.75rem;
    color: var(--color-success);
}

.toast-message h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

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

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toast-close:hover {
    color: var(--text-main);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .contact-info-panel {
        text-align: center;
    }
    
    .contact-visual {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 7, 15, 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        width: 80%;
        text-align: center;
        padding: 1rem;
    }
    
    .coming-soon-card {
        padding: 3rem 1.5rem;
    }
    
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
