/* =========================
   Dr. Raja Ramesh — style.css
   Single-file, cleaned & responsive
   Breakpoints: 1200 / 992 / 768 / 400 / 320
   ========================= */

/* ========= THEME / VARIABLES ========= */
:root{
  --primary: #3368c6;
  --primary-dark: #264a94;
  --primary-600: #2f5fb7;
  --primary-100: rgba(51,104,198,0.08);
  --primary-150: rgba(51,104,198,0.15);

  --muted: #6b7280;
  --text: #0f1724;
  --bg: #ffffff;
  --card: #f9fbfd;
  --footer-bg-start: #f6f9fe;
  --footer-bg-end: #eaf0fc;
  --bottom-nav-start:#3368c6;
  --bottom-nav-end:#5b9bd5; 

  --radius: 12px;
  --container: 1100px;
  --gap: 1.25rem;

  --nav-height: 64px;
  --bottom-nav-height: 64px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

/* ========= BASES ========= */
*,
*::before,
*::after { box-sizing: inherit; }
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
.container{max-width:var(--container);margin:0 auto;padding:0 1rem}
a{color:inherit}
img{max-width:100%;display:block}

/* Accessibility: visible focus for keyboard users */
:where(a,button,input,textarea,select):focus{outline:3px solid color-mix(in srgb, var(--primary) 20%, white);outline-offset:2px}

/* ========= HEADER / BRAND ========= */
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;gap:1rem}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:inherit}
.logo{width:56px;height:56px;border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.06);padding:8px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-text h1{font-size:1.1rem;margin:0}
.brand-text .tag{margin:0;font-size:.85rem;color:var(--muted)}

/* ========= NAVIGATION ========= */
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:1rem;align-items:center}
.nav-list a{text-decoration:none;color:var(--text);padding:.4rem .6rem;border-radius:8px;transition:background .18s,color .18s}
.nav-list a:hover{background:var(--primary-100);color:var(--primary-dark)}
.nav-toggle{display:none;padding:.5rem;border-radius:8px;background:transparent;border:1px solid rgba(0,0,0,.06);color:var(--text);cursor:pointer}

/* ========= BANNER / HERO ========= */
.banner{background: linear-gradient(90deg, rgba(51,104,198,0.08), rgba(51,104,198,0.02));padding:2.4rem 0;border-bottom:1px solid rgba(0,0,0,.03)}
.banner-inner{display:flex;align-items:center;gap:1.5rem}
.hero-text{max-width:60ch}
.hero-text h2{margin:0 0 .5rem;font-size:1.6rem;color:var(--primary-dark);line-height:1.15}
.hero-text p{margin:0 0 1rem;color:var(--muted)}

/* Buttons (single source of truth) */
.btn-container {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* =========================
   Base Pill-Style Button
   ========================= */
/* =========================
   Base Pill-Style Button
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.4rem;
  border-radius: 999px !important;

  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  cursor: pointer;

  box-shadow: 0 4px 14px rgba(51, 104, 198, 0.18);
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Text wrapping support */
.btn.allow-wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Hover */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 104, 198, 0.25);
}

/* Active */
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(51, 104, 198, 0.2);
}

/* Disabled */
.btn.disabled,
.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   Button Variants
   ========================= */

/* Outline */
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--primary-100);
}

/* Danger */
.btn.danger {
  background: #dc3545;
  color: #fff;
  border: none;
}

.btn.danger:hover {
  background: #c82333;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.25);
}

/* Outline Danger */
.btn.outline-danger {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  box-shadow: none;
}

.btn.outline-danger:hover {
  background: rgba(220, 53, 69, 0.1);
}

/* Gradient */
.btn.gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border: none;
}

.btn.gradient:hover {
  box-shadow: 0 6px 22px rgba(51, 104, 198, 0.35);
}

/* Muted / Neutral */
.btn.muted {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

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

/* Ghost (transparent text button) */
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--primary-100);
}


