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

:root {
    --primary-color: #00d9ff;
    --secondary-color: #0ea5e9;
    --accent-color: #4f46e5;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #2d3748;
    --gradient-1: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 50%, #4f46e5 100%);
    --gradient-2: linear-gradient(135deg, #4f46e5 0%, #00d9ff 100%);
    --shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 217, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
	display: flex;
    align-items: center;
    gap: 10px; /* space between image and text */
}

.profile-pic {
    width: 40px;        /* make width and height the same */
    height: 40px;
    border-radius: 50%; /* makes it circular */
    object-fit: cover;  /* fills the circle without squishing */
}

.brand-name {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.greeting {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.name {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-location {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta a.btn {
    display: inline-flex;          /* allows flex properties inside button */
    justify-content: center;       /* center text inside button */
    align-items: center;           /* vertical centering */
    min-width: 200px;              /* all buttons same width */
    padding: 1rem 2rem;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
	margin-top: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
	margin-top: 1rem;  
    justify-content: center;
    animation: fadeInUp 1s ease 0.5s both;
}

.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: var(--bg-darker);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Force bottom two cards to center row */
.skill-category:nth-child(4) {
  grid-column: 1 / 2; /* left bottom card */
  justify-self: end;  /* nudge toward center */
}

.skill-category:nth-child(5) {
  grid-column: 2 / 3; /* right bottom card */
  justify-self: start; /* nudge toward center */
}

/* Skill cards */
.skill-category {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 260px;
  width: 100%;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.skill-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.skill-category h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.3rem; }
.skill-category ul { list-style: none; width: 100%; text-align: center; }
.skill-category li { color: var(--text-secondary); padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.skill-category li:last-child { border-bottom: none; }

/* Tablet: 2 columns, reset manual placement */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
  .skill-category:nth-child(4),
  .skill-category:nth-child(5) {
    grid-column: auto;
    justify-self: auto;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Section */
.projects {
    background: var(--bg-darker);
}

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

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

/* Certifications Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards in one row */
  gap: 1rem;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card styling */
.cert-card {
  background: var(--bg-card);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center; /* centers all contents horizontally */
  justify-content: center; /* vertically centers content within card */
  text-align: center;
  transition: all 0.3s ease;
  min-height: 160px;
  width: 100%;
  max-width: 200px;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

/* Icon smaller and centered */
.cert-icon {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

/* Title + description stacked */
.cert-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
    background: var(--bg-darker);
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

.contact-btn {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact .contact-btn {
    display: inline-flex;       /* makes them flex items */
    justify-content: center;    /* centers text horizontally */
    align-items: center;        /* centers text vertically */
    width: 250px;               /* same fixed width for all buttons */
    height: 50px;               /* optional: same height for uniformity */
    text-align: center;
}

.contact p {
    margin-bottom: 3rem; /* adjust spacing as needed */
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }
	
    .cert-card {
        min-height: 200px; /* adjust as needed */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
	
    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

.heart {
    display: inline-block;
    animation: heartbeat 1.4s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1); }
}
