/* ============================= */
/* 1. CSS RESET */
/* ============================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================= */
/* 2. DESIGN VARIABLES */
/* ============================= */

:root {
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #4b5563;

    --primary: #2563eb;
    --primary-dark: #1e40af;

    --card-bg: #ffffff;
    --border-color: #e5e7eb;

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    /* Layout */
     --max-width: 1200px;
    --section-padding: 6rem 1.5rem; 

    /* Effects */
    --radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ============================= */
/* DARK THEME */
/* ============================= */

body.dark-mode {

    --bg: #0f172a;
    --bg-secondary: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;

    --primary: #3b82f6;
    --primary-dark: #2563eb;

    --card-bg: #1f2937;
    --border-color: #374151;

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ============================= */
/* 3. GLOBAL TYPOGRAPHY */
/* ============================= */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================= */
/* 4. LAYOUT SYSTEM */
/* ============================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    background: var(--bg);
    padding: var(--section-padding);
}

/* ============================= */
/* 5. BUTTON SYSTEM */
/* ============================= */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================= */
/* 6. NAVBAR */
/* ============================= */

.navbar {
    width: 100%;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--dark);
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ============================= */
/* RESPONSIVE NAVBAR */
/* ============================= */

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
     background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background:  var(--bg);
        padding: 2rem 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        transform: translateY(-200%);
        transition: 0.4s ease;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ============================= */
/* 7. HERO */
/* ============================= */

.hero {
    
    background: var(--bg-secondary);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text .intro {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
}

/* ============================= */
/* RESPONSIVE HERO SECTION */
/* ============================= */

/* Large Screens */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.6rem;
    }
}

/* Tablets */
@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 450px;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text .description {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text .intro {
        font-size: 0.9rem;
    }

    .hero-text .description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .hero-image img {
        max-width: 100%;
    }
}

/* ============================= */
/* 8. CARDS (Reusable) */
/* ============================= */

.service-card,
.project-card,
.step,
.testimonial-card {
   
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-5px);
}

/* ============================= */
/* 9. GRID SYSTEMS */
/* ============================= */

.services-grid,
.projects-grid,
.process-steps {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.process-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================= */
/* 10. TRUST STRIP */
/* ============================= */

.trust-strip {
    background: var(--gray-light);
}

.trust-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

/* ============================= */
/* 11. CTA SECTION */
/* ============================= */

.cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

/* ============================= */
/* 12. CONTACT */
/* ============================= */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* ============================= */
/* BEAUTIFIED CONTACT FORM */
/* ============================= */



/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-subtitle {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
}

/* Cards Layout */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Individual Card */
.contact-card {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-card a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .contact {
        padding: 70px 20px;
    }

    .contact-card {
        width: 100%;
    }
}




/* ============================= */
/* 13. FOOTER */
/* ============================= */

.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* ============================= */
/* PROJECTS SECTION UPGRADE */
/* ============================= */

.projects {
    background-color: var(--bg-secondary);
}

.projects .section-title {
    margin-bottom: 4rem;
}

/* Grid spacing */
.projects-grid {
    display: grid;
    gap: 2.5rem;
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
    grid-template-columns: 1fr 1fr;
}
/* Tablet */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* Project Card */
.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* Project Image */
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Card Content */
.project-card h3 {
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.75rem 1.5rem;
}

.project-card p {
    margin: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Button alignment */
.project-card .btn-secondary {
    margin: 0 1.5rem 1.8rem 1.5rem;
    align-self: flex-start;
}

/* Optional: Tech stack tags (future use) */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 1.5rem 1rem 1.5rem;
}

.project-tags span {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
}

/* ============================= */
/* ABOUT SECTION UPGRADE */
/* ============================= */

.about {
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

/* Profile Image Styling */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.about-image img:hover {
    transform: translateY(-8px);
}

/* Decorative background effect (subtle modern touch) */
.about-image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb20, #7c3aed20);
    top: 20px;
    left: 20px;
    border-radius: 20px;
    z-index: -1;
}

/* Text Styling */
.about-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #4b5563;
}

/* About List */
.about-list {
    list-style: none;
    margin-bottom: 2rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Optional custom check style */
.about-list li::before {
    content: "✔";
    color: #2563eb;
    font-weight: bold;
}

/* Button spacing */
.about-text .btn-primary {
    margin-top: 0.5rem;
}
/* ============================= */
/* RESPONSIVE ABOUT SECTION */
/* ============================= */

@media (max-width: 1024px) {

    .about-content {
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

}

/* Tablet & Mobile */
@media (max-width: 900px) {

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 300px;
    }

    .about-text {
        margin-top: 1rem;
    }

    .about-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto 2rem auto;
    }

    .about-text .btn-primary {
        display: inline-block;
    }
}

/* Small Mobile */
@media (max-width: 500px) {

    .about {
        padding: 4rem 1.2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-image img {
        max-width: 240px;
    }
}

/* ============================= */
/* 14. RESPONSIVE DESIGN */
/* ============================= */

@media (max-width: 900px) {
    .hero-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links ul {
        gap: 1rem;
    }
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}