:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #f1df77;
  --dark-color: #153e9d;
  --light-color: #f8fafc;
  --text-color: #334155;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  position: static;
  overflow: hidden;
  object-fit: contain;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
}
#hero-grid {
  overflow: hidden;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-hero {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
}

/* Floating Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
  margin-top: 2rem;
}

.floating-icon {
  width: 40vw;
  max-width: 100vw;
  height: auto;
  background: rgba(33, 34, 34, 0.307);
  border-radius: 20px;
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  overflow: hidden;
  object-fit: cover;
}

.illustration {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Skills Section */
.skills {
  padding: 100px 0;
  background: var(--light-color);
}

.skill-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.skill-card h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.skill-card p {
  color: var(--text-color);
  opacity: 0.8;
}

/* Projects Section */
.projects {
  padding: 100px 0;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

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

.project-image {
  height: 200px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.project-desc {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.tech-tag {
  background: var(--light-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  width: 80%;
  height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

#oz {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--dark-color);
  color: white;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-contact {
  background: var(--gradient);
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-title {
  color: white;
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
/* Extra Large Screen */
@media (min-width: 2150px) {
  .floating-icon {
    width: 300px;
    max-width: 700px;
    overflow: hidden;
  }
  .floating-icon img {
    overflow: hidden;
    object-fit: cover;
  }
}

/* Large Screen */
@media (min-width: 1605px) {
  .floating-icon {
    width: 30vw;
    max-width: 100vw;

    object-fit: cover;
  }

  .floating-icon img {
    overflow: hidden;
    object-fit: cover;
  }
}
/* Medium Screen */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: center;
    max-width: 900px;
    object-fit: contain;
  }
  .floating-icon img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .hero-content {
    overflow: hidden;
    object-fit: contain;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .floating-icon {
    width: 50vw;
    max-width: 100vw;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    flex: none;
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Small Screen */
@media (max-width: 474px) {
  .hero-content {
    overflow: hidden;
    object-fit: cover;
  }
  .hero h1 {
    overflow: hidden;
    object-fit: contain;
  }

  .floating-icon {
    width: 80vw;
    max-width: 100vw;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}
