:root {
  --primary: #4b77a5;       /* Dark Blue */
  --primary-light: #6d97be; /* Medium Blue */
  --secondary: #000000;     /* Black */
  --dark: #000000;          /* Black */
  --light: #ffe9df;         /* Light Peach */
  --text: #000000;          /* Black */
  --text-light: #4b77a5;    /* Dark Blue */
  --white: #ffffff;         /* White */
  --gray: #6d97be;          /* Medium Blue */
  --success: #4b77a5;       /* Dark Blue */
  --warning: #000000;       /* Black */
}

[data-theme="dark"] {
  --primary: #6d97be;       /* Medium Blue */
  --primary-light: #4b77a5; /* Dark Blue */
  --secondary: #000000;     /* Black */
  --dark: #ffe9df;          /* Light Peach */
  --light: #000000;         /* Black */
  --text: #ffe9df;          /* Light Peach */
  --text-light: #6d97be;    /* Medium Blue */
  --white: #000000;         /* Black */
  --gray: #4b77a5;          /* Dark Blue */
}

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

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 100px;
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3e3e3e, #080808);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: white;
  font-family: 'Poppins', sans-serif;
  animation: fadeOut 0.5s 4.5s forwards;
}

.splash-content {
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s 0.3s forwards;
}

.powered-by {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 3px;
}

.welcome-text {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.loading-bar::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: white;
  animation: loading 4s ease-in-out forwards;
}

/* Animations */
@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Navigation */
.floating-nav {
  position: fixed;
  height: 80px;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(248, 249, 250,);
  opacity: 1;
}

[data-theme="dark"] .floating-nav {
  background-color: rgba(83, 83, 83, 0.5);
}

.floating-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.50);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

[data-theme="dark"] .floating-nav.scrolled {
  background-color: rgba(98, 98, 98, 0.871);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0%;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color:black;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1.2rem;
}

.theme-toggle i {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 1;
}

.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1001;
  width: 30px;
  height: 21px;
  position: relative;
}

.hamburger {
  width: 30px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

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

.hamburger::after {
  top: 8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: black;
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: black;
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center, top;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-text {
  max-width: 600px;
}

.greeting {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.name {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.bio {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn.primary {
  background: var(--primary);
  color:black ;
  border: 1px solid var(--primary);
  margin: 10px;
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-image {
  position: relative;
}

.image-container {
  width: 450px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

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

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 20px;
  margin-top: 0.5rem;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { top: 5px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(255, 255, 255, 0.5);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.project-info p {
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  background: var(--gray);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.link-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.link-btn:not(.secondary) {
  background: var(--primary);
  color: var(--white);
}

.link-btn.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.link-btn:hover {
  opacity: 0.9;
}

.project-media {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skill-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.);
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
}

.skill-item span {
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 5px;
  background: var(--gray);
  border-radius: 5px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  width: 0;
  transition: width 1s ease;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
  color: var(--text);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.loader {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid var(--white);
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: none;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.form-message.success {
  color: var(--success);
  display: block;
}

.form-message.error {
  color: var(--warning);
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gray);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  margin-bottom: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* .footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
} */

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-image {
    order: 1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Hide scroll indicator on mobile */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #ffe9df;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .name {
    font-size: 2.5rem;
  }
  
  .title {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .image-container {
    width: 300px;
    height: 300px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero{
    height: 150vh;
  }

}

/* Hero Section Mobile Fix */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 85px 0 50px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
    padding: 0 15px;
  }
  
  .hero-image {
    order: 1;
    margin: 0 auto;
  }
  
  .image-container {
    width: 280px;
    height: 280px;
  }
  
  .scroll-indicator {
    position: relative;
    bottom: auto;
    margin-top: 40px;
  }
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
}

/* Remove top padding on mobile */
@media (max-width: 768px) {
  body {
    padding-top: 50px !important; /* Force remove padding */
  }
  
  /* Adjust navbar height on mobile */
  .navbar {
    height: 60px; /* Reduce navbar height */
  }
  
  /* Ensure content touches top */
  .hero {
    padding-top: 60px !important; /* Match navbar height */
  }
}

@media (min-width: 768px) {
    .btn.secondary {
        display: inline-block;
        margin: 10px;
    }
}

.logo {
  border: 2px solid black
}

[data-theme="dark"] .logo {
  border: 2px solid white;
}

