/* ------------------- */
/* 💎 Modern Design System (ENHANCED) */
/* ------------------- */
:root {
    --clr-bg: #0B0F19;
    --clr-surface: #1A202C;
    --clr-text-primary: #F7FAFC;
    --clr-text-secondary: #A0AEC0;
    --clr-border: #2D3748;
    
    --clr-accent-purple: #9F7AEA;
    --clr-accent-cyan: #38B2AC;
    --clr-accent-gradient: linear-gradient(90deg, var(--clr-accent-purple), var(--clr-accent-cyan));

    --ff-primary: 'Poppins', sans-serif;
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-md: 0 4px 10px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px -5px;
}

/* ------------------- */
/* Reset & Globals     */
/* ------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* [COOL] Animated Aurora Background */
body {
    font-family: var(--ff-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text-secondary);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 10% 10%, hsla(258, 67%, 57%, 0.2) 0%, transparent 30%),
                radial-gradient(circle at 90% 80%, hsla(178, 51%, 43%, 0.2) 0%, transparent 40%);
    animation: background-pan 25s linear infinite;
    z-index: -1;
}
@keyframes background-pan { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { color: var(--clr-text-primary); font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: clamp(2rem, 5vw, 2.75rem); text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.text-accent { background: var(--clr-accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ------------------- */
/* Header (Glassmorphism) */
/* ------------------- */
.header {
    padding: 1rem 0;
    position: sticky; top: 0; width: 100%; z-index: 1000;
    background-color: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 600; color: var(--clr-text-primary); }
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--clr-border); }
.main-nav { display: none; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--clr-text-secondary); transition: var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--clr-text-primary); }
.btn-contact-nav { display: none; }
.mobile-nav-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--clr-text-primary); }
@media (min-width: 768px) { .main-nav, .btn-contact-nav { display: flex; } .mobile-nav-toggle { display: none; } }

/* ------------------- */
/* Buttons (Gradient Shift) */
/* ------------------- */
.btn { display: inline-block; padding: 0.8rem 2.5rem; border-radius: 50px; font-weight: 600; transition: var(--transition-smooth); border: 2px solid transparent; text-align: center; position: relative; overflow: hidden; z-index: 1; }
.btn::before { content: ''; position: absolute; inset: -2px; background: var(--clr-accent-gradient); z-index: -1; border-radius: inherit; transition: var(--transition-smooth); }
.btn-primary { background: var(--clr-bg); color: var(--clr-text-primary); }
.btn-primary:hover { transform: scale(1.05); box-shadow: var(--shadow-glow) var(--clr-accent-purple); color: #fff; }
.btn-primary:hover::before { opacity: 0; }
.btn-primary::before { background: var(--clr-accent-gradient); }
.btn-secondary { background: transparent; color: var(--clr-text-primary); border-color: var(--clr-border); }
.btn-secondary:hover { background-color: var(--clr-surface); border-color: var(--clr-surface); }

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section { padding: 6rem 0; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.availability-status { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; font-weight: 500; padding: 0.5rem 1rem; background-color: var(--clr-surface); border-radius: 20px; border: 1px solid var(--clr-border); }
.glowing-dot { width: 10px; height: 10px; background-color: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); } 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.hero-title { font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(20px) rotate(5deg); animation: char-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes char-reveal { to { opacity: 1; transform: translateY(0) rotate(0deg); } }
.hero-description { font-size: 1.1rem; max-width: 600px; margin: 1.5rem auto 2.5rem; }
.hero-cta { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }

/* ------------------- */
/* Services Section    */
/* ------------------- */
.services-section { padding: 6rem 0; background-color: var(--clr-surface); }
.services-bento-box { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-bento-box { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-bento-box { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--clr-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--clr-border); text-align: center; transition: var(--transition-smooth); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--clr-accent-purple); }
.service-icon { display: inline-flex; padding: 1rem; background: var(--clr-accent-gradient); color: white; border-radius: 50%; margin-bottom: 1rem; transition: var(--transition-smooth); }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-10deg); box-shadow: var(--shadow-glow) var(--clr-accent-cyan); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ------------------- */
/* Projects (Gradient Glow) */
/* ------------------- */
.projects-section { padding: 6rem 0; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .project-grid { grid-template-columns: 1fr 1fr; } }
.project-card { background-color: var(--clr-surface); border-radius: 15px; overflow: hidden; transition: var(--transition-smooth); position: relative; box-shadow: var(--shadow-md); }
.project-card::after { content: ''; position: absolute; inset: -2px; background: var(--clr-accent-gradient); z-index: -1; border-radius: 17px; filter: blur(10px); opacity: 0; transition: opacity 0.4s ease; }
.project-card:hover { transform: translateY(-8px) scale(1.02); }
.project-card:hover::after { opacity: 0.7; }
.project-image-link { display: block; }
.project-image { width: 100%; height: 250px; object-fit: cover; }
.project-content { padding: 1.5rem; background: var(--clr-surface); }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.project-tags a { font-size: 0.8rem; color: var(--clr-text-secondary); background: var(--clr-bg); padding: 0.25rem 0.75rem; border-radius: 20px; }
.project-name { font-size: 1.25rem; }

/* ------------------- */
/* Testimonials Section */
/* ------------------- */
.testimonials-section { padding: 6rem 0; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
@media (min-width: 992px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card { background-color: var(--clr-surface); padding: 2rem; border-radius: 15px; border: 1px solid var(--clr-border); }
.testimonial-text { font-size: 1.1rem; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author h4 { font-size: 1.1rem; margin: 0; }
.testimonial-author p { font-size: 0.9rem; margin: 0; color: var(--clr-text-secondary); }

/* ------------------- */
/* All other sections... */
/* ------------------- */
.about-section { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1.2fr; } }
.about-image img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.about-content .section-title { text-align: left; }

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--clr-border); margin-top: 4rem; }
.contact-box { background: var(--clr-surface); text-align: center; padding: 4rem 2rem; border-radius: 20px; margin-bottom: 4rem; }
.contact-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-box p { max-width: 600px; margin: 0 auto 2rem; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.social-links { display: flex; gap: 1.5rem; }
.social-links a:hover { color: var(--clr-text-primary); transform: translateY(-3px); }

/* --- [Modal CSS] --- */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(11, 15, 25, 0.8); backdrop-filter: blur(5px); display: none; place-items: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.visible { display: grid; opacity: 1; }
.modal-content { background-color: var(--clr-surface); padding: 3rem; border-radius: 15px; text-align: center; max-width: 450px; width: 90%; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-icon { color: #4ade80; margin-bottom: 1.5rem; }
.modal-icon svg { width: 60px; height: 60px; stroke-width: 1.5; }
.modal-content h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.modal-content p { margin-bottom: 2rem; }
#close-modal-btn { width: 100%; }

/* --- Scroll-triggered Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }