/* CSS Variables */
:root {
  --primary: #005bea;
  --secondary: #00c6fb;
  --white: #ffffff;
  --muted: #6f7b8a;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Open Sans", sans-serif;
  color: #002654;
  background: var(--white);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.page {
  padding-top: 80px;
  max-width: var(--max-width);
  margin: auto;
}

/* HERO SECTION */
.hero {
  min-height: 70vh;
  padding: 3rem 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hero-right {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headshot {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--primary);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.headshot:hover {
  transform: scale(1.05);
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION STYLES */
section {
  padding: 3rem 1rem;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.muted {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ABOUT SECTION */
.about {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-left {
  flex: 1;
  min-width: 300px;
}

.about-left p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-right {
  flex: 0 0 300px;
  background: linear-gradient(180deg, var(--secondary), transparent);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-right h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  background: rgba(0, 91, 234, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s;
}

.skills-list li:hover {
  transform: translateX(5px);
  background: rgba(0, 91, 234, 0.15);
}

/* PORTFOLIO SECTION */
.portfolio-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.card {
  flex: 1 1 calc(33.333% - 0.7rem);
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card:hover img {
  transform: scale(1.05);
}

.card .content {
  padding: 1.2rem;
}

.card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* SERVICES SECTION */
.services {
  background: rgba(0, 198, 251, 0.03);
  border-radius: var(--radius);
}

.service-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.service {
  flex: 1 1 calc(33.333% - 0.7rem);
  min-width: 250px;
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  transition: all 0.3s;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service h4 {
  font-weight: 600;
  font-size: 1.1rem;
}

/* CONTACT SECTION */
.contact {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-info {
  flex: 0 0 250px;
  background: rgba(0, 91, 234, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.contact-info p {
  margin-bottom: 0.3rem;
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 91, 234, 0.2);
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 234, 0.1);
}

form button {
  border: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

form button:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .page {
    padding-top: 100px;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-right {
    order: -1;
  }
  
  .headshot {
    width: 200px;
    height: 200px;
  }
  
  .about-right, .contact-info {
    flex: 1 1 100%;
  }
  
  .card, .service {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .headshot {
    width: 180px;
    height: 180px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}