/* ================================
   DESIGN SYSTEM
================================ */

:root{
  --bg:#060912;
  --accent:#00C8E6;
  --accent2:#12B8A6;

  --text:rgba(255,255,255,0.92);
  --text-soft:rgba(255,255,255,0.65);

  --border:rgba(255,255,255,0.08);

  --nav-height:68px;

  /* spacing system */
  --space-xs:10px;
  --space-sm:18px;
  --space-md:28px;
  --space-lg:60px;
  --space-xl:120px;
}
html{
  scroll-behavior: smooth;
}
/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--nav-height);
}

body{
  background-color:var(--bg);
  color:var(--text);
  overflow-x:hidden;

  background-image:
    linear-gradient(#111 1px, transparent 1px),
    linear-gradient(90deg, #0e0e12 1px, transparent 1px);

  background-size:40px 40px;
  background-attachment:fixed;
}

/*=========== CONTACT PAGE==================== */

.contact-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:40px;
}

.contact-card{
padding:30px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.06);
background:rgba(255,255,255,0.02);
}

.contact-card h3{
margin-bottom:10px;
}

.contact-card a{
color:#14e0c4;
text-decoration:none;
word-break:break-word;
}

/* FORM */

.contact-form-container{
max-width:640px;
}

.contact-form{
display:flex;
flex-direction:column;
gap:20px;
}

.contact-form input,
.contact-form textarea{
padding:14px;
border-radius:8px;
border:1px solid rgba(255,255,255,0.08);
background:rgba(255,255,255,0.03);
color:white;
font-family:"Poppins",sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus{
outline:none;
border-color:#14e0c4;
}

/*===================== CONTACT SVG BACKGROUND=================*/

.contact-bg{
position:fixed;
inset:0;
pointer-events:none;
z-index:-1;
opacity:.15;
}

.contact-svg{
width:100%;
height:100%;
stroke:#14e0c4;
stroke-width:1;
fill:none;
}

/* =========================================
   CONTACT CONVERSION LAYER
   (APPEND ONLY — DO NOT REMOVE EXISTING)
========================================= */


/* =========================
   SECTION FLOW + ALIGNMENT
========================= */

.page-section{
  padding:100px 0;
}

.page-section:first-of-type{
  padding-top: calc(var(--nav-height) + 40px);
}


/* =========================
   TYPOGRAPHY (STRONGER INTENT)
========================= */

.section-title{
  font-size:38px;
  line-height:1.2;
  margin-bottom:16px;
  letter-spacing:-0.4px;
}

.reading-column{
  max-width:640px;
  margin:0 auto;
}

.reading-column p{
  font-size:17px;
  line-height:1.8;
  color:rgba(255,255,255,0.78);
  margin-bottom:18px;
}

/* subtle authority accent */
.tech-accent{
  font-family:"JetBrains Mono", monospace;
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(20,224,196,0.75);
  display:block;
  margin-bottom:12px;
}


/* =========================
   CONTACT GRID UPGRADE
========================= */

.contact-grid{
  margin-top:40px;
}

.contact-card{
  position:relative;
  overflow:hidden;

  transition: all 0.35s cubic-bezier(.22,.61,.36,1);
}

.contact-card::before{
  content:"";
  position:absolute;
  inset:0;

  background: radial-gradient(
    circle at 20% 20%,
    rgba(20,224,196,0.08),
    transparent 60%
  );

  opacity:0;
  transition:0.4s ease;
}

.contact-card:hover::before{
  opacity:1;
}

.contact-card:hover{
  transform: translateY(-6px);

  border-color: rgba(20,224,196,0.35);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 20px rgba(20,224,196,0.08);
}


/* =========================
   LINK IMPROVEMENT
========================= */

.contact-card a{
  display:inline-block;
  margin-top:6px;
  font-size:14px;

  transition:0.25s ease;
}

.contact-card a:hover{
  color:#1ef2d6;
  text-decoration:underline;
}


/* =========================
   FORM CENTERING (CRITICAL FIX)
========================= */

.contact-form-container{
  max-width:640px;

  margin:80px auto 0 auto; /* CENTERED */

  padding:36px;
  border-radius:18px;

  border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);

  box-shadow:
    0 40px 100px rgba(0,0,0,0.65);

  text-align:left; /* keep inputs aligned */
}


/* =========================
   FORM INTRO (PSYCHOLOGY)
========================= */

.form-intro{
  font-size:14px;
  color:rgba(255,255,255,0.65);
  margin-bottom:22px;

  max-width:480px;
}


/* =========================
   INPUT FEEL (PREMIUM)
========================= */

.contact-form input,
.contact-form textarea{
  transition: all 0.25s ease;
}

