/* Root Variables for Consistent Theme */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00b4d8;
  --accent-color: #0077b6;
  --text-primary: #ffffff;
  --text-secondary: #e0e6ed;
  --text-muted: #a8b2c1;
  --background-primary: #0f1419;
  --background-secondary: #1a2332;
  --background-tertiary: #243447;
  --border-color: #34495e;
  --shadow-light: rgba(0, 102, 204, 0.1);
  --shadow-medium: rgba(0, 102, 204, 0.2);
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  --gradient-secondary: linear-gradient(135deg, #1a2332 0%, #243447 100%);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Enhanced Background with Subtle Pattern */
body::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Container Styles */
#container {
  padding-bottom: 40px;
  flex: 1;
}

/* Typography */
h1 {
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
  line-height: 1.2;
}

.title {
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--primary-color);
  line-height: 1.2;
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Enhanced Navigation */
#nav-bar {
  background: var(--background-secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  box-shadow: 0 2px 20px var(--shadow-light);
}

#nav-bar ul {
  display: flex;
  margin: 0;
  padding: 0 2rem;
  text-indent: 0;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  list-style: none;
  align-items: center;
  min-height: 70px;
}

#nav-bar ul li {
  list-style: none;
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:first-child {
  padding-left: 0;
}

.nav-link:first-child:hover {
  color: var(--primary-color);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:active {
  color: var(--secondary-color);
}

/* Content Padding */
.padding {
  padding: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Enhanced Layout Containers */
.v-flex-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
}

.h-flex-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

/* Enhanced Content Cards */
.content-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px var(--shadow-medium);
  border-color: var(--primary-color);
}

/* Enhanced Images */
/* img {
  border-radius: var(--border-radius);
  transition: var(--transition);
  max-width: 100%;
  height: auto;
} */

img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Enhanced Lists */
ul {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.75rem;
  list-style: disc;
  margin: 0;
  padding-left: 1.5rem;
}

li {
  font-size: 1.125rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 0;
  line-height: 1.6;
}

/* Enhanced Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-color);
}

a:not(.nav-link):not(.social-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

a:not(.nav-link):not(.social-link):hover::after {
  width: 100%;
}

/* Enhanced Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery div {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Enhanced Footer */
#footer {
  margin-top: auto;
  z-index: 9;
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  width: 100%;
  color: var(--text-secondary);
  text-align: center;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

#href-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.social-link:hover::before {
  left: 0;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-medium);
  border-color: var(--primary-color);
}

i.fab.fa-github,
i.fab.fa-linkedin {
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 1;
}

/* Enhanced HR */
hr {
  height: 0;
  border: none;
  border-top: 1px solid var(--border-color);
  background: none;
  opacity: 1;
  margin: 1rem 0;
  width: 100%;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .h-flex-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .title,
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .padding {
    padding: 1.5rem;
  }
  
  #nav-bar ul {
    padding: 0 1.5rem;
    min-height: 60px;
  }
  
  .nav-link {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  #href-buttons {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .title,
  h1 {
    font-size: 2rem;
  }
  
  .padding {
    padding: 1rem;
  }
  
  #nav-bar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

