html{ 
    background-color: lightgray;
    scroll-behavior: smooth;
}

h2, h3 {
    text-align: center;
}

p {
    text-align: center;
    font-size: 1.2em;
}

nav {
    border-bottom: 3px solid black;
    height: auto;
}
.checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 40px;
    top:7px;
    right:7px;
    z-index:5;
    opacity:0;
    cursor: pointer;
}
.HamburgerLines {
    margin-left:7px;
    padding-top:7px;
    display:inline-block;
    animation: fadeIn 0.2s;
    position: absolute;
    top: 0px;
    right: 7px;
}
.HamburgerLine {
    background:black;
    width: 40px;
    margin: 7px 0;
    height: 6px;
    height: 6px;
    display:block;
}
.HamburgerLine:nth-child(1) {
    margin:0;
}
.Xlines{
    margin-left:7px;
    padding-top:20px;
    display:block;
    animation: fadeIn 0.2s;
    position: absolute;
    top: 0px;
    right: 7px;
}
.Xline {
    background:black;
    width: 40px;
    height: 6px;
    display:block;
}
.Xline:nth-child(1) {
    transform:rotate(45deg)
}
.Xline:nth-child(2) {
    transform:rotate(-45deg) translateY(-4px) translateX(4px);
}
.hamburgerMenu {
    margin-top: 20px;
}
.hamburgerMenu li{
    animation: fadeIn 0.2s;
    list-style:none;
    padding: 0 0 20px 10px;
    text-align: right;
}

input[type="checkbox"]:checked ~ .HamburgerLines {
    display:none;
}
input[type="checkbox"]:not(:checked)~ .hamburgerMenu {
display:none;
}
input[type="checkbox"]:not(:checked) ~ .Xlines{
    display:none;
}
.hamburgerMenu a,
.hamburgerMenu a:visited,
.hamburgerMenu a:hover {
    color: inherit;
    text-decoration: none;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #1f2937;       
  --accent: #2563eb;        
  --light: #f9fafb;         
  --gray: #6b7280;          
  --white: #ffffff;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #334155; 
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 8%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

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

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

nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 6rem 8%;
  text-align: center;
  background: linear-gradient(to right, #f9fafb, #eef2ff);
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background: #1e40af;
  transform: translateY(-3px);
}

.portfolio {
  padding: 5rem 8%;
}

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

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

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card h4 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact {
  padding: 5rem 8%;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.contact h3 {
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 2rem;
  color: #d1d5db;
}

.contact .btn {
  background: var(--white);
  color: var(--primary);
}

.contact .btn:hover {
  background: #e5e7eb;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--gray);
}

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

  nav ul {
    gap: 1rem;
  }
}

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

.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.resume-container {
    padding: 4rem 8%;
    max-width: 1000px; 
    margin: 0 auto;    
    text-align: center;
}

.resume-container h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.resume-actions {
    margin-bottom: 2rem;
}

.resume-viewer {
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    border: 1px solid #e5e7eb;
    line-height: 0; 
}

.resume-viewer iframe {
    border: none;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .resume-viewer iframe {
        height: 500px; 
    }
}

.cert-container {
    padding: 4rem 5%;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.cert-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.cert-card iframe {
    width: 100%;
    height: 320px; 
    border: none;
    display: block;
    aspect-ratio: 1 / 1.2;
}

.cert-info {
    padding: 1.5rem;
    background: var(--white);
}

.cert-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center; 
}

.work-container {
    padding: 4rem 8%;
}

.work-section {
    margin-bottom: 4rem;
}

.work-section h3 {
    text-align: left; 
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.project-badge {
    background: #eff6ff;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-card p {
    text-align: left; 
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.project-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.project-card {
    position: relative; 
}

.project-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}