:root {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --nav-bg: rgba(255, 255, 255, 0.95);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow for light theme */
}

/* Reset & Base */
*,
*::before,
*::after {
    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;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.text-light {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.primary-btn {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: var(--transition-fast);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for white nav */
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--accent-color);
    background: #AE7339;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #0f172a;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-bg {
    position: absolute;
    /* top: 0; */
    /* left: 0; */
    width: 60%;
    height: 120%;
    /* Brighter Hero Image */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/hero.jpg') center/contain no-repeat;
    z-index: -1;
    transform: translateZ(-1px) scale(2);
}

.parallax {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    /* background: var(--accent-gradient); */
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Removed text-shadow for cleaner look */
}

.hero-content p {
    font-size: 1.5rem;
    /* color: var(--text-secondary); */
    color: white;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--surface-color);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

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

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-pill {
    font-size: 0.75rem;
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.link-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

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

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Resources */
.resources-bg {
    /* Brighter background */

    background: url('../assets/image.png') center/cover no-repeat fixed;
    /* Add white overlay instead of dark */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.3); */
    /* White overlay */
}

/* Override text colors for this section since background is light now */
#resources .section-title {
    /* color: var(--text-primary); */
    color: white;
}

#resources .section-subtitle {
    /* color: var(--text-secondary); */
    color: white;
}

.resources-list {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    background: rgba(255, 255, 255, 0.7);
    /* Glass */
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.resource-item:hover {
    background: #fff;
    transform: scale(1.02);
}

.resource-info i {
    color: #10b981;
    /* Green */
}

.resource-info div {
    color: var(--text-primary);
}

.resource-info div div {
    color: var(--text-secondary) !important;
    /* Force override inline style */
}

/* Testimonial Carousel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
    /* background: #6366f1; */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.testimonial-card-modern {
    min-width: 100%;
    /* For 1 per view */
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    /* Clean modern shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #fbbf24;
    /* Amber */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.google-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.review-source {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Modern Contact Section (2 Columns) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Flush 2 columns */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Large elevation */
    max-width: 1100px;
    /* Wider */
    margin: 0 auto;
}

.contact-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.contact-form-container {
    padding: 4rem;
    background: #fff;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.whatsapp-btn {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    /* WhatsApp Green Gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: #f1f5f9;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .contact-image {
        min-height: 250px;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}