/* style.css - Premium Design System for S G Infotech */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #07080f;
  --bg-secondary: #0c0e1a;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  --glass-bg: rgba(12, 14, 26, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e2238;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Background Glow Effects */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.glow-1 {
  top: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: var(--accent-blue);
}
.glow-2 {
  bottom: 20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
}

/* Reusable Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}
.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}
header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 10px 0;
}
header:not(.scrolled) {
  padding: 20px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: white;
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 80vh;
  padding-top: 100px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-text h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-circle-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.3;
  animation: pulse 6s infinite alternate;
}
.hero-image-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  width: 100%;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero-card-dot.red { background: #ef4444; }
.hero-card-dot.yellow { background: #f59e0b; }
.hero-card-dot.green { background: #10b981; }

.hero-code-block {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  line-height: 1.5;
}
.hero-code-block span.keyword { color: #f43f5e; }
.hero-code-block span.string { color: #10b981; }
.hero-code-block span.comment { color: #64748b; }

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Featured Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.portfolio-item {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}
.portfolio-preview {
  height: 220px;
  background: var(--gradient-glow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-preview i {
  position: absolute;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}
.portfolio-preview img {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  z-index: 1;
}
.portfolio-item:hover .portfolio-preview i {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.25);
}
.portfolio-item:hover .portfolio-preview img {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}
.portfolio-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.portfolio-details {
  padding: 25px;
}
.portfolio-details h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.portfolio-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.portfolio-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.portfolio-link:hover {
  color: var(--accent-purple);
  gap: 10px;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px;
  box-shadow: var(--glass-shadow);
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 35px;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.15rem;
}
.contact-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.contact-text p {
  margin: 0;
  font-weight: 500;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 18px;
  color: white;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-status {
  font-size: 0.95rem;
  margin-top: 10px;
  display: none;
  font-weight: 600;
}
.form-status.success {
  color: #10b981;
  display: block;
}
.form-status.error {
  color: #ef4444;
  display: block;
}

/* Footer */
footer {
  background: #030408;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-secondary);
  margin-top: 15px;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: white;
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.1); opacity: 0.4; }
}

/* Responsive Web Design */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 140px;
  }
  .hero-text p {
    margin: 0 auto 35px;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px;
    align-items: flex-start;
    gap: 25px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  .nav-menu.active {
    left: 0;
  }
  .menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2.6rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
