        /* Base Styles */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #1e293b;
            --text-color: #334155;
            --light-bg: #f8fafc;
            --dark-bg: #0f172a;
            --white: #ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s ease;
        }

        body {
            color: var(--text-color);
            line-height: 1.6;
            background-color: var(--light-bg);
        }

        body.dark-mode {
            background-color: var(--dark-bg);
            color: var(--white);
        }

        /* Header & Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: rgba(255, 255, 255, 0.9);
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        body.dark-mode header {
            background-color: rgba(15, 23, 42, 0.9);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(to right, var(--primary-color), #6366f1);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.3s ease;
        }

        body.dark-mode nav a {
            color: var(--white);
        }

        nav a:hover {
            color: var(--primary-color);
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--text-color);
        }

        body.dark-mode .theme-toggle {
            color: var(--white);
        }

        /* Sections */
        section {
            padding: 6rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            text-align: center;
            padding-top: 6rem; /* space for fixed header */
               }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--primary-color), #6366f1);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: var(--text-color);
        }

        body.dark-mode .hero p {
            color: var(--white);
        }

        .hero-btns {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        .btn {
            padding: 0.8rem 1.5rem;
            border-radius: 0.3rem;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
            font-size: 1rem;
            padding: 0.6rem 1rem;
             }

        }

        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white);
            border: 2px solid var(--primary-color);
        }

        .btn-primary:hover {
            background-color: transparent;
            color: var(--primary-color);
        }

        body.dark-mode .btn-primary:hover {
            color: var(--white);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }

        /* About Section */
        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .about-img {
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .about-img img {
            width: 100%;
            height: auto;
            display: block;
        }

        .about-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--secondary-color);
        }

        body.dark-mode .about-content h2 {
            color: var(--white);
        }

        .about-content p {
            margin-bottom: 1.5rem;
            color: var(--text-color);
        }

        body.dark-mode .about-content p {
            color: #cbd5e1;
        }

        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1.5rem;
        }

        .skill {
            padding: 0.5rem 1rem;
            background-color: #e0e7ff;
            border-radius: 0.3rem;
            color: var(--primary-color);
            font-weight: 500;
            font-size: 0.9rem;
        }

        body.dark-mode .skill {
            background-color: rgba(79, 70, 229, 0.2);
        }

        /* Projects Section */
        .projects h2 {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--secondary-color);
        }

        body.dark-mode .projects h2 {
            color: var(--white);
        }

        .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}
        @media (max-width: 400px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-img img {
        height: auto;
    }
}


        .project-card {
            background-color: var(--white);
            border-radius: 0.8rem;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        body.dark-mode .project-card {
            background-color: #1e293b;
        }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .project-img img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .project-content {
            padding: 1.5rem;
        }

        .project-content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--secondary-color);
        }

        body.dark-mode .project-content h3 {
            color: var(--white);
        }

        .project-content p {
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        body.dark-mode .project-content p {
            color: #cbd5e1;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }


        /* Horizontal single-line project row (scrollable if overflow) */
.project-grid {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;         /* allows horizontal scrolling when needed */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;     /* keep cards same height if possible */
  /* optional: make a little snap effect when scrolling */
  scroll-snap-type: x mandatory;
}

/* make each card a fixed-ish width but responsive */
.project-card {
  min-width: 300px;         /* width of each card on desktop */
  max-width: 380px;         /* prevents cards from getting too wide */
  flex: 0 0 auto;           /* prevent shrinking so they stay side-by-side */
  scroll-snap-align: start; /* snap to start on scroll */
}

/* smaller screens: let the cards be narrower */
@media (max-width: 480px) {
  .project-card {
    min-width: 260px;
    max-width: 320px;
  }
}

/* optional: hide ugly scrollbars but still allow scrolling */
.project-grid::-webkit-scrollbar {
  height: 8px;
}
.project-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.project-grid::-webkit-scrollbar-track {
  background: transparent;
}


        /* Experience Section */

.experience {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.experience h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

body.dark-mode .experience h2 {
  color: var(--white);
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  width: 100%;
  background-color: var(--white);
  border-left: 5px solid var(--primary-color);
  border-radius: 0.6rem;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .experience-card {
  background-color: #1e293b;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.experience-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--secondary-color);
}

body.dark-mode .experience-content h3 {
  color: var(--white);
}

.duration {
  font-style: italic;
  color: #64748b;
  margin-bottom: 1rem;
  display: block;
}

body.dark-mode .duration {
  color: #cbd5e1;
}

.experience-content ul {
  margin-left: 1.2rem;
  list-style-type: disc;
  color: var(--text-color);
  line-height: 1.6;
}

body.dark-mode .experience-content ul {
  color: #cbd5e1;
}

.experience-content ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .experience {
    padding: 4rem 1rem;
  }
  .experience-card {
    padding: 1.5rem;
  }
  .experience-content h3 {
    font-size: 1.2rem;
  }
}
```

        
  .experience-attachments {
  margin-top: 1.5rem;
}

.experience-attachments h4 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.experience-attachments a {
  display: inline-block;
  margin-right: 1rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.experience-attachments a:hover {
  color: var(--secondary-color);
}

body.dark-mode .experience-attachments a {
  color: #38bdf8;
}


        /* Contact Section */
        .contact {
            text-align: center;
        }

        .contact h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--secondary-color);
        }

        body.dark-mode .contact h2 {
            color: var(--white);
        }

        .contact p {
            max-width: 600px;
            margin: 0 auto 2.5rem;
            color: var(--text-color);
        }

        body.dark-mode .contact p {
            color: #cbd5e1;
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--secondary-color);
            text-align: left;
        }

        body.dark-mode .form-group label {
            color: var(--white);
        }

        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #cbd5e1;
            border-radius: 0.3rem;
            font-size: 1rem;
            transition: border-color 0.3s ease;
            background-color: var(--white);
            color: var(--text-color);
        }

        body.dark-mode .form-control {
            background-color: #1e293b;
            border-color: #334155;
            color: var(--white);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 2rem;
            background-color: var(--secondary-color);
            color: var(--white);
        }

        body.dark-mode footer {
            background-color: #020617;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }

        .social-links a {
            color: var(--white);
            font-size: 1.5rem;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: var(--primary-color);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .about-container {
                grid-template-columns: 1fr;
            }

            .about-img {
                order: -1;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero-btns {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
            }

            nav ul {
                gap: 1rem;
            }

            section {
                padding: 4rem 1rem;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .about-content h2,
            .projects h2,
            .contact h2 {
                font-size: 2rem;
            }
        }

        /* Active link */
        nav a.active {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Mobile nav menu toggle */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background-color: var(--dark-bg);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        display: none;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
    }
}

/* By default hide toggle */
.menu-toggle {
    display: none;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    word-break: break-word;
}


@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}


/* Hide menu-toggle by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

body.dark-mode .menu-toggle {
    color: var(--white);
}

/* Small screen menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 1rem 0;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 0.5rem 0;
    }

    nav a {
        font-size: 1.2rem;
    }
}