/* glow + depth */
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:#14e0c4;

  box-shadow:
    0 0 0 1px rgba(20,224,196,0.4),
    0 0 18px rgba(20,224,196,0.15);

  background: rgba(255,255,255,0.04);
}


/* =========================
   CTA BUTTON (IMPORTANT)
========================= */

.contact-form button{
  margin-top:10px;

  transition: all 0.3s ease;
}

.contact-form button:hover{
  transform: translateY(-2px);

  box-shadow:
    0 10px 30px rgba(20,224,196,0.25);
}


/* =========================
   MICRO INTERACTION
========================= */

.contact-card:active{
  transform: scale(0.97);
}


/* =========================
   MOBILE REFINEMENT
========================= */

@media(max-width:768px){

  .page-section{
    padding:70px 0;
  }

  .section-title{
    font-size:26px;
  }

  .reading-column p{
    font-size:15px;
  }

  .contact-grid{
    gap:18px;
  }

  .contact-form-container{
    padding:22px;
    margin-top:50px;
  }

}

/* =========================================
   GLOBAL LAYOUT SYSTEM (CRITICAL FIX)
========================================= */

/* consistent horizontal alignment */
.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

/* consistent vertical spacing */
.section{
  padding:100px 0;
}

/* tighter section (optional use) */
.section-sm{
  padding:70px 0;
}

/* hero section fix */
.section-hero{
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom:80px;
}

/* fix headings spacing */
.section-title{
  margin-bottom:18px;
}

/* fix paragraph spacing */
.section-subtext{
  max-width:640px;
  margin-bottom:40px;
}
@media(max-width:768px){

  .container{
    padding-left:16px;
    padding-right:16px;
  }

  .section{
    padding:70px 0;
  }

  .section-hero{
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom:50px;
  }

  .section-title{
    font-size:26px;
    line-height:1.3;
  }

  .section-subtext{
    font-size:15px;
    line-height:1.7;
  }

}

/* ========================================
   REVEAL ANIMATION
======================================== */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible{
  opacity:1;
  transform:translateY(0);
}

.contact-card{
  transition: all 0.35s ease;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.02);
}

.contact-card:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0,255,200,0.4);
  box-shadow: 0 20px 40px rgba(0,255,200,0.08);
}


.btn-primary{
  transition: all 0.25s ease;
}

.btn-primary:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,255,200,0.3);
}

.btn-primary:active{
  transform: scale(0.97);
}

body::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  background: radial-gradient(
    circle 300px at var(--x) var(--y),
    rgba(0,255,200,0.06),
    transparent 60%
  );
  z-index:0;
}

.section{
  transition: opacity 0.4s ease;
}

.section:not(:hover){
  opacity:0.92;
}

.section:hover{
  opacity:1;
}

/* =========================================
ELITE CONTACT SYSTEM (FINAL LAYER)
========================================= */

/* =========================
TYPOGRAPHY UPGRADE
========================= */

body{
font-family: "Inter", "Poppins", sans-serif;
}

/* Strong headings */
.contact-title{
font-size: clamp(34px, 5vw, 52px);
line-height: 1.15;
font-weight: 600;
letter-spacing: -0.5px;

max-width: 820px;
margin-bottom: 20px;
}

/* Clean supporting text */
.contact-subtext{
font-size: 17px;
line-height: 1.7;
color: var(--text-soft);

max-width: 620px;
}

/* =========================
HERO STRUCTURE
========================= */

.contact-hero{
padding-top: calc(var(--nav-height) + 80px);
padding-bottom: 60px;
}

.contact-hero .container{
max-width: 900px;
}

/* =========================
CONTENT SECTION
========================= */

.contact-content{
padding: 80px 0 100px;
}

.contact-grid{
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 60px;
align-items: start;
}

/* =========================
LEFT SIDE (MAIN)
========================= */

.contact-intro{
font-size: 15px;
color: var(--text-soft);
margin-bottom: 30px;
}

.contact-list{
display: flex;
flex-direction: column;
gap: 28px;
}

.contact-item h3{
font-size: 16px;
font-weight: 500;
margin-bottom: 6px;
}

.contact-item a{
font-size: 15px;
color: var(--accent);
text-decoration: none;

transition: 0.25s ease;
}

.contact-item a:hover{
color: #1ef2d6;
text-decoration: underline;
}

/* =========================
RIGHT SIDE (MINIMAL)
========================= */

.contact-side h3{
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--text-soft);
margin-bottom: 16px;
}

.contact-side ul{
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
}

.contact-side a{
font-size: 15px;
color: var(--text);
text-decoration: none;
opacity: 0.8;

transition: 0.25s ease;
}

.contact-side a:hover{
opacity: 1;
color: var(--accent);
}

