/* === Theme Variables === */
:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-alternate: #cccccc;
  --bg-secondary: #e8e9ea;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-color: #007bff;
  --accent-hover: #0056b3;
  --nav-bg: #ffffff;
  --nav-border: #eaeaea;
  --card-bg: #ffffff;
  --card-shadow: rgba(0,0,0,0.1);
}

:root[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-alternate: #333333;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-color: #3a8fff;
  --accent-hover: #1a6cd6;
  --nav-bg: #2d2d2d;
  --nav-border: #404040;
  --card-bg: #2d2d2d;
  --card-shadow: rgba(0,0,0,0.3);
}

/* === Font Display === */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* === Basic Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Container to Limit Content Width === */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* === Navigation Bar === */
.navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo a {
  display: flex;
  align-items: center;
  text-decoration: underline;
  transition: opacity 0.3s ease;
  color: var(--text-primary);
}

.navbar .logo a:hover {
  opacity: 0.8;
}

.navbar .logo-img {
  height: 90px;
  width: auto;
}

/* Dark theme logo adjustment if needed */
:root[data-theme="dark"] .logo-img,
:root[data-theme="dark"] .icon {
  filter: brightness(0) invert(1); /* This will make the logo white in dark mode */
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 20px;
}

.navbar .nav-links a {
  text-decoration: underline;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: var(--accent-color);
}

/* === Hero Section === */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: left;
  color: #fff;
  padding: 0 20px;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,123,255,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-btn {
  position: relative;
  text-align: right;
}

.hero-content h1 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 4.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--text-primary);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* === Common Section Styling === */
section {
  padding: 100px 0;
}

#about {
  background: var(--bg-alternate);
}

/* === About Section === */
#about p {
  margin-top: 15px;
  font-size: 1.1rem;
}

#about a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

/* === Footer === */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

/* === Scroll Progress === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  background: #007bff;
  width: 0;
  transition: width 0.1s ease;
}

/* Theme Toggle Button Styles */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  transition: transform 0.3s ease;
  height: 100%;
}

.theme-toggle:hover {
  transform: rotate(12deg);
  color: var(--accent-color);
}

.theme-toggle i {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.icon {
  width: 2em;
  height: 2em;
}

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

.social-link {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

social-link:hover {
  color: var(--accent-color);
}

.social-link i {
  font-size: 1.5rem;
}

/* === Hamburger Menu Styles === */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 4px;
    background-color: var(--text-primary);
    position: absolute;
    transition: transform 0.15s ease;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--text-primary);
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Active state */
.hamburger.active .hamburger-inner {
    transform: rotate(90deg);
}

.hamburger.active .hamburger-inner::before {
    transform: rotate(-90deg);
    top: 0;
}

.hamburger.active .hamburger-inner::after {
    display: none;
}

/* === Media Queries === */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        text-align: center;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .social-link {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .hero-btn {
      text-align: center;
    }

    .navbar .container {
        justify-content: center;
        position: relative;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 250px;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 100px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0 0 20px 0;
    }

    .hamburger {
        margin-right: auto;
        display: block;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
      position: absolute; /* Position the second item centrally */
      left: 50%;
      transform: translateX(-50%); 
    }
    .theme-toggle {
      margin-left: auto;
    }
}

/* Add viewport meta tag to your HTML head */
