/* =============================================
   Google Fonts & Modern Reset
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #00f291;
    --primary-glow: rgba(0, 242, 145, 0.4);
    --secondary: #7000ff;
    --accent: #00d4ff;
    --bg-dark: #030303;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* =============================================
   Header & Navbar
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(3, 3, 3, 0.95);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hamburger { display: none; }

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
}

.nav-link:hover {
    color: var(--primary);
}

.resume-btn {
    padding: 0.6rem 1.4rem;
    background: var(--primary);
    color: #000 !important;
    border-radius: 6px;
    font-weight: 700;
}

.call-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    border-radius: 6px;
    font-weight: 600;
}

.call-btn:hover { background: var(--primary-glow); }

/* =============================================
   Hero & Sections
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 60px 0; }
.text-center { text-align: center; }

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 3.5rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 0;
    background: radial-gradient(circle at top right, rgba(0, 242, 145, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(112, 0, 255, 0.08), transparent);
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-socials a svg {
    width: 30px;
    height: 30px;
    fill: var(--text-dim);
    transition: var(--transition);
}

.hero-socials a:hover svg {
    fill: var(--primary);
    transform: translateY(-3px);
}

.hero-content { width: 100%; }
.hero-content h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: 1.1; margin-bottom: 2rem; margin-top: 1rem; }
.hero-content h2 { color: var(--primary); margin-bottom: 2rem; font-size: clamp(1.2rem, 3.5vw, 2rem); }
.hero-description { font-size: 1.2rem; color: var(--text-dim); max-width: 800px; margin-bottom: 2rem; line-height: 1.6; }

.hero-cta { 
    display: flex; 
    gap: 1.5rem; 
    margin-bottom: 2.5rem; 
    position: relative;
    z-index: 10;
}

.btn { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    border: none; 
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
}
.btn-primary { 
    background: var(--primary); 
    color: #000 !important; 
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px var(--primary-glow); }
.btn-secondary { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid var(--primary); 
    color: var(--primary) !important; 
}
.btn-secondary:hover { 
    background: rgba(0, 242, 145, 0.15); 
    border-color: var(--primary); 
    color: var(--primary) !important; 
    box-shadow: 0 10px 20px var(--primary-glow); 
    transform: translateY(-3px); 
}

/* =============================================
   About Section
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.about-image img { width: 100%; border-radius: 12px; border: 1px solid var(--border-glass); }
.about-content h3 { color: var(--primary); margin-bottom: 1.5rem; font-size: 1.8rem; }
.about-content p { color: var(--text-dim); margin-bottom: 1.5rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: 1rem; }
.skills-list li { background: var(--bg-card); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem; border: 1px solid var(--border-glass); }


/* =============================================
   SEO & Expertise
   ============================================= */
.seo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.seo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    flex: 1 1 340px;
    max-width: 380px;
}

.seo-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.seo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seo-card h3 { margin-bottom: 0.75rem; color: var(--primary); font-size: 1.25rem; }
.seo-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}

@media (max-width: 1200px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card { 
    background: var(--bg-card); 
    padding: 2.5rem 1.5rem; 
    border-radius: 12px; 
    border: 1px solid var(--border-glass); 
    position: relative; 
    transition: var(--transition);
}

.testimonial-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.quote-icon { position: absolute; top: 10px; right: 20px; font-size: 4rem; color: var(--primary); opacity: 0.1; }
.testimonial-text { font-style: italic; margin-bottom: 2rem; color: #eee; }
.testimonial-author h5 { color: var(--primary); font-size: 1.1rem; }
.testimonial-author span { color: var(--text-dim); font-size: 0.85rem; }

/* =============================================
   Pricing Section
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 145, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(to bottom, rgba(0, 242, 145, 0.05), transparent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 242, 145, 0.3);
}

.pricing-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* =============================================
   Projects & Experience
   ============================================= */
.projects-grid, .experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card, .client-card { 
    background: var(--bg-card); 
    border-radius: 12px; 
    border: 1px solid var(--border-glass); 
    overflow: hidden; 
    transition: var(--transition); 
}
.project-card:hover, .client-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.project-image img, .client-image img { width: 100%; height: 240px; object-fit: cover; }
.project-content, .card-content { padding: 2rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.project-tags span { background: #111; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.8rem; color: var(--accent); }
.btn-link { color: var(--primary); font-weight: 700; margin-right: 1.5rem; }
.btn-link:hover { text-decoration: underline; }
.category-title { color: var(--primary); margin: 3rem 0 1.5rem 0; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.5rem; display: inline-block; }
.platform { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-top: 0.5rem; display: block; }


/* =============================================
   Contact Form (High Visibility)
   ============================================= */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 5rem; 
    align-items: center; 
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 { 
    font-size: 2.2rem; 
    margin-bottom: 1.2rem; 
    color: var(--primary); 
}

.contact-info p { 
    margin-bottom: 2.5rem; 
    color: var(--text-dim); 
    max-width: 450px; 
    line-height: 1.7;
}

.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--primary); font-weight: 500; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #181818;
}

.contact-info ul li { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    font-size: 1.15rem;
}

.contact-info svg { 
    width: 32px; 
    height: 32px; 
    fill: var(--primary); 
    flex-shrink: 0;
}

/* =============================================
   Footer Redesign
   ============================================= */
.footer {
    padding: 60px 0 30px 0;
    background: #000;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 40px;
}

.footer-brand p { color: var(--text-dim); margin: 1.5rem 0; max-width: 300px; }
.footer-socials { display: flex; gap: 1.2rem; }
.footer-socials svg { width: 24px; height: 24px; fill: var(--text-dim); }
.footer-socials a:hover svg { fill: var(--primary); }

.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; color: var(--primary); }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--primary); }

.footer-contact p { color: var(--text-dim); margin-bottom: 0.8rem; }
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

#string {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin: -50px 0 30px 0; /* Pulled up closer to hero */
    position: relative;
    z-index: 5;
}

#string svg {
    max-width: 100%;
    height: auto;
}


/* =============================================
   Responsive
   ============================================= */
@media (max-width: 992px) {
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center;
    }
    .contact-info {
        align-items: center;
    }
    .contact-info p {
        margin-left: auto;
        margin-right: auto;
    }
    .contact-info ul li {
        justify-content: center;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu {
        position: fixed; right: -100%; top: 0; background: #080808;
        width: 280px; height: 100vh; flex-direction: column; 
        justify-content: flex-start; padding: 100px 2rem;
        gap: 1.5rem;
        border-left: 1px solid var(--border-glass); transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
        visibility: hidden;
    }
    .nav-menu.active { 
        right: 0; 
        visibility: visible;
    }
    .nav-item { width: 100%; }
    .nav-link { font-size: 1.1rem; display: block; padding: 0.5rem 0; }
    .resume-btn, .call-btn { width: 100%; text-align: center; margin-top: 0.5rem; }
    
    .hamburger { display: block; z-index: 1001; cursor: pointer; position: relative; }
    .bar { display: block; width: 25px; height: 2px; background: #fff; margin: 6px 0; transition: 0.3s; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center; 
    }
    .about-image {
        max-width: 300px;
        margin: 0 auto;
        order: -1; /* Ensures image is at the top */
    }
    .skills-list {
        justify-content: center;
    }
}

/* Cursor Fix */
#cursor {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); position: fixed;
    pointer-events: none; z-index: 9999;
}