/* =========================
VISUAL BALANCE FIX
========================= */

/* Reduce visual noise */
.section:not(.contact-hero):not(.contact-content){
opacity: 0.95;
}

/* =========================
MOBILE (CRITICAL)
========================= */

@media(max-width:768px){

.contact-hero{
padding-top: calc(var(--nav-height) + 50px);
padding-bottom: 40px;
}

.contact-title{
font-size: 28px;
line-height: 1.25;
}

.contact-subtext{
font-size: 15px;
}

.contact-content{
padding: 50px 0 70px;
}

.contact-grid{
grid-template-columns: 1fr;
gap: 40px;
}

.contact-side{
border-top: 1px solid var(--border);
padding-top: 24px;
}

}
/* =========================
SOCIAL ICONS
========================= */

.contact-side li a{
display: flex;
align-items: center;
gap: 10px;
}

.contact-side .icon{
width: 18px;
height: 18px;
display: inline-flex;
}

.contact-side svg{
width: 100%;
height: 100%;
opacity: 0.7;
transition: 0.25s ease;
}

.contact-side a:hover svg{
opacity: 1;
transform: scale(1.1);
}
/* =========================
   CONTACT TYPOGRAPHY SYSTEM
   ========================= */

.contact-main {
  max-width: 720px;
  padding: 80px 20px;
}

/* Intro */
.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 50px;
  max-width: 520px;
}

/* Each block */
.contact-item {
  margin-bottom: 42px;
}

/* Headings */
.contact-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Description */
.contact-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  max-width: 420px;
}

/* Email links */
.contact-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #00d9ff;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

/* Hover effect (premium feel) */
.contact-item a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Subtle separation (not borders, just spacing rhythm) */
.contact-item:not(:last-child)::after {
  content: "";
  display: block;
  margin-top: 28px;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.contact-item h3::before {
  content: "•";
  color: #00d9ff;
  margin-right: 8px;
  font-weight: bold;
}

/* =========================
   CENTER HERO (MINIMAL POWER)
   ========================= */

.center-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 100px 20px 60px;
}

/* small label */
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00d9ff;
  margin-bottom: 18px;
  opacity: 0.8;
}

/* main word */
.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  margin: 0;
  color: #ffffff;
}

/* cursive elegance */
.cursive {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
}

/* brand line */
.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
}

.hero-title {
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;

  align-items: start; /* 🔥 IMPORTANT */
}
.contact-main,
.contact-side {
  margin-top: 0;
}

.contact-side {
  padding-top: 42px; /* matches first item spacing */
}


/* =========================
   RESPONSIVE SYSTEM
   ========================= */

/* ---------- TABLETS (<= 1024px) ---------- */
@media (max-width: 1024px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-side {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 40px;
  }

  .contact-side ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .contact-side li {
    list-style: none;
  }

  .contact-side a {
    display: flex;
    align-items: center;
    gap: 8px;
  }

}


/* ---------- PHONES (<= 768px) ---------- */
@media (max-width: 768px) {

  /* HERO */
  .center-hero {
    padding: 80px 16px 40px;
  }

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

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

  /* INTRO */
  .contact-intro {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 40px;
  }

  /* GRID */
  .contact-grid {
    gap: 50px;
  }

  /* LEFT */
  .contact-main {
    max-width: 100%;
  }

  .contact-item {
    margin-bottom: 36px;
  }

  .contact-item h3 {
    font-size: 1.05rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  .contact-item a {
    font-size: 0.9rem;
  }

  /* RIGHT */
  .contact-side {
    text-align: center;
  }

  .contact-side h3 {
    margin-bottom: 20px;
  }

  .contact-side ul {
    justify-content: center;
  }

}


/* ---------- SMALL PHONES (<= 480px) ---------- */
@media (max-width: 480px) {

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

  .hero-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  .contact-intro {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .contact-item {
    margin-bottom: 30px;
  }

  .contact-side ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-side a {
    font-size: 0.9rem;
  }

}

/* =========================
   MOBILE VIEWPORT SYSTEM
========================= */
@media (max-width: 768px) {

  /* HERO FULL SCREEN */
  .contact-hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* BREAK GRID INTO STACK */
  .contact-grid {
    display: block;
  }

  /* EMAIL SECTION (LEFT) */
  .contact-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
  }

  /* SOCIAL SECTION (RIGHT) */
  .contact-side {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
  }

  /* REMOVE SIDE-BY-SIDE FEEL */
  .contact-content {
    padding: 0;
  }

  /* OPTIONAL: SCROLL SNAP (APPLE FEEL) */
  html {
    scroll-snap-type: y proximity;
  }

  .contact-hero,
  .contact-main,
  .contact-side {
    scroll-snap-align: start;
  }

}