@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@600&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
  --primary-color: #003049;
  --secondary-color: #011140;
  --accent-color: #0077cc;
  --light-bg: #fdf0d5;
  --hover-bg: #f2f2f2;
  --text-color: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
h1 {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}
html {
  scroll-behavior: smooth;
}
/* --- Background with gradient blobs --- */
body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: radial-gradient(circle at 20% 30%, rgba(0,119,204,0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(0,48,73,0.15), transparent 40%),
              #fdfdfd;
  background-attachment: fixed;
}


/* Header */
#header {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: var(--light-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 8%;  /* thinner */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--light-bg);
}

.site-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  color: var(--light-bg);
  margin: 0;
}

/* Nav */
#nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

#nav li a {
  position: relative;
  color: var(--light-bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

/* Animated underline */
#nav li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

#nav li a:hover::after,
#nav li a.current::after {
  width: 100%;
}

#nav li a:hover {
  color: var(--accent-color);
}


/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #fdf0d5, #ffffff);
}

.hero-content {
  max-width: 800px;
}

.profile-img {
  width: 250px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}
a.btn:hover {
    transform: scale(1.1);
}
.btn.primary {
  background: var(--accent-color);
  color: #fff;
}

.btn.primary:hover {
  background: #005fa3;
}

.btn.secondary {
  background: #fff;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn.secondary:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Social Links */
.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Sections */
section {
  padding: 2.5rem 8%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Quick Links */
.quick-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quick-links li {
  list-style: none;
}

/* Footer */
#footer {
  background: var(--secondary-color);
  color: var(--light-bg);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  #nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Section Containers */
section {
  padding: 2.5rem 8%;
}

/* About Grid */
.about-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.about-card {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.highlights {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}
.highlights li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  flex: 1;
  min-width: 260px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  margin-bottom: 1em;
}
.card:hover {
  transform: translateY(-6px);
}

/* Tech Logos */
.tech-logos img {
  width: 60px;
  height: 60px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s;
  margin-right: 1em;
}
.tech-logos img:hover {
  transform: scale(1.15);
  opacity: 1;
}
.resume {
  width: 90%;
  height: 66vw;
}
.contact-logo {
  width: 32px;
  height: 32px;
}
h1.contact, p.contact, h1.center {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 1rem;
}

h1.center {
  margin-bottom: 2rem;
}

form {
  max-width: 600px;
  margin: 2rem auto;
  background: whitesmoke;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #444;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
  outline: none;
}

input[type="submit"] {
  margin-top: 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
input[type="submit"]:hover {
  background-color: #005fa3;
}
.contact-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.contacts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0;
}
.contacts li {
  background-color: #f0f4f8;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.contacts li:hover {
  transform: translateY(-4px);
}
.contacts a {
  text-decoration: none;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
input, textarea {
  display: block;
  width: 100%;
}
