/* Base Styles & Variables */
:root {
  --primary: #0033da;
  --secondary: #008ae6;
  --dark: #2A2A3C;
  --light: #F5F5F5;
  --accent: #FF6584;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.secondary-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.secondary-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(248, 248, 248, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo img {
  height: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 50px;
}

.nav-links a {
  text-decoration: none;
  color: rgb(0, 122, 204);
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

header.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

header.scrolled .nav-links a:hover {
  color: var(--primary);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #666;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* About Section */
.about {
  padding: 100px 0;
  background: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  color: #777;
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: #f9f9ff;
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: #f0f0ff;
  border-radius: 8px;
  width: 100px;
  transition: var(--transition);
}

.skill-item:hover {
  background: var(--gradient);
  color: white;
  transform: scale(1.1);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background: white;
}

.projects-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.project-info p {
  color: #666;
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  background: #f0f0ff;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #f9f9ff;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: #666;
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 15px;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-5px);
  background: var(--secondary);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .burger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    right: 0;
    height: calc(100vh - 80px);
    top: 80px;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links li {
    margin: 0;
    opacity: 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .projects-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 15px;
  }
}
.floating-codes {
    position: relative;
    width: 100%;
    height: 300px; /* adjust to fit your section */
    overflow: hidden;
}

.floating-codes span {
    position: absolute;
    color: #00bcd4;
    font-size: 1.2rem;
    font-weight: bold;
    animation: floatAnim 6s ease-in-out infinite;
    opacity: 0.8;
}

/* Random starting positions */
.floating-codes span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-codes span:nth-child(2) { top: 40%; left: 50%; animation-delay: 1s; }
.floating-codes span:nth-child(3) { top: 70%; left: 30%; animation-delay: 2s; }
.floating-codes span:nth-child(4) { top: 15%; left: 70%; animation-delay: 3s; }
.floating-codes span:nth-child(5) { top: 60%; left: 80%; animation-delay: 4s; }
.floating-codes span:nth-child(6) { top: 80%; left: 20%; animation-delay: 5s; }

@keyframes floatAnim {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50%  { transform: translateY(-20px) rotate(5deg); opacity: 1; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
}