/* Hero image & mobile visiting card */
.hero-image{display:flex;position:relative;align-items:center;justify-content:center}
.hero-photo-circle{display:block;width:100%;max-width:240px;height:auto;border-radius:50%;object-fit:cover;border:2px solid var(--primary);box-shadow:0 8px 28px rgba(15,23,36,0.12);background:#fff}
.hero-mobile-card{display:none;box-sizing:border-box}

/* mobile visiting card internals */
.hero-mobile-card .card-name{margin:0 0 4px;font-size:1rem;color:var(--primary-dark);font-weight:700}
.hero-mobile-card .card-title{margin:0 0 6px;font-size:.85rem;color:var(--muted)}
.hero-mobile-card .card-role{margin:0 0 .6rem;font-size:.88rem;color:var(--text)}
.hero-mobile-card .card-line{display:flex;align-items:center;gap:.6rem;margin:.45rem 0}
.hero-mobile-card .card-icon{width:18px;height:18px;flex:0 0 18px;color:var(--primary-dark)}
.hero-mobile-card .card-link{color:var(--primary-dark);text-decoration:none;font-weight:600;font-size:.92rem}
.hero-mobile-card .card-link:hover{text-decoration:underline}

/* ========= MAIN LAYOUT ========= */
.container.main-content{max-width:var(--container);margin:0 auto;padding:2rem 1rem;box-sizing:border-box;min-height:calc(100vh - 140px);padding-bottom:calc(2rem + var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px))}
.main-content{padding-top:2rem;padding-bottom:1rem}
.profile{background:var(--card);border-radius:12px;padding:1.25rem;border:1px solid rgba(0,0,0,.04);box-shadow:0 6px 18px rgba(15,23,36,0.03)}
.intro p{color:var(--muted);max-width:60ch}

/* Cards grid */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1rem}
.card{background:var(--card);padding:1rem;border-radius:10px;border:1px solid rgba(0,0,0,.03);box-shadow:0 4px 12px rgba(15,23,36,0.03)}
.more{margin-top:.75rem}

