/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for easy theming */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --accent-color: #8b5cf6;
  --text-color: #f8fafc;
  --bg-color: #0f172a;
  --gradient-bg: linear-gradient(135deg, #1e3a8a, #2563eb, #7c3aed);
  --transition: 0.35s ease-in-out;
  --glass-color: rgba(255, 255, 255, 0.04);
  --secondary-text: #94a3b8;
  --placeholder-color: #94a3b8;
  --focus-shadow: rgba(59, 130, 246, 0.3); 
}

::selection {
    color: var(--accent-color);
    background-color: var(--text-color);
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    padding: 0 40px;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    z-index: 10000;
    width: 100vw;
    font-family: Arial, Helvetica, sans-serif;
}

header img {
    height: 48px;
    width: auto;
    margin: 12px 0;
    display: block;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

header img:hover{
    transform: scale(1.15) rotate(-2deg);
    filter: hue-rotate(15deg) brightness(1.1);
    box-shadow: 0 4px 16px var(--focus-shadow);
    outline: none;
    cursor: pointer;
}

/*Search Box Style*/
.search-box {
    border-radius: 999px;
    height: 38px;
    width: 220px;
    padding: 0 18px;
    border: 1.5px solid var(--primary-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition:
        box-shadow var(--transition),
        border-color var(--transition),
        background-color var(--transition);
    outline: none;
    caret-color: var(--accent-color);
}

.search-box::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
    font-size: 0.98rem;
}

.search-box:focus{
    border-color: var(--primary-hover);
    background: #1e293b;
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

/* Navigation styles */
header nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 18px;
    transition:
        color var(--transition),
        background-color var(--transition),
        transform var(--transition);
    display: inline-block;
}

header nav ul li a:hover,
header nav ul li a:focus{
    color: white;
    outline: none;
    background: linear-gradient(135deg, #6a82fb, #4a00e0);
    transform: translateY(-3px);
}

/* Home Section */
.home-section{
    background-image: linear-gradient(
        rgb(0, 0, 0),
        var(--glass-color)
    ), url('../assets/images/image1.jpg');
    width: 100vw;
    min-height: 100vh;
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 8px 32px var(--focus-shadow);
    color: var(--text-color);
}

.home-section h1 {
  font-family: "Roboto Serif", serif;
  font-weight: 800;
  font-style: normal;
  font-size: 5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--accent-color));
  background-clip: text; /*Specify how far the background should extend within an element*/
  color: transparent;
  transform: translateY(0);
  text-shadow:
    0 4px 24px var(--focus-shadow),
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.08);
  animation: glowPulse 1.5s infinite alternate ease-in-out; /*Glow Pulse Animation*/
}
/*The Glow Pulse Animation*/
@keyframes glowPulse {
/*from this style*/
  from {
    filter: brightness(0.5);
    text-shadow:
      0 4px 24px var(--focus-shadow),
      0 2px 8px rgba(0, 0, 0, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(0);
  }
  /*to this style*/
  to {
    filter: brightness(1.5);
    text-shadow:
      0 4px 35px var(--focus-shadow),
      0 2px 14px rgba(0, 0, 0, 0.35),
      0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
  }
}


.home-section .intro {
    max-width: 700px;
    line-height: 1.6;
    color: var(--text-color);
    padding: 0 20px;
    font-family: "Roboto Serif", serif;
    font-size: 1.3rem;
    font-weight: 500;
    font-style: normal;
}

/* Main section buttons */
.btn {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.btn-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    background: var(--gradient-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-link i {
    font-size: 1.2rem;
}

.btn-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary-hover), var(--accent-color));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#aboutme-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    padding: 0 20px;
    max-width: 900px;
    text-align: center;
}

#aboutme-section h1 {
    text-transform: uppercase;
    position: relative;
    font-size: 32px;
    letter-spacing: 2px;
    padding-bottom: 16px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--accent-color));
    background-clip: text;
    color: transparent;
}

#aboutme-section h1::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

#aboutme-section h1::after {
    content: "";
    position: absolute;
    background: var(--text-color);
    width: 12px;
    height: 12px;
    bottom: -6px;
    left: 50%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transform: translateX(-50%);
}

#aboutme-section p {
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 550;
    font-style: italic;
    line-height: 1.8;
    color: black;
    max-width: 800px;
    text-align: justify;
}

#aboutme-section p strong{
    background: linear-gradient(135deg, #6a82fb, #4a00e0);
    background-clip: text;
    color: transparent;
}



/* Hide menu-toggle by default */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* show the menu button*/
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
  }

  header {
    padding: 0 20px;
  }

  header img {
    height: 40px;
  }

  .search-box {
    width: 160px;
    height: 34px;
    font-size: 0.95rem;
  }

  header nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--bg-color);
    padding: 20px 0;
    display: none; /*hidden by default*/
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
  }

  header nav ul.show {
    display: flex;
  }

  header nav ul li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  header nav ul li a {
    padding: 12px 20px;
    display: block;
    font-size: 1.2rem;
  }

  .home-section {
    padding: 40px 15px;
    text-align: center;
  }

  .home-section h1 {
    font-size: 2.8rem;
  }

  .home-section .intro {
    font-size: 1rem;
    padding: 0 10px;
  }

  .btn {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .btn-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }

  #aboutme-section h1 {
    font-size: 26px;
  }

  #aboutme-section p {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* GENERAL RESPONSIVE SETTINGS */
@media (max-width: 1024px) {
  .home-section h1 {
    font-size: 3.5rem;
  }

  .home-section .intro {
    font-size: 1.1rem;
  }

  .btn-link {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  #aboutme-section p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .home-section h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .home-section .intro {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .search-box {
    width: 140px;
    height: 32px;
    font-size: 0.9rem;
  }

  #aboutme-section h1 {
    font-size: 22px;
    padding-bottom: 12px;
  }

  #aboutme-section h1::after {
    width: 10px;
    height: 10px;
    bottom: -5px;
  }

  #aboutme-section p {
    font-size: 14px;
    padding: 0 10px;
  }

  .btn-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  .menu-toggle {
    font-size: 1.8rem;
  }
}

/* Footer Section */
#footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 60px 20px 30px;
  font-family: Arial, Helvetica, sans-serif;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-wrapper {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

/* Each Footer Section */
.footer-about,
.footer-links,
.footer-newsletter {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-about a{
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-about a:hover{
  color: var(--accent-color);
  text-decoration: underline;
}


/* Section Headings */
#footer h4 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--gradient-bg);
  background-clip: text;
  color: transparent;
}

/* Paragraph and Lists */
#footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-text);
}

#footer ul {
  list-style: none;
  padding: 0;
}

#footer ul li {
  margin-bottom: 10px;
}

#footer ul li a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition);
}

#footer ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  margin-top: 16px;
}

.social-icons p {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color);
}

.social-icons a {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 15px;
  border-radius: 6px 0 0 6px;
  border: 1px solid var(--primary-color);
  background: var(--bg-color);
  color: var(--text-color);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input::placeholder {
  color: var(--placeholder-color);
}

.newsletter-form input:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--focus-shadow);
}

.newsletter-form button {
  background: var(--gradient-bg);
  color: var(--text-color);
  border: none;
  padding: 0 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.newsletter-form button i {
  font-size: 1.1rem;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--accent-color));
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--secondary-text);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    border-radius: 6px;
  }

  .newsletter-form button {
    margin-top: 10px;
  }

  .social-icons a {
    font-size: 1.2rem;
  }
}
