/* ========================================
   AK Solar Technologies - Style Sheet
   ======================================== */

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

/* ----------------------------------------
   CSS Custom Properties
   ---------------------------------------- */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;
  --card: 0 0% 98%;
  --card-foreground: 0 0% 10%;
  --primary: 90 72% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 10%;
  --muted-foreground: 0 0% 40%;
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 90 72% 47%;
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, hsl(90 72% 47%) 0%, hsl(90 80% 40%) 100%);
  --shadow-card: 0 4px 24px -4px hsl(0 0% 0% / 0.08);
  --shadow-primary: 0 8px 32px -8px hsl(90 72% 47% / 0.3);
  --shadow-glow: 0 0 60px 10px hsl(90 72% 47% / 0.1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(1);
}

.btn-primary--sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-primary--lg {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-primary--full {
  width: 100%;
}

/* ----------------------------------------
   Text Gradient
   ---------------------------------------- */
.text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  background: transparent;
}

.header--scrolled {
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header__inner { height: 5rem; }
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo img { height: 3rem; }
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: hsl(var(--primary));
}

.header__menu-btn {
  display: flex;
  align-items: center;
  color: hsl(var(--foreground));
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .header__menu-btn { display: none; }
}

.header__menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ----------------------------------------
   Mobile Menu
   ---------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: hsl(var(--primary));
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: hsl(var(--foreground));
  padding: 0.5rem;
}

.mobile-menu__close svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(0 0% 10% / 0.85),
    hsl(0 0% 10% / 0.7),
    hsl(0 0% 10% / 0.95)
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 6rem 1rem 4rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(0 0% 100% / 0.1);
  border: 1px solid hsl(0 0% 100% / 0.2);
  margin-bottom: 2rem;
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero__badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(0 0% 85%);
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: hsl(0 0% 100%);
}

@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}

.hero__subtitle {
  font-size: 1.125rem;
  color: hsl(0 0% 75%);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero__subtitle { font-size: 1.25rem; }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: hsl(0 0% 65%);
  cursor: pointer;
  transition: color 0.2s;
}

.hero__scroll:hover {
  color: hsl(0 0% 85%);
}

.hero__scroll-text {
  font-size: 0.875rem;
}

.hero__scroll svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: bounce 2s infinite;
}

/* ----------------------------------------
   Section Shared
   ---------------------------------------- */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section--alt {
  background: hsl(var(--secondary) / 0.5);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 4rem; }
}

.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section__title { font-size: 2.25rem; }
}

.section__subtitle {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

/* ----------------------------------------
   Cards (Services & References)
   ---------------------------------------- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.cards-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.cards-grid--ref {
  max-width: 60rem;
}

.card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.3);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}

.card:hover .card__icon {
  background: hsl(var(--primary) / 0.2);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  stroke: currentColor;
  fill: none;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__power {
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ----------------------------------------
   Contact Section
   ---------------------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-dept__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-dept__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

a.contact-item:hover .contact-item__value {
  color: hsl(var(--primary));
}

.contact-item__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

a.contact-item:hover .contact-item__icon {
  background: hsl(var(--primary) / 0.2);
}

.contact-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  stroke: currentColor;
  fill: none;
}

.contact-item__label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-item__value {
  font-weight: 500;
  transition: color 0.2s;
}

/* Contact Form */
.contact-form {
  background: hsl(var(--card));
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  padding: 2rem;
}

.contact-form__grid {
  display: grid;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  height: auto;
  min-height: 5rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.contact-form__privacy {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 0.25rem;
}

.contact-form__privacy a {
  color: hsl(var(--primary));
  transition: text-decoration 0.2s;
}

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

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__logo img {
  height: 2rem;
  width: auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__nav-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: hsl(var(--primary));
}

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer__info { align-items: flex-end; }
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  transition: color 0.2s;
}

.footer__links a:hover {
  color: hsl(var(--primary));
}

.footer__address,
.footer__copyright {
  font-size: 0.75rem;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
