/* ==== VARIABLES & FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600&family=Montserrat:wght@700;800&display=swap');

:root {
  --primary-blue: #007BFF;
  --energetic-orange: #FF8C00;
  --tech-teal: #008080;
  --light-gray: #F0F0F0;
  --dark-bg: #121212;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-white: #ffffff;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --glow-subtle: 0 4px 15px rgba(0, 123, 255, 0.3);
  --glow-hover: 0 8px 25px rgba(0, 123, 255, 0.5);
  --glow-orange: 0 4px 15px rgba(255, 140, 0, 0.4);
}

/* ==== RESET & BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ==== COMPONENTS ==== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--tech-teal));
  color: var(--text-light);
  box-shadow: var(--glow-subtle);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
  box-shadow: var(--glow-subtle);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-bg);
  text-align: center;
}

.section-title span {
  color: var(--primary-blue);
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* ==== HEADER ==== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--energetic-orange);
  transition: width 0.3s ease;
}

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

/* ==== HERO SECTION ==== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--dark-bg);
  background-image: url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding-top: 70px; /* Offset for header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--tech-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  color: var(--primary-blue);
  -webkit-text-fill-color: var(--primary-blue);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* ==== ABOUT SECTION ==== */
.about {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow-subtle);
}

.about-img-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 4px rgba(0, 123, 255, 0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #555;
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-blue);
  box-shadow: var(--glow-subtle);
}

/* ==== SERVICES SECTION ==== */
.services {
  padding: 100px 0;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  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(to right, var(--primary-blue), var(--tech-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-subtle);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--energetic-orange);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
}

/* ==== CODE SECTION ==== */
.code-section {
  padding: 100px 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
  position: relative;
}

.code-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.code-text .section-title {
  color: var(--text-light);
  text-align: left;
}

.code-text .section-subtitle {
  text-align: left;
  margin: 0 0 30px 0;
  color: #aaa;
}

.mac-window {
  background-color: #1e1e1e;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid #333;
}

.mac-header {
  background-color: #2d2d2d;
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

.mac-buttons {
  display: flex;
  gap: 8px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-close { background-color: #ff5f56; }
.mac-min { background-color: #ffbd2e; }
.mac-max { background-color: #27c93f; }

.mac-title {
  margin: 0 auto;
  color: #888;
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.code-block {
  padding: 30px;
  font-family: var(--font-code);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
}

.c-blue { color: #56b6c2; }
.c-purple { color: #c678dd; }
.c-yellow { color: #e5c07b; }
.c-green { color: #98c379; }
.c-red { color: #e06c75; }
.c-gray { color: #7f848e; }
.c-orange { color: #d19a66; }
.c-teal { color: var(--tech-teal); }

/* ==== CTA SECTION ==== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--tech-teal));
  text-align: center;
  color: var(--text-light);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta .btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

.cta .btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* ==== FOOTER ==== */
footer {
  background-color: #0a0a0a;
  color: #aaa;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 20px;
  max-width: 300px;
}



.footer-col h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 0.9rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .about-grid, .code-container { grid-template-columns: 1fr; }
  .about-img-container { order: -1; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Add hamburger menu for real app */
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 2rem; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto 20px auto; }
  .social-links { justify-content: center; }
}
