/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Profile Image Styling */
.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
    background: var(--bg-secondary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



:root {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --text-primary: #1a1d2d;
    --text-secondary: #5a5f70;
    --accent: #4361ee;
    --accent-hover: #3a56d4;
    --border: #e0e3f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
    --hero-gradient-light: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    --hero-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Dark Mode */
.dark-mode {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --border: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --hero-gradient-dark: linear-gradient(135deg, #121220 0%, #1a1a35 100%);
}

body {
    padding-top: 30px;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    width: 22px;
    /* Reduced width */
}

.burger span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    /* Uses current theme's text color */
    margin: 4px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    /* Smooth animation for color & transform */
}

.github-rect-btn {
  position: absolute;
  top: 95px;           /* Below fixed navbar */
  right: 20px;         /* Distance from right edge */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #4361ee; /* Your brand blue */
  color: white !important;
  padding: 0.7rem 1.2rem;
  border-radius: 15px; /* Smooth rounded corners */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.github-rect-btn:hover {
  background: #3a56d4;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.github-rect-btn i {
  font-size: 1.1rem;
}

.github-rect-btn span {
  white-space: nowrap;
}

/* Dark mode support */
.dark-mode .github-rect-btn {
  background: #5e72e4;
}

.dark-mode .github-rect-btn:hover {
  background: #4b63dd;
}
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;

    /* Dynamic background */
    background: var(--hero-gradient-light);
    color: var(--text-primary);
    transition: background 0.5s ease;
    /* Smooth transition */
}

.dark-mode .hero {
    background: var(--hero-gradient-dark);
    --hero-gradient-dark: linear-gradient(135deg, #120029 0%, #2a1045 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent);
    position: relative;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content .description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.secondary:hover {
    background: rgba(67, 97, 238, 0.1);
}

.btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-img img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.skills {
    margin: 1.5rem 0;
}

.skills h4 {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.skills ul {
    list-style: none;
}

.skills li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.view-project {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.view-project i {
    margin-left: 0.3rem;
    transition: var(--transition);
}

.view-project:hover i {
    transform: translateX(3px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.profile-image-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.hero-content h1,
.subtitle,
.description,
.cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.subtitle {
    animation-delay: 0.4s;
}

.description {
    animation-delay: 0.6s;
}

.cta-buttons {
    animation-delay: 0.8s;
}

.project-container {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2.6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.8rem;
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.back-link {
    display: inline-block;
    margin: 1rem 0 2rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.back-link i {
    margin-right: 0.5rem;
}

.thanks-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

.icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn.primary {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
}

#form-status {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.lightbox:hover img {
  transform: scale(1.02);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.close:hover {
  transform: scale(1.1);
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about-img{
        display: none;
    }
    .nav-links {
        display: none;
        list-style: none;
        flex-direction: column;
        background: var(--bg-secondary);
        position: absolute;
        top: 70px;
        left: 0;
        gap: 1rem;
        right: 0;
        margin: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links li {
        list-style: none;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .tog-bug{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }
    .nav-links a:hover {
        color: var(--accent);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-container {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .burger {
        display: flex;
        width: 22px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    #theme-toggle {
        margin-left: 0.5rem;
    }
    .profile-image-container {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }
    .github-rect-btn {
    top: 105px;
    right: 10px;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
  }

  .github-rect-btn i {
    font-size: 1rem;
  }
}