/* Contact CTA */
.contact-cta{background:#fff;padding:1.25rem;border-radius:10px;border:1px solid rgba(0,0,0,.03);margin-top:1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.contact-cta .btn{min-width:160px}

/* Forms */
.contact-form form{margin-top:1rem;display:grid;gap:1rem;max-width:500px}
.form-group{display:flex;flex-direction:column;gap:.4rem}
input,textarea,select{padding:.6rem .8rem;border:1px solid rgba(0,0,0,.12);border-radius:8px;font-size:1rem;font-family:inherit;background:#fff}
input::placeholder,textarea::placeholder{color:#9aa3b2}
input:focus,textarea:focus{outline:2px solid var(--primary-600);border-color:var(--primary)}
.map-embed{margin-top:1rem;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.08)}

/* ========= PROFESSIONAL FOOTER ========= */
.professional-footer{background:linear-gradient(180deg,var(--footer-bg-start),var(--footer-bg-end));color:#153145;padding:2rem 0 4rem;border-top:1px solid rgba(0,0,0,0.06);font-size:.95rem}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;align-items:start;padding:0 1rem 1rem}
.footer-col h4{margin:0 0 .5rem;color:var(--primary);font-size:1.05rem;letter-spacing:.2px}
.footer-contact address{font-style:normal;color:#153145;line-height:1.5;margin-bottom:.6rem}
.contact-line{display:flex;align-items:center;gap:.5rem;margin:.35rem 0;color:#153145}
.contact-line a{color:var(--primary-dark);text-decoration:none}
.contact-line a:hover{text-decoration:underline}

/* quick links & social */
.footer-links ul{list-style:none;margin:0;padding:0}
.footer-links li{margin:.45rem 0}
.footer-links a{color:var(--primary-dark);text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.social-row{display:flex;gap:.6rem;margin-top:.5rem;align-items:center}
.social{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;text-decoration:none;background:var(--primary-100);color:var(--primary);transition:transform .18s ease,background .18s}
.social:hover{background:var(--primary-150);transform:translateY(-2px)}
.icon,.icon-social{width:20px;height:20px;display:inline-block;vertical-align:middle}
.icon{color:var(--primary-dark)}
.icon-social{color:var(--primary)}
.footer-bottom{border-top:1px solid rgba(0,0,0,0.05);padding-top:.75rem;display:flex;justify-content:center;align-items:center;gap:1rem;padding:.75rem 1rem 0;color:#153145;font-size:.9rem}
.footer-bottom .small{opacity:.85;margin:0}
/* show by default on small screens (keeps current .social look) */
.GBP {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;               /* keeps icon + text spacing if you add text */
  text-decoration: none;
}
/* ========= BOTTOM NAV ========= */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:var(--bottom-nav-height);background:linear-gradient(90deg,var(--bottom-nav-start),var(--bottom-nav-end));display:flex;justify-content:space-around;align-items:center;z-index:9999;box-shadow:0 -6px 20px rgba(0,0,0,.12);border-top:1px solid rgba(0,0,0,.08);padding-top:6px;padding-bottom:calc(env(safe-area-inset-bottom,0px)+6px)}
.bottom-nav a{flex:1 1 0;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;text-decoration:none;font-size:.78rem;padding-top:5px;padding-left:6px;padding-right:6px;transition:background .2s ease}
.bottom-nav a svg{width:22px;height:22px;margin-bottom:4px;fill:#fff;display:block}
.bottom-nav a.whatsapp-big svg{width:32px;height:32px;margin-bottom:2px}
.bottom-nav a.active{font-weight:600;background:rgba(255,255,255,0.15);border-radius:6px}
.bottom-nav a:active{transform:translateY(1px)}
@media (min-width:992px){.bottom-nav{display:none}}

/* ========= TIMELINE (compact) ========= */
/* timeline structural rules (kept concise) */
.education-profile{max-width:900px;margin:40px auto;font-family:Arial, sans-serif}
.timeline{position:relative;padding-left:36px}
.timeline::before{content:"";position:absolute;left:18px;top:0;bottom:0;width:4px;background:var(--primary);opacity:.12;border-radius:2px}
.timeline-item{position:relative;margin:14px 0 32px 32px;display:flex;gap:18px;align-items:flex-start}
.timeline-marker{position:absolute;left:-35px;width:36px;height:36px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(51,104,198,0.18);flex-shrink:0;transition:transform .16s}
.timeline-marker:hover{transform:translateY(-2px) scale(1.03)}
.marker-icon{width:18px;height:18px;fill:#fff;display:block}
.timeline-item .edu-card{margin-left:10px;width:calc(100% - 10px)}
.edu-info h3{margin:0 0 4px 0;color:var(--primary);font-size:16px;line-height:1.2}
.edu-info p{margin:0;color:#555;font-size:14px}

/* ========= UTILITIES ========= */
.illustration{display:flex;align-items:center;justify-content:center}
.small{font-size:.9rem}
.profile ul{padding-left:1.1rem}

/* ========= RESPONSIVE BREAKPOINTS ========= */
/* <= 1200px - slight container and spacing relax */
@media (max-width:1200px){
  :root{--container:1000px}
  .banner-inner{gap:1.25rem}
  .footer-grid{grid-template-columns:2fr 1fr 1fr;gap:1rem}
  .hero-text h2{font-size:1.5rem}
}

/* <= 992px - tablet / small laptop */
@media (max-width:992px){
  :root{--container:920px}
  .banner-inner{flex-direction:column;align-items:anchor-center;gap:1rem}
  .hero-text h2{font-size:1.35rem;line-height:1.25}
  .hero-text p{font-size:.95rem}
   .hero-mobile-card{display:block;background:linear-gradient(180deg,rgba(51,104,198,0.03),rgba(51,104,198,0.01));border-radius:12px;padding:.6rem;min-width:60%;box-shadow:0 6px 18px rgba(15,23,36,0.06);border:1px solid rgba(51,104,198,0.06)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .cards{gap:.75rem}
  .contact-cta{flex-direction:column;align-items:flex-start;gap:.6rem}
  .contact-cta .btn{min-width:140px}
  /* nav collapses to toggle */
  .nav-list{display:none}
  .nav-toggle{display:inline-block}
  /* timeline adjustments */
  .timeline{padding-left:44px}
  .timeline::before{left:22px}
  .timeline-marker{left:-22px;width:38px;height:38px}
  .marker-icon{width:20px;height:20px}
}

/* hide the GBP link on wider screens (>= 900px) */
@media (min-width: 900px) {
  .GBP { display: none !important; }
}

/* <= 768px - tablets and large phones */
@media (max-width:768px){
  :root{--container:720px}
  .container{padding-left:.75rem;padding-right:.75rem}
  .brand-text h1{font-size:1rem}
  .brand-text .tag{font-size:.8rem}
  .banner-inner{flex-direction:column;align-items:flex-start;gap:.9rem}
  .hero-text h2{font-size:1.25rem}
  .hero-text p{font-size:.94rem}
  /* hero image + card side-by-side for most tablets */
  .hero-image{display:flex;gap:.8rem;align-items:center;justify-content:flex-start}
  .hero-photo-circle{max-width:110px;min-width:88px;border-width:3px}
  .hero-mobile-card{display:block;background:linear-gradient(180deg,rgba(51,104,198,0.03),rgba(51,104,198,0.01));border-radius:12px;padding:.6rem;min-width:60%;box-shadow:0 6px 18px rgba(15,23,36,0.06);border:1px solid rgba(51,104,198,0.06)}
  /* Buttons: keep side-by-side and shrink */
  .btn-container{display:flex;gap:.5rem;width:100%}
  .btn{flex:1 1 0;min-width:0;padding:0.5rem .75rem;font-size:.94rem}
  /* main container padding */
  .container.main-content{padding:1.25rem 0 4rem}
  /* timeline mobile modifications */
  .timeline{padding-left:56px}
  .timeline::before{left:28px}
  .timeline-item{display:block;margin:18px 0;padding-left:0}
  .timeline-marker{position:absolute;left:12px;top:6px;width:40px;height:40px;border-radius:8px}
  .timeline-item .edu-card{margin-left:0;padding-left:64px;padding-right:12px;width:100%}
}

/* <= 400px - small phones (core adjustments for compact screens) */
@media (max-width:400px){
  :root{--container:360px}
  html,body{font-size:14px}
  .container{padding-left:.6rem;padding-right:.6rem}
  .brand-text h1{font-size:.95rem}
  .brand-text .tag{font-size:.78rem}
  .hero-text h2{font-size:1.05rem}
  .hero-text p{font-size:.9rem;margin-bottom:.6rem}
  /* Buttons: remain side-by-side and shrink, with truncation */
  .btn-container{display:flex;gap:.4rem;width:100%;align-items:center}
  .btn{flex:1 1 0;min-width:0;padding:.8rem .8rem;font-size:1.2rem;border-radius:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .btn.allow-wrap{white-space:normal}
  /* hero image & card */
  .hero-photo-circle{max-width:84px;min-width:72px;border-width:2px}
  .hero-mobile-card{min-width:48%;padding:.5rem;font-size:.88rem}
  /* footer -> single column */
  .footer-grid{grid-template-columns:1fr;gap:.6rem}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:.4rem}
  /* bottom nav shrink a bit */
  .bottom-nav{height:60px;padding-top:4px;padding-bottom:calc(env(safe-area-inset-bottom,0px)+4px)}
  .bottom-nav a{font-size:.72rem}
}

/* <= 320px - micro devices: allow wrap if necessary */
@media (max-width:320px){
  .btn-container{flex-wrap:wrap}
  .btn{flex:1 1 48%;margin-bottom:.4rem}
  .hero-photo-circle{max-width:72px}
  .hero-mobile-card{min-width:46%}
  .container.main-content{padding-bottom:calc(1.25rem + var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px))}
}

/* Reduced motion preference */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
