/* style.css */

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

:root {
  --primary-color: #ff5722;
  --secondary-color: #111;
  --text-color: #fff;
  --text-light: #bbb;
  --bg-dark: #111;
  --bg-light: #1a1a1a;
  --card-bg: #222;
  --border-color: #333;
}

.light-theme {
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --text-light: #666;
  --bg-dark: #f5f5f5;
  --bg-light: #fff;
  --card-bg: #fff;
  --border-color: #ddd;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--text-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Header & Navigation */
.navbar {
  background-color: var(--secondary-color);
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  display: flex;
  align-items: center;
  height: 60px; /* Adjust based on your navbar height */
}

.logo span {
  color: var(--primary-color);
  display: inline-block;
}

.logo img {
  height: 40px; /* Adjust this value to your preference */
  width: auto; /* Maintain aspect ratio */
  display: block;
  transition: transform 0.3s ease;
}

/* Optional: Add hover effect */
.logo:hover img {
  transform: scale(1.05);
}

/* For responsive design */
@media (max-width: 768px) {
  .logo img {
    height: 35px; /* Slightly smaller on mobile */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 30px; /* Even smaller on very small screens */
  }
}

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

.nav-links li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-links .active {
  color: var(--primary-color);
}

.nav-links .active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.theme-toggle {
  display: flex;
  align-items: flex-end;
  background: none;
  margin-top: 5px;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 55rem;
  transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

.hero-content {
  max-width: 50%;
}

.welcome {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-color);
}

.description {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.buttons button {
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn {
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
}

.download-btn a {
  color: inherit;
  text-decoration: none;
}

.contact-btn {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.download-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.contact-btn:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
}

.social-hero {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
}

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

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,87,34,0.1), transparent);
}

.hire-btn {
  position: absolute;
  bottom: -10px;
  right: 100px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.hire-btn:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Quote Section */
.quote-section {
  background-color: var(--bg-light);
  padding: 4rem 2rem;
}

.quote-container {
  max-width: 1200px;
  margin: 0 auto;
}

.quote-text {
  font-size: 2rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.quote-details {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.detail-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.detail-item p {
  color: var(--text-light);
}

/* Section Styles */
section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* About Section */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-points {
  margin-bottom: 2rem;
}

.about-points p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-points i {
  color: var(--primary-color);
}

.education {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.education h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-snippet {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  overflow-x: auto;
}

.code-snippet pre {
  color: #fff;
  font-family: 'Courier New', monospace;
}

.code-snippet code {
  color: #569cd6;
}

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

.skill-category {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--primary-color);
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-bar {
  flex-grow: 1;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 1s ease;
}

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

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  color: white;
  background-color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #e64a19;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background-color: var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Chill Corner */
.chill-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.game-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--primary-color);
}

.game-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.play-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background-color: #e64a19;
  transform: scale(1.05);
}

.chill-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-light);
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

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

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-light);
}

.footer-links h3,
.footer-newsletter h3 {
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .about-container,
  .chill-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .image-container {
    width: 300px;
    height: 400px;
  }
  
  .quote-details {
    flex-direction: column;
    gap: 2rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}