/* Base styles */
:root {
  --text-color: #ffffff;
  --text-color-secondary: rgba(255, 255, 255, 0.9);
  --background-color: #000000;
  --accent-color: #ffffff;
  --primary-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-background: rgba(255, 255, 255, 0.03);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;
  --container-width: 1200px;
  --header-height: 80px;
  --modal-max-width: 1600px;
  --modal-max-height: 90vh;
  --modal-image-height: 600px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.gradient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 150, 255, 0.15) 0%, transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(0, 200, 255, 0.15) 0%, transparent 70%);
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header and Navigation */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.contact-button {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + var(--spacing-xxl));
  padding-bottom: var(--spacing-xxxl);
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
}

.hero-info {
  font-size: 18px;
  color: var(--text-color-secondary);
  max-width: 800px;
}

.hero-info p {
  margin-bottom: var(--spacing-md);
}

/* Projects Section */
.projects {
  padding: var(--spacing-xxxl) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.project-image {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: var(--spacing-xl);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.2)
  );
}

.project-info h3 {
  font-size: 24px;
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: #fff;
}

.project-info p {
  color: var(--text-color-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: var(--spacing-xxxl) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.about-text h2 {
  font-size: 42px;
  margin-bottom: var(--spacing-lg);
}

.about-intro {
  font-size: 20px;
  margin-bottom: var(--spacing-lg);
}

.about-text p {
  margin-bottom: var(--spacing-lg);
  color:#e2f0f5;
}

.about-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
justify-content: flex-start; /* Ensure buttons align to the left */
  align-items: center; /* Vertically align items in the flex container */
}

.primary-button {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--text-color);
  color: var(--background-color);
  border: none;
  text-align: center;
}

.primary-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Contact Section */
.contact {
  padding: var(--spacing-xxxl) 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}

.contact-heading h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.contact-heading p {
  font-size: 18px;
  color: var(--text-color-secondary);
  margin-bottom: var(--spacing-xl);
}

.social-links {
  display: flex;
  gap: var(--spacing-lg);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--background-color);
  border-radius: var(--radius-lg);
  width: min(var(--modal-max-width), 95%);
  max-height: var(--modal-max-height);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.close-button {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1010;
  font-size: 24px;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xxl);
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: var(--spacing-xl);
  height: 100%;
  overflow: hidden;
}

.modal-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  overflow-y: auto;
  padding-right: var(--spacing-md);
}

.modal-main::-webkit-scrollbar {
  width: 8px;
}

.modal-main::-webkit-scrollbar-track {
  background: transparent;
}

.modal-main::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.modal-sidebar {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--spacing-xl);
  height: fit-content;
  position: sticky;
  top: 0;
}

.modal h2 {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
}

.modal p {
  font-size: 18px;
  color: var(--text-color-secondary);
  line-height: 1.6;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.detail-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-color-secondary);
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
}

.detail-subtext {
  font-size: 14px;
  color: var(--text-color-secondary);
}

.modal-variants {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.variant-button {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.variant-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.variant-button.active {
  background: var(--text-color);
  color: var(--background-color);
}

.modal-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.modal-image-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal-image-container:hover img {
  transform: scale(1.02);
}

.modal-nav {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--spacing-xl);
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  gap: var(--spacing-md);
}

.nav-button {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-button:hover {
  background: var(--text-color);
  color: var(--background-color);
}

/* Fullscreen image viewer */
.fullscreen-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.fullscreen-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.close-fullscreen {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-sidebar p {
  margin-bottom: 1em; /* Adjust the '1em' value to control the spacing */
}

/* Remove the margin from the very last paragraph to avoid extra space at the bottom */
.modal-sidebar p:last-child {
  margin-bottom: 0;
}

.about-buttons {
  transform: translateX(0) !important; /* Use !important with caution */
}