/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors - Professional Light Theme */
  --primary-color: #f7c52d;
  --secondary-color: #ffd700;
  --bg-primary: #fafafa;
  --text-color: #2d3748;
  --text-color-two: #ffffff;
  --bg-secondary: #2d3748;
  --card-background: #ffffff;
  --bg-secondary-two: #4a5568;

  --shadow: 0 8px 25px rgba(247, 197, 45, 0.15);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  /* Colors - Professional Dark Theme */
  --primary-color: #ffd60a;
  --secondary-color: #ffbe0b;
  --bg-primary: #121212;
  --text-color: #e0e0e0;
  --text-color-two: #121212;
  --bg-secondary: #e0e0e0;
  --card-background: #1e1e1e;
  --bg-secondary-two: #2a2a2a;
  --shadow: 0 8px 25px rgba(255, 214, 10, 0.2);
}

/* Light Theme Professional Styling */
body {
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.navbar {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 197, 45, 0.1);
}

.card {
  background: #ffffff;
  border: 1px solid rgba(247, 197, 45, 0.1);
  box-shadow: 0 4px 20px rgba(247, 197, 45, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(247, 197, 45, 0.25);
  border-color: rgba(247, 197, 45, 0.3);
  transform: translateY(-3px);
}

.stat,
.skill-category,
.contact-item,
.contact-form {
  background: #ffffff;
  border: 1px solid rgba(247, 197, 45, 0.2);
  box-shadow: 0 4px 20px rgba(247, 197, 45, 0.15);
}

/* Light theme stat cards - better contrast */
.stat {
  background: #f8f9fa;
  border: 1px solid rgba(247, 197, 45, 0.35);
  box-shadow: 0 8px 30px rgba(247, 197, 45, 0.25);
  transition: all 0.3s ease;
}

.stat:hover {
  background: #f5f6f7;
  border-color: rgba(247, 197, 45, 0.45);
  box-shadow: 0 10px 35px rgba(247, 197, 45, 0.3);
  transform: translateY(-2px);
}

/* Light theme contact items - better contrast */
.contact-item {
  background: #f8f9fa;
  border: 1px solid rgba(247, 197, 45, 0.35);
  box-shadow: 0 8px 30px rgba(247, 197, 45, 0.25);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #f5f6f7;
  border-color: rgba(247, 197, 45, 0.45);
  box-shadow: 0 10px 35px rgba(247, 197, 45, 0.3);
  transform: translateY(-2px);
}

/* Light theme contact form - better contrast */
.contact-form {
  background: #f8f9fa;
  border: 1px solid rgba(247, 197, 45, 0.35);
  box-shadow: 0 8px 30px rgba(247, 197, 45, 0.25);
  transition: all 0.3s ease;
}

.contact-form:hover {
  background: #f5f6f7;
  border-color: rgba(247, 197, 45, 0.45);
  box-shadow: 0 10px 35px rgba(247, 197, 45, 0.3);
  transform: translateY(-2px);
}

/* Light theme skill categories - better contrast */
.skill-category {
  background: #f8f9fa;
  border: 1px solid rgba(247, 197, 45, 0.35);
  box-shadow: 0 8px 30px rgba(247, 197, 45, 0.25);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: #f5f6f7;
  border-color: rgba(247, 197, 45, 0.45);
  box-shadow: 0 10px 35px rgba(247, 197, 45, 0.3);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #2d3748;
  box-shadow: 0 4px 15px rgba(247, 197, 45, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 197, 45, 0.4);
}

.skill-item {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #2d3748;
  box-shadow: 0 4px 15px rgba(247, 197, 45, 0.5);
  border: 1px solid rgba(247, 197, 45, 0.4);
  font-weight: var(--weight-semibold);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 197, 45, 0.6);
}

/* Dark Theme Professional Styling */
[data-theme="dark"] body {
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
}

[data-theme="dark"] .navbar {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 214, 10, 0.2);
}

[data-theme="dark"] .card {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border: 1px solid rgba(255, 214, 10, 0.2);
  box-shadow: 0 8px 25px rgba(255, 214, 10, 0.15);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 15px 35px rgba(255, 214, 10, 0.3);
  border-color: rgba(255, 214, 10, 0.4);
  transform: translateY(-5px);
}

[data-theme="dark"] .stat,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border: 1px solid rgba(255, 214, 10, 0.2);
  box-shadow: 0 8px 25px rgba(255, 214, 10, 0.15);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #121212;
  box-shadow: 0 4px 20px rgba(255, 214, 10, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 214, 10, 0.6);
}

[data-theme="dark"] .skill-item {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #121212;
  box-shadow: 0 4px 15px rgba(255, 214, 10, 0.4);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: #e0e0e0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.2);
}

[data-theme="dark"] .profile-image {
  box-shadow: 0 0 30px rgba(255, 214, 10, 0.4);
  border: 3px solid rgba(255, 214, 10, 0.3);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2 {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

[data-theme="dark"] .stat h3 {
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

[data-theme="dark"] #footer {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Dark theme animated background */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 184, 230, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundFloat {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0px);
  }

  50% {
    opacity: 0.8;
    transform: translateY(-20px);
  }
}

/* Dark theme project cards with special hover */
[data-theme="dark"] .project-info {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(26, 26, 46, 0.9));
  backdrop-filter: blur(10px);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  top: 160px;
  right: -5px;
}

.project-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-link a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 197, 45, 0.4);
}

.project-link a i {
  font-size: 1.2rem;
  color: var(--text-color);
}

.project-link a:hover i {
  color: var(--text-color-two);
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}

/* About Section Styles */
.about-container {
  padding: 4rem 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.stat p {
  color: var(--text-color);
  font-weight: var(--weight-semibold);
}

/* Skills Section Styles */
.skills-container {
  padding: 4rem 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  background: var(--primary-color);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
}

/* Project Images */
.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

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

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

/* Contact Section Styles */
.contact-container {
  padding: 4rem 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-item h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

.contact-item a:hover {
  opacity: 0.8;
}

/* Contact Form */
.contact-form {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid rgba(247, 197, 45, 0.3);
  border-radius: 5px;
  background: #ffffff;
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(247, 197, 45, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(247, 197, 45, 0.2);
}

/* Form Message Styles */
.form-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: var(--weight-semibold);
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

[data-theme="dark"] .form-message.success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.4);
}

[data-theme="dark"] .form-message.error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Button Loading State */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  display: none;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .header-container h1 {
    font-size: 2rem;
  }

  .header-container .content-text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .about-container,
  .skills-container,
  .contact-container {
    padding: 2rem 1rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat h3 {
    font-size: 2rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}