:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* Global section styling */
section {
  max-width: 1750px; /* Adjust this value to reduce the width */
  margin: 0 auto;   /* Centers the content horizontally */
  padding: 0;  /* Adds some padding to the sides */
}

section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

section p {
  margin-bottom: 10px;
}

/* For all section content */
.aboutme-section .text,
.core-cybersecurity-section .text,
.network-security-section .text,
.cloud-security-section .text,
.other-cybersecurity-section .text,
.cyber-policy-section .text,
.outside-cybersecurity-section .text,
.skills-section .text{
  max-width: 1115px;
  border-right: 200px;
  margin: 0 auto;   /* Center the content */
  padding: 0 20px;  /* Adds padding for spacing */
}


/* Hero Section */
/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1115px; /* Consistent width with other sections */
  margin: 50px auto 0 auto;
  padding: 0 20px;
  gap: 40px; /* Space between text and image */
}

/* Left side: Text */
.hero-section .text {
  flex: 1; /* Takes 50% of the space */
  padding-right: 20px; /* Adds some spacing to the right of the text */
}

/* Right side: Image */
.hero-section .headshot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .headshot img {
  width: 300px; /* Ensure equal width and height for a perfect circle */
  height: 300px;
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image scales properly */
  object-position: 10% 30%; /* Centers the image content */
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}




/* Skills Section Styling */
.skills-section h2
{
  text-align: center;
  margin-bottom: 30px;
}
.skills-section
{
  align-items: left;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}


/* Center-align the figure, image, and caption */
.core-cybersecurity-section figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the image and caption */
  justify-content: center; /* Ensures vertical alignment */
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto; /* Centers the entire figure block */
}

/* Image-specific styling */
.core-cybersecurity-section .core-image {
  width: 50%; /* Adjust size as needed */
  height: auto;
  display: block; /* Ensures the image behaves like a block element */
  margin-left: auto;
  margin-right: auto; /* Centers the image */
  border-radius: 10px;
}

/* Caption styling */
.core-cybersecurity-section .image-caption {
  font-style: italic; /* Makes the text italic */
  font-size: 14px; /* Adjust font size */
  margin-top: 10px; /* Adds space between the image and the caption */
  color: #666; /* Optional: set a softer color for the caption */
  text-align: center;
}


.network-security-section figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the image and caption */
  margin-top: 20px;
}

.network-security-section .network-image {
  width: 75%; /* Same size as the core image */
  height: auto;
  border-radius: 10px;
}

.network-security-section .image-caption {
  font-style: italic; /* Makes the text italic */
  font-size: 14px; /* Adjust font size */
  margin-top: 10px; /* Adds space between the image and the caption */
  color: #666; /* Optional: set a softer color for the caption */
  text-align: center;
}

/* Contact Section */
.contact-section {
  max-width: 1115px; /* Match the width of other sections */
  margin: 0 auto;    /* Centers the contact section */
  padding: 0 20px;   /* Adds padding for spacing */
  text-align: center;
  margin-bottom: 50px;
}

.contact-section h2 {
  text-align: center; /* Keep the heading centered */
  margin-bottom: 30px; /* Add space below the heading */
}

.contact-section .group {
  display: flex;
  flex-direction: column; /* Stack the text and form vertically */
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between the text and form */
}

/* Text styling (same format as other sections) */
.contact-section .text {
  max-width: 800px; /* Adjust this to align with other text sections */
  margin: 0 auto;
  font-size: 18px;
  padding-bottom: 20px;
}

/* Form styling */
.contact-section .group form {
  max-width: 600px; /* Adjust this value to match other section widths */
  width: 100%; /* Ensures the form stretches to full width within its container */
  padding: 0 20px;
  margin: 0 auto; /* Centers the form */
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  width: 100%; /* Ensure inputs and textarea stretch full width */
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  width: 100%; /* Button stretches full width */
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.9);
}

@media (max-width: 850px) {
  .contact-section .group form {
    max-width: 100%; /* Ensure the form adapts to smaller screens */
  }
}

.aboutme-section h2
{
  text-align: center;
  margin-top: 75px; 
}
.aboutme-section
{
  align-items: center;
padding: 0 50px;
margin: 50px 0;
gap: 40px;
}

.core-cybersecurity-section h2
{
  text-align: center;
}
.core-cybersecurity-section
{
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}

.network-security-section h2
{
  text-align: center;
}
.network-security-section {
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}

.cloud-security-section h2
{
  text-align: center;
}
.cloud-security-section {
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}

.other-cybersecurity-section h2
{
  text-align: center;

}
.other-cybersecurity-section
{
  align-items: center;
  padding: 0 50px;
  margin-bottom: 50px 0;
  gap: 40px;
}

/* Other Cybersecurity Section Image Styling */
.other-cybersecurity-section figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the image and caption */
  margin-top: 20px;
  margin-bottom: 50px;
}

.other-cybersecurity-section .other-cyber-image {
  width: 50%; /* Adjust the size if necessary */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto; /* Centers the image */
  border-radius: 10px;
}


.cyber-policy-section
{
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}
.cyber-policy-section h2
{
  text-align: center;
}

.outside-cybersecurity-section
{
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  gap: 40px;
}
.outside-cybersecurity-section h2
{
  text-align: center;
}

.contact-section h2 
{
  text-align: center;
}


@media (max-width: 850px) {
  .hero-section .text h2 {
    font-size: 35px;
  }
}

@media (max-width: 740px) {
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  section {
    padding: 0 10px;
  }

  .contact-section .group {
    flex-direction: column;
  }

}
