/*
Theme Name: Sandeep Lokhande Portfolio
Theme URI: https://sandeeplokhande.com
Author: Sandeep Lokhande
Author URI: https://sandeeplokhande.com
Description: Personal portfolio for AI Engineer, Automation Specialist & Educator
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sandeep-portfolio
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --sand:           #F2EDE4;
  --sand-light:     #FAF7F2;
  --sand-dark:      #E8DFD0;
  --terracotta:     #C1603A;
  --terracotta-dk:  #A8512D;
  --terracotta-pale:#F5E8E2;
  --charcoal:       #2C2820;
  --charcoal-mid:   #4A4540;
  --charcoal-light: #7A7268;
  --white:          #FDFCFA;
  --accent-warm:    #D4A574;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

body {
  font-family: var(--font-sans);
  background: var(--sand-light);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section-pad { padding: 4rem 0; }
.section-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.7rem;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: currentColor; flex-shrink: 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 0.9rem;
}
.section-sub {
  font-size: 0.95rem; font-weight: 300;
  color: var(--charcoal-light); line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  background: var(--terracotta); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: 2px;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; color: var(--charcoal);
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--charcoal-light); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--terracotta); border-color: var(--terracotta); }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(242,237,228,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(193,96,58,0.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 1.25rem;
  max-width: 1140px; margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-serif); font-size: 1.15rem;
  font-weight: 500; color: var(--charcoal); white-space: nowrap;
}
.nav-menu {
  display: flex; align-items: center; gap: 2rem;
}
.nav-menu a {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--charcoal-mid);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--terracotta); }
.nav-cta {
  background: var(--charcoal); color: var(--white) !important;
  padding: 0.5rem 1.2rem; border-radius: 2px;
  font-size: 0.82rem !important; font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--terracotta) !important; color: var(--white) !important; }
/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0; background: none; border: none;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--charcoal);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile nav drawer */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--sand); flex-direction: column;
    align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid var(--sand-dark);
  }
  .nav-menu.open { max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    width: 100%; padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sand-dark);
    font-size: 0.95rem;
  }
  .nav-cta { margin: 1rem 1.5rem; width: calc(100% - 3rem) !important; text-align: center; }
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem 3rem 3.5rem 2rem;
  background: var(--sand-light);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.2rem;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400; line-height: 1.13;
  color: var(--charcoal); margin-bottom: 1.3rem;
}
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-desc {
  font-size: 0.97rem; font-weight: 300; line-height: 1.75;
  color: var(--charcoal-light); margin-bottom: 2rem; max-width: 420px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 1.8rem; border-top: 1px solid var(--sand-dark);
}
.stat-val {
  font-family: var(--font-serif); font-size: 1.8rem;
  font-weight: 400; color: var(--charcoal); line-height: 1;
}
.stat-label {
  font-size: 0.72rem; color: var(--charcoal-light);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px;
}
.hero-right {
  position: relative; overflow: hidden;
  background: var(--sand-dark);
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.hero-caption {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(44,40,32,0.68); backdrop-filter: blur(8px);
  padding: 0.85rem 1rem; border-radius: 4px;
  color: var(--sand-light); font-family: var(--font-serif);
  font-style: italic; font-size: 0.85rem; line-height: 1.5;
  text-align: center;
}
.hero-tag {
  position: absolute; top: 1.5rem; left: 1.2rem;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(6px);
  padding: 0.55rem 0.9rem; border-radius: 4px;
  border-left: 3px solid var(--terracotta);
  font-size: 0.78rem; color: var(--charcoal); line-height: 1.4;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 320px; order: -1; }
  .hero-left { padding: 2rem 1.25rem; }
  .hero-stats { gap: 1.5rem; }
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about {
  background: var(--sand);
  padding: 4rem 0;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-text p {
  font-size: 0.95rem; font-weight: 300; line-height: 1.85;
  color: var(--charcoal-mid); margin-bottom: 1rem;
}
.about-text p strong { font-weight: 500; color: var(--charcoal); }
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem;
}
.service-chip {
  background: var(--white); border: 1px solid var(--sand-dark);
  border-left: 3px solid var(--terracotta); border-radius: 2px;
  padding: 0.85rem 1rem;
}
.service-chip h4 { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }
.service-chip p { font-size: 0.75rem; color: var(--charcoal-light); margin-top: 2px; line-height: 1.4; }
.about-photo {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4/5;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.about-photo-caption {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(44,40,32,0.65); backdrop-filter: blur(8px);
  padding: 0.85rem 1rem; border-radius: 4px;
  color: var(--sand-light); font-family: var(--font-serif);
  font-style: italic; font-size: 0.85rem; line-height: 1.5; text-align: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
#projects { padding: 4rem 0; background: var(--sand-light); }
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.project-card {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; border-radius: 2px;
}
.project-card.wide { grid-column: span 2; aspect-ratio: 16/7; }
.project-bg {
  position: absolute; inset: 0; transition: transform 0.5s ease;
}
.project-card:hover .project-bg { transform: scale(1.04); }
.p1 { background: linear-gradient(145deg,#C49070,#8B5A35,#5C3318); }
.p2 { background: linear-gradient(160deg,#B8D4C8,#7A9E94,#4A6E68); }
.p3 { background: linear-gradient(130deg,#D4C08A,#A8906A,#7A6040); }
.p4 { background: linear-gradient(150deg,#C8A0B8,#907080,#604050); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,40,32,0.88) 0%, rgba(44,40,32,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem;
}
.project-tag {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-warm); font-weight: 500; margin-bottom: 0.35rem;
}
.project-name {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--white); line-height: 1.25; margin-bottom: 0.3rem;
}
.project-desc { font-size: 0.78rem; color: rgba(250,247,242,0.7); line-height: 1.5; }
.project-badge {
  margin-top: 0.75rem; display: inline-flex; align-items: center;
  background: rgba(193,96,58,0.8); color: var(--white);
  font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.75rem;
  border-radius: 2px; width: fit-content;
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ══════════════════════════════════
   TESTIMONIALS
══════════════════════════════════ */
#testimonials {
  background: var(--charcoal); padding: 4rem 0;
}
#testimonials .section-label { color: var(--accent-warm); }
#testimonials .section-label::before { background: var(--accent-warm); }
#testimonials .section-title { color: var(--white); }
.t-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 2.5rem;
}
.t-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem; position: relative; overflow: hidden;
  transition: background 0.3s;
}
.t-card:hover { background: rgba(255,255,255,0.08); }
.t-card.featured {
  background: var(--terracotta);
  border-color: var(--terracotta);
  grid-row: span 2;
}
.t-big-q {
  font-family: var(--font-serif); font-size: 3.5rem;
  color: rgba(255,255,255,0.15); line-height: 1;
  position: absolute; top: 0.8rem; left: 1.5rem;
}
.t-card.featured .t-big-q { color: rgba(255,255,255,0.25); }
.t-result {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-warm); font-weight: 500;
  margin-bottom: 0.8rem; margin-top: 0.3rem;
}
.t-card.featured .t-result { color: rgba(255,255,255,0.8); }
.t-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.97rem; line-height: 1.65;
  color: rgba(250,247,242,0.9); margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.t-card.featured .t-quote { font-size: 1.1rem; color: var(--white); }
.t-author { display: flex; align-items: center; gap: 0.8rem; }
.t-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 0.9rem; color: var(--white); flex-shrink: 0;
}
.t-card.featured .t-avatar { background: rgba(255,255,255,0.25); }
.t-name { font-size: 0.87rem; font-weight: 500; color: var(--white); }
.t-role { font-size: 0.75rem; color: rgba(250,247,242,0.55); margin-top: 1px; }
.t-card.featured .t-role { color: rgba(255,255,255,0.7); }
.t-metrics {
  display: flex; gap: 1.5rem; margin-top: 1.3rem;
  padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.tm-val {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--white);
}
.tm-label { font-size: 0.68rem; color: rgba(255,255,255,0.55); margin-top: 1px; }

@media (max-width: 768px) {
  .t-grid { grid-template-columns: 1fr; }
  .t-card.featured { grid-row: span 1; }
}

/* ══════════════════════════════════
   PROCESS
══════════════════════════════════ */
#process { background: var(--sand); padding: 4rem 0; }
.process-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start;
}
.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 1.2rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--sand-dark);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-serif); font-size: 2.2rem;
  font-weight: 400; color: rgba(193,96,58,0.2);
  min-width: 50px; line-height: 1; flex-shrink: 0;
}
.step-content h3 {
  font-family: var(--font-serif); font-size: 1rem;
  font-weight: 400; color: var(--charcoal); margin-bottom: 0.4rem;
}
.step-content p {
  font-size: 0.85rem; color: var(--charcoal-light);
  line-height: 1.65; font-weight: 300;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact { background: var(--sand-light); padding: 4rem 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.2rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 0.9rem; color: var(--charcoal);
}
.contact-info > p {
  font-size: 0.95rem; font-weight: 300; color: var(--charcoal-light);
  line-height: 1.75; margin-bottom: 2rem;
}
/* ── Contact links ── */
.contact-links {
  display: flex; flex-direction: column; gap: 0.65rem;
}
.c-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-left: 3px solid var(--terracotta);
  border-radius: 2px;
  color: var(--charcoal-mid);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-left-color 0.2s;
  word-break: break-all;
}
.c-link:hover {
  background: var(--terracotta-pale);
  color: var(--terracotta);
  border-left-color: var(--terracotta-dk);
}
.c-link-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--terracotta-pale); color: var(--terracotta);
  border-radius: 2px; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; font-weight: 600;
}
.c-link-text { line-height: 1.3; }
.c-link-label {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal-light); display: block; margin-bottom: 1px;
}
.c-link-val { color: var(--charcoal); font-weight: 400; }
/* ── Form ── */
.contact-form-wrap {
  background: var(--white); padding: 2.2rem;
  border: 1px solid var(--sand-dark); border-radius: 4px;
}
.contact-form-wrap h3 {
  font-family: var(--font-serif); font-size: 1.3rem;
  font-weight: 400; margin-bottom: 1.5rem; color: var(--charcoal);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal-light); margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid var(--sand-dark); border-radius: 2px;
  background: var(--sand-light); color: var(--charcoal);
  font-family: var(--font-sans); font-size: 0.88rem;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--terracotta); }
.form-row textarea { height: 100px; resize: none; }
.form-submit {
  width: 100%; background: var(--terracotta); color: var(--white);
  padding: 0.85rem; font-family: var(--font-sans); font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 2px; margin-top: 0.25rem;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--terracotta-dk); transform: translateY(-1px); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
#site-footer {
  background: var(--charcoal); color: var(--sand-light);
  padding: 2rem 1.25rem;
  text-align: center;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 0.75rem;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.05rem; color: var(--white); }
.footer-copy { font-size: 0.78rem; color: rgba(250,247,242,0.4); }
.footer-tagline { font-size: 0.75rem; color: rgba(250,247,242,0.25); font-style: italic; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
