/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
  /* Modern Tech Gradient Palette */
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --primary-color: #4f46e5;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b; /* Amber for highlights */
  
  --text-dark: #0f172a; /* Slate 900 */
  --text-medium: #334155; /* Slate 700 */
  --text-light: #64748b; /* Slate 500 */
  
  --bg-body: #f8fafc; /* Slate 50 */
  --bg-white: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  
  --border-light: #e2e8f0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -5px rgba(79, 70, 229, 0.15);
  
  --font-family: 'Outfit', sans-serif; /* Changed to Outfit for a more modern tech look */
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-medium);
  background-color: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Reimagined */
.header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: #4f46e5; /* Fallback */
  font-size: 1.5rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  background: rgba(255,255,255,0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.8);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: var(--primary-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.social-icon {
  background: white;
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.social-icon:hover {
  background: black;
  color: white;
  border-color: black;
  transform: rotate(15deg);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .mobile-toggle {
      display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    text-align: center;
    gap: 1.5rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Section - Asymmetric & Modern */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Background Blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.highlight-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--text-dark);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: black;
  box-shadow: 0 15px 25px -5px rgba(0,0,0,0.4);
}

.btn-outline {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--text-dark);
  transform: translateY(-3px);
}

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

.hero-img-main {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
  border: 4px solid white;
  transition: var(--transition);
}

.hero-image-wrapper:hover .hero-img-main {
  transform: rotate(0deg) scale(1.02);
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.card-top { top: -20px; right: -20px; animation-delay: 0s; }
.card-bottom { bottom: 40px; left: -40px; animation-delay: 3s; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Services Section - Glass Cards */
.services {
  padding: 8rem 0;
  background: white;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-body);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card:hover {
  background: white;
  box-shadow: var(--shadow-hover);
  transform: translateY(-10px);
  border-color: #e0e7ff;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Portfolio - Masonry style feel */
.portfolio {
  padding: 6rem 0;
  background: var(--bg-body);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.portfolio-image {
  background: #f1f5f9;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.03);
}

.portfolio-content {
  padding: 2.5rem;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.portfolio-type {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-medium);
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  background: white;
  position: relative;
}

.cta-box {
  background: var(--text-dark);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  background: white;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-light);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
      padding: 4rem 0 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
      display: flex;
      flex-direction: column-reverse;
  }

  .hero-text h1 { 
      font-size: 2.5rem; 
      line-height: 1.2;
  }
  
  .btn-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .btn {
      width: 100%;
      justify-content: center;
  }
  
  .floating-card { display: none; }
  
  .section-header h2 {
      font-size: 2rem;
  }
  
  .services, .portfolio, .cta-section {
      padding: 4rem 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-col ul {
      align-items: center;
  }
  
  .footer-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
}

