html { scroll-behavior: smooth; }

:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#666666;
  --border:#e6e6e6;
  --card:#ffffff;
  --accent:#111111;
}

body{
  font-family:'Inter','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  background-color:var(--bg);
  color:var(--text);
  margin:0; padding:0;
  line-height:1.75;
  font-size:17px;
}

/* Typography */
h1,h2,h3{
  color:var(--text);
  font-weight:600;
  margin:0 0 .6em 0;
}
h1{ font-size:2rem; }
h2{ font-size:1.5rem; letter-spacing:.2px; }
h3{ font-size:1.15rem; }

/* Header / Navbar */
header{
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:16px 0;
  position:sticky; top:0; z-index:999;
}
.nav-container{
  max-width:960px; margin:0 auto; padding:0 20px;
  display:flex; justify-content:space-between; align-items:center;
}
.logo{ font-size:20px; font-weight:700; color:var(--text); }
nav a{
  margin-left:20px; color:var(--text); text-decoration:none; font-weight:500;
  opacity:.85; transition:opacity .2s ease, border-color .2s ease;
  border-bottom:1px solid transparent; padding-bottom:2px;
}
nav a:hover{ opacity:1; border-color:var(--text); }

/* Hero */
.hero{
  background:#fff;
  padding:72px 20px 56px;
  text-align:center;
  border-bottom:1px solid var(--border);
}
.hero h2{ font-size:28px; margin:16px 0 8px; }
.hero p{
  font-size:18px; color:#333; max-width:720px; margin:0 auto;
}
.profile-pic{
  width:132px; height:132px; border-radius:50%; object-fit:cover;
  border:2px solid var(--accent);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* Sections */
.section{ max-width:960px; margin:auto; padding:56px 20px; }
.section.alt{ background:#fafafa; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* Section heading divider line */
.section > h2{
  display:flex; align-items:center; gap:12px;
}
.section > h2::after{
  content:""; flex:1; height:1px; background:var(--border);
}

/* Aside note */
aside{
  background:#f6f6f6;
  padding:12px 18px;
  border-left:3px solid var(--accent);
  margin:22px 0;
  border-radius:6px;
  font-style:italic; color:#2b2b2b;
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  padding:20px 22px;
  border-radius:12px;
  margin-bottom:20px;
  transition:transform .15s ease, box-shadow .25s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

/* Links inside cards (minimalist underline) */
.card a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid #cfcfcf;
  padding-bottom:1px;
  transition:border-color .2s ease, color .2s ease;
  font-weight:600;
}
.card a:hover{
  border-bottom-color:var(--text);
  color:#000;
}

/* Experience meta & bullets */
.meta{
  display:flex; flex-wrap:wrap; gap:12px;
  color:#505a62; font-size:14px; margin:6px 0 10px;
}
.meta i{ margin-right:6px; color:#222; }
.tagline{ margin:6px 0 12px; color:#222; font-weight:500; }
.bullets{ margin:0 0 10px 18px; padding-left:0; }
.bullets li{ margin-bottom:6px; }

/* Skill badges */
.skills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.skills span{
  background:#f2f2f2; color:#111; border:1px solid #e3e3e3;
  padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600;
}

/* Skills Grid */
.skills-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:24px; margin-top:20px;
}
.skill-category{
  background:var(--card); border:1px solid var(--border); padding:20px; border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.04); transition:transform .15s ease, box-shadow .25s ease;
}
.skill-category:hover{
  transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.skill-category h3{
  margin:0 0 12px 0; color:var(--text); font-size:1.1rem; font-weight:600;
}
.skill-category .skills{
  margin-top:0;
}

/* Contact Section */
.contact-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.contact-form-section, .contact-info-section{
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
}

.contact-form-section{
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.contact-info-section{
  padding: 30px;
}

.form-header{
  background: linear-gradient(135deg, var(--accent) 0%, #000 100%);
  color: #fff;
  padding: 32px 32px 24px;
  text-align: center;
}

.form-header h3{
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}

.form-header p{
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 15px;
}

.contact-info-section h3{
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-info-section p{
  margin: 0 0 24px 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact Form */
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label{
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label::after{
  content: '';
  width: 4px;
  height: 4px;
  background: #dc3545;
  border-radius: 50%;
  margin-left: 2px;
}

.form-group input, .form-group textarea{
  padding: 16px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: all .3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.02);
}

.form-group input:focus, .form-group textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08), 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.form-group input:hover, .form-group textarea:hover{
  border-color: #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.form-group textarea{
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group textarea::placeholder{
  color: #6c757d;
  font-style: italic;
}

.submit-btn{
  background: linear-gradient(135deg, var(--accent) 0%, #000 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.submit-btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}

.submit-btn:hover::before{
  left: 100%;
}

.submit-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.submit-btn:active{
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.submit-btn:disabled{
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Form Messages */
.form-message{
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.form-message.success{
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error{
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideIn{
  from{
    opacity: 0;
    transform: translateY(-10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Info Section */
.contact-info-section .resume-buttons{
  margin: 20px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-info-section .resume-btn{
  flex: 1;
  min-width: 140px;
}

/* Contact Icons */
.icon-links{ 
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.icon-links a{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all .2s ease;
  background: #fff;
}
.icon-links a:hover{ 
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.icon-links a span{
  font-weight: 500;
  font-size: 14px;
}

/* Resume Buttons */
.resume-buttons{ 
  text-align:center; 
  margin-top:28px; 
  display:flex; 
  gap:16px; 
  justify-content:center; 
  flex-wrap:wrap; 
}
.resume-btn{
  background:#111; 
  color:#fff; 
  border:1px solid #111;
  padding:12px 28px; 
  font-size:16px; 
  font-weight:600; 
  border-radius:10px; 
  cursor:pointer;
  transition:transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}
.resume-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}
.resume-btn i{
  font-size:14px;
}

/* ============================= */
/* Recommendations — Carousel    */
/* ============================= */
/* Recommendations Grid */
.rec-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.rec-card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  height: fit-content;
  min-height: 200px;
}
.rec-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Decorative quote mark */
.rec-card::before{
  content: """;
  font-size: 2.6rem;
  color: #d0d0d0;
  position: absolute;
  left: 10px;
  top: -10px;
}

/* Quote content */
.rec-content{
  margin-bottom: 16px;
  flex-grow: 1;
}

.rec-quote, .rec-quote-full{
  margin: 2px 0 0 0;
  color: #222;
  line-height: 1.6;
}

.rec-quote{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.2em; /* 2 lines * 1.6 line-height */
}

/* Read More Button */
.read-more-btn{
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  margin: 12px 0 16px 0;
  border-radius: 6px;
  transition: all .2s ease;
  align-self: flex-start;
}
.read-more-btn:hover{
  background: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.read-more-icon{
  transition: transform .3s ease;
  font-size: 11px;
}

/* ============================= */
/* Footer                        */
/* ============================= */
.footer{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 20px;
}

.footer-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3{
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-nav{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a{
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
  font-size: 0.95rem;
}

.footer-nav a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.footer-social, .footer-resume{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social a, .footer-resume a{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
  font-size: 0.95rem;
}

.footer-social a:hover, .footer-resume a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.footer-social i, .footer-resume i{
  width: 16px;
  text-align: center;
  color: var(--accent);
}

.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-tagline{
  margin-bottom: 12px;
}

.footer-tagline p{
  color: var(--accent);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
}

.footer-copyright p{
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer layout */
.rec-footer{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.rec-card strong{ font-weight:600; }
.rec-card span{ color:var(--muted); font-size:.95rem; }

/* LinkedIn round icon (monochrome to match theme) */
.linkedin-icon{
  margin-top:10px;
  width:28px; height:28px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #d4d4d4; background:#fff; color:#111; font-size:14px;
  transition:background .2s, color .2s, transform .2s, border-color .2s;
}
.linkedin-icon:hover{
  background:#111; color:#fff; border-color:#111;
  transform:scale(1.06);
}

/* =============== */
/* Mobile polish   */
/* =============== */
@media (max-width: 480px){
  body{ font-size:16px; line-height:1.7; }

  header{ padding:12px 0; }
  .logo{ font-size:18px; }
  nav a{ margin-left:14px; }

  .hero{ padding:56px 16px 40px; }
  .hero h2{ font-size:22px; }
  .hero p{ font-size:16px; }
  .profile-pic{ width:110px; height:110px; }

  .section{ padding:48px 16px; }
  .section > h2{ font-size:1.25rem; }
  .section > h2::after{ display:none; } /* less visual noise on small screens */

  .card{ padding:16px 16px; border-radius:10px; }
  .bullets{ margin-left:16px; }

  /* Recommendations carousel on mobile */
  .rec-card{ 
    padding: 16px 18px; 
    max-width: 100%;
  }
  .rec-quote{ 
    -webkit-line-clamp: 2; 
    min-height: 3.2em;
  }
  .read-more-btn{
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Recommendations grid on mobile */
  .rec-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer on mobile */
  .footer-content{
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-nav{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .footer-social, .footer-resume{
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  /* Contact section on mobile */
  .contact-container{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-info-section{
    padding: 20px;
  }
  .form-header{
    padding: 24px 20px 20px;
  }
  .form-header h3{
    font-size: 1.2rem;
  }
  .contact-form{
    gap: 20px;
    padding: 24px 20px 32px;
  }
  .form-group input, .form-group textarea{
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  .submit-btn{
    padding: 14px 24px;
    font-size: 15px;
    align-self: stretch;
  }
  .contact-info-section .resume-buttons{
    flex-direction: column;
    gap: 10px;
  }
  .contact-info-section .resume-btn{
    min-width: auto;
  }
  .icon-links{
    gap: 12px;
  }
  .icon-links a{
    padding: 10px 14px;
  }

  /* Resume buttons on mobile */
  .resume-buttons{ 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
  }
  .resume-btn{
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    max-width: 220px;
    justify-content: center;
  }
}
