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

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(18, 18, 22, 0.6);
    --primary: #8b5cf6;
    /* Royal Purple */
    --primary-glow: rgba(139, 92, 246, 0.3);
    --secondary: #f97316;
    /* Sunset Orange */
    --secondary-glow: rgba(249, 115, 22, 0.3);
    --accent: #10b981;
    /* Emerald */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Dynamic Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(249, 115, 22, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(10, 10, 12, 1) 0%, rgba(5, 5, 8, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h3 {
    font-size: 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
}

.header.scrolled {
    padding: 1.25rem 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem;
    }
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4rem;
    align-items: center;
}

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

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0a0a0c;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

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

.mobile-nav .nav-link {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

/* Buttons */
.btn {
    padding: 1.25rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px var(--primary-glow), 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Section Styling */
section {
    padding: 5rem 0;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 3rem auto 5rem;
    max-width: 700px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.15rem;
        margin: 2rem auto 3.5rem;
    }
}

.badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .badge {
        margin-bottom: 1.5rem;
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }
}

/* Cards & Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 3rem 2rem;
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-20px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(20, 20, 25, 0.8);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project Showcase */
.project-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 550px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .project-card {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .project-card {
        height: 350px;
    }
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.7);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .project-overlay {
        padding: 2.5rem;
    }
}

.project-card:hover .project-img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(0.5);
}

/* Form Styling */
.input-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    padding: 2rem 0 5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 1100px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
}