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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Animated background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #143ae6 0%, #0b0512 100%) !important;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Section Animated Background */
.hero {
  position: relative;
  overflow: hidden;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
  background: linear-gradient(135deg, #143ae6 0%, #0b0512 100%) !important;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Matrix-style falling code */
.code-rain {
  position: absolute;
  top: -100px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  animation: fall linear infinite;
  pointer-events: none;
}

.code-rain:nth-child(1) { left: 5%; animation-duration: 16s; animation-delay: 0s; }
.code-rain:nth-child(2) { left: 15%; animation-duration: 24s; animation-delay: 2s; }
.code-rain:nth-child(3) { left: 25%; animation-duration: 20s; animation-delay: 4s; }
.code-rain:nth-child(4) { left: 35%; animation-duration: 28s; animation-delay: 1s; }
.code-rain:nth-child(5) { left: 45%; animation-duration: 18s; animation-delay: 3s; }
.code-rain:nth-child(6) { left: 55%; animation-duration: 22s; animation-delay: 5s; }
.code-rain:nth-child(7) { left: 65%; animation-duration: 26s; animation-delay: 2.5s; }
.code-rain:nth-child(8) { left: 75%; animation-duration: 20s; animation-delay: 4.5s; }
.code-rain:nth-child(9) { left: 85%; animation-duration: 24s; animation-delay: 1.5s; }
.code-rain:nth-child(10) { left: 95%; animation-duration: 16s; animation-delay: 3.5s; }

@keyframes fall {
  0% {
    transform: translateY(0vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Geometric shapes animation */
.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.geo-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: rotate 20s linear infinite;
}

.geo-shape.triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  top: 10%;
  left: 80%;
  animation-duration: 25s;
}

.geo-shape.square {
  width: 40px;
  height: 40px;
  top: 70%;
  left: 10%;
  animation-duration: 30s;
  animation-direction: reverse;
}

.geo-shape.hexagon {
  width: 50px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  top: 30%;
  right: 5%;
  animation-duration: 35s;
}

.geo-shape.hexagon:before,
.geo-shape.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
}

.geo-shape.hexagon:before {
  bottom: 100%;
  border-bottom: 14px solid rgba(255, 255, 255, 0.05);
}

.geo-shape.hexagon:after {
  top: 100%;
  border-top: 14px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Floating particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 11s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 19s; }
.particle:nth-child(10) { left: 25%; animation-delay: 3.5s; animation-duration: 20s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #3B82F6;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3B82F6;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 15px 30px;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(255, 152, 0, 0.25);
}

.btn-secondary {
  background: white;
  color: #3B82F6;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

/* Sections */
section {
  padding: 100px 0;
  background: white;
  position: relative;
}

section:nth-child(even) {
  background: #f8fafc;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #1e293b;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #3B82F6, #8B5CF6);
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  animation: slideInLeft 1s ease-out;
  overflow: hidden;
}

.about-image img {
  max-width: 420px;
}

.about-text {
  animation: slideInRight 1s ease-out;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #64748b;
  line-height: 1.8;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #3B82F6, #8B5CF6);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 8px 0;
  color: #64748b;
  position: relative;
  padding-left: 20px;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3B82F6;
  font-weight: bold;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-content {
  padding: 30px;
}

.portfolio-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

.portfolio-item .role {
  color: #3B82F6;
  font-weight: 500;
  margin-bottom: 15px;
}

.portfolio-item p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background: linear-gradient(45deg, #3B82F6, #8B5CF6);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 6rem;
  color: #3B82F6;
  opacity: 0.3;
  font-family: serif;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial cite {
  font-weight: 600;
  color: #1e293b;
  font-style: normal;
}

/* Tech Stack Section */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.tech-category {
  text-align: center;
}

.tech-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tech-list {
  color: #64748b;
  line-height: 1.8;
}
/* Contact Section */
.contact {
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
  background: linear-gradient(135deg, #143ae6 0%, #0b0512 100%) !important;
  color: white;
}

.contact h2 {
  color: white;
}

.contact h2::after {
  background: rgba(255, 255, 255, 0.3);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-intro ul {
  list-style: none;
  max-width: 400px;
  margin: 20px auto;
  text-align: left;
}

.contact-intro li {
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
}

.contact-intro li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1e293b;
  color: white;
}

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

.form-submit {
  text-align: center;
}

.submit-btn {
  background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(255, 152, 0, 0.25);
}

/* Contact Info Cards */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-info-card a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
  background: linear-gradient(135deg, #143ae6 0%, #0b0512 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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