/* CSS Variables & Theme Token */
:root {
    --bg-color: #050505;
    --text-primary: #FAFAFA;
    --text-secondary: #A0A0A0;
    
    --accent-1: #8A2BE2; /* Purple */
    --accent-2: #00FFFF; /* Cyan */
    --accent-3: #FF1493; /* Pink */
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: var(--accent-1);
    color: white;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -10vw;
    left: -10vw;
}

.blob-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: 10vw;
    right: -5vw;
    animation-delay: -5s;
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-3), transparent 70%);
    top: 40vh;
    left: 30vw;
    opacity: 0.2;
    animation-delay: -10s;
}

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

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn i {
    font-size: 0.9em;
    transition: transform 0.3s;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), #5A189A);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-2);
}

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

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 120px 10% 50px;
    max-width: 1440px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Visual Code Card in Hero */
.visual-card {
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #FF5F56; }
.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.card-title {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.card-body.code-block {
    padding: 24px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.code-block .keyword { color: #FF79C6; }
.code-block .classname { color: #50FA7B; }
.code-block .operator { color: #FF79C6; }
.code-block .type { color: #8BE9FD; }
.code-block .property { color: #F8F8F2; }
.code-block .string { color: #F1FA8C; }
.indent { margin-left: 20px; }
.indent-2 { margin-left: 40px; }

/* Expertise Section */
.expertise {
    padding: 100px 10%;
    max-width: 1440px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

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

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

.skill-card {
    padding: 30px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.gradient-bg-1 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gradient-bg-2 { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.gradient-bg-3 { background: linear-gradient(135deg, #FF416C, #FF4B2B); }
.gradient-bg-4 { background: linear-gradient(135deg, var(--accent-3), #FF8C00); }

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* Services Banner */
.services {
    padding: 50px 10%;
    max-width: 1440px;
    margin: 0 auto;
}

.glass-banner {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    max-width: 1440px;
    margin: 0 auto;
}

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

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-2);
}

.method h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.method-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.method-link:hover {
    color: var(--accent-2);
}

/* CTA Visual */
.contact-form-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-border {
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    border-radius: 24px;
    width: 100%;
}

.inner-cta {
    background: var(--bg-color);
    border-radius: 22px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.inner-cta i {
    font-size: 3rem;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.inner-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-btn .small {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 10%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.footer-content i {
    color: var(--accent-3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile toggle hidden for brevity, usually handled via JS */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 3rem;
    }
    .contact-wrapper {
        padding: 30px;
    }
}

/* Reveal Animations */
.reveal, .reveal-up, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal, .reveal-up { transform: translateY(40px); }
.reveal-right { transform: translateX(40px); }

.reveal.active, .reveal-up.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}
