:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  font-size: 1.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
  display: flex;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.first-char {
  margin-right: 0px;
  color: transparent;
  background: linear-gradient(90deg, #00f0ff, #ff00c8, #00ffe7);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 4s linear infinite;
}

.typing-gradient {
  color: transparent;
  background: linear-gradient(90deg, #00f0ff, #ff00c8, #00ffe7);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation:
    shimmer 4s linear infinite,
    typing 2s steps(10, end) infinite;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  width: 0ch;
}

/* Typing effect: "" → K → KK → "" → ... */
@keyframes typing {
  0%   { width: 0ch; }
  50%  { width: 1ch; }
  100% { width: 4ch; }
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Responsive Navigation */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-radius: 0.5rem;
    }

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

    .menu-toggle {
        display: block;
    }
}
.hamburger {
    font-size: 30px;
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
    text-align: center;
    padding: 2rem;
}

.my_profile_pic {
    border-radius: 50%;
    width: 250px;
    height:250 px;
    margin-bottom: 20px;
    display: inline;
    margin-top: 80px;
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--background);
    transition: transform 0.3s;
}

.contact-link:hover {
    transform: translateY(-2px);
}
.hamburger {
    font-size: 30px;
    cursor: pointer;
    display: none;
}

/* Mobile-First Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;  /* Show hamburger on small screens */
    }

    .nav-links {
        display: none;  /* Hide nav links by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-links.active {
        display: flex;  /* Show nav links when 'active' class is added */
    }

    .nav-links li {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid white;
    }
}
/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.certification-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
   /*
    display: inline-flex;
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: auto;*/
}
.certification-grid p a{
    display: flex;
    justify-content: left;
    margin-left: 75px;
    align-items: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.skill-category {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.date {
    color: var(--light-text);
    margin-bottom: 1rem;
}

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

.project-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-stack {
    color: var(--primary-color);
    margin: 1rem 0;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.project-link:hover {
    background: var(--secondary-color);
}

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

.education-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--section-bg);
    color: var(--light-text);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .my_profile_pic {
        width: 200px;
        height: 200px;
    }

    .skills-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .skills-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
}
