/* =============================================
   ARJ GRAPHICS — style.css
   =============================================
   TABLE OF CONTENTS:
   1. CSS Variables (Colors, Fonts)
   2. Reset & Base
   3. Navbar
   4. Hero Section
   5. Services Section
   6. Cards
   7. Why Us Section
   8. Contact Section
   9. Footer
   10. Animations & Reveal
   11. Mobile Responsive
   ============================================= */


/* =============================================
   1. CSS VARIABLES
   — Edit colors here para mag-change globally
   ============================================= */
:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --accent:  #f5c518;   /* Yellow — main accent color */
  --gray:    #1a1a1a;
  --light:   #f7f7f7;
  --text-muted: #aaaaaa;

  --font-display: 'Bebas Neue', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius: 12px;
  --transition: 0.3s ease;
}


/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}


/* =============================================
   3. NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--black);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--black);
  text-decoration: none;
}
.nav-logo span {
  color: var(--accent);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger button (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 62px; left: 0; right: 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  padding: 16px 0;
}
.mobile-menu.open {
  display: flex;
}
.mobile-link {
  padding: 12px 32px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-link:hover {
  background: var(--light);
}


/* =============================================
   4. HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 32px 60px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Big watermark text in the background */
.hero::before {
  content: 'ARJ';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 280px;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  max-width: 520px;
}

/* Small tag above the heading */
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* Main heading */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 80px); /* Responsive font size */
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--black);
}
.hero h1 span {
  color: var(--accent);
}

/* Subtitle */
.hero p {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* CTA Buttons row */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Primary button (black) */
.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--black);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--black);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--black);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}

/* Scroll down arrows */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounce 1.5s ease-in-out infinite;
}
.scroll-down span {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  transform: rotate(45deg);
}
.scroll-down span:nth-child(2) {
  opacity: 0.4;
  margin-top: -6px;
}


/* =============================================
   5. SERVICES SECTION
   ============================================= */
.services {
  background: var(--black);
  padding: 90px 32px;
}

/* Shared section label style */
.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Shared section title style */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 56px);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 52px;
}

/* Services title is white (dark background) */
.services .section-title {
  color: var(--white);
}


/* =============================================
   6. CARDS
   — To add a card, copy a .card div in HTML
   ============================================= */
.cards {
  display: grid;
  /* Auto-fit: cards automatically adjust columns based on screen width */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--gray);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Yellow line that appears on top of card on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 44px;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* =============================================
   7. WHY US SECTION
   ============================================= */
.why {
  background: var(--light);
  padding: 90px 32px;
}

.why .section-title {
  color: var(--black);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.why-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.why-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

/* Big number */
.why-item .num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.why-item h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}


/* =============================================
   8. CONTACT SECTION
   ============================================= */
.contact {
  background: var(--black);
  padding: 90px 32px;
  text-align: center;
}

.contact .section-title {
  color: var(--white);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #333;
  transition: all var(--transition);
}
.contact-btn:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  transform: translateY(-3px);
}


/* =============================================
   9. FOOTER
   ============================================= */
footer {
  background: #050505;
  padding: 24px 32px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

footer p {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

footer span {
  color: var(--accent);
}


/* =============================================
   10. ANIMATIONS & REVEAL
   ============================================= */

/* --- Hero entrance animations --- */
.animate-hero {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* --- Scroll reveal (controlled by JS Intersection Observer) --- */
/* Default hidden state */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* When JS adds .visible class, element appears */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards (first 6 cards) */
.cards .card:nth-child(1) { transition-delay: 0s; }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }
.cards .card:nth-child(5) { transition-delay: 0.4s; }
.cards .card:nth-child(6) { transition-delay: 0.5s; }

/* Stagger for why items */
.why-grid .why-item:nth-child(1) { transition-delay: 0s; }
.why-grid .why-item:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-item:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-item:nth-child(4) { transition-delay: 0.3s; }

/* --- Keyframes --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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


/* =============================================
   11. MOBILE RESPONSIVE
   ============================================= */

/* Tablet and below */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }

  /* Hide desktop nav, show hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding: 90px 20px 60px;
    text-align: left; /* Left-align on mobile */
  }
  .hero::before {
    font-size: 160px;
    right: -10px;
    opacity: 0.5;
  }

  .services,
  .why,
  .contact {
    padding: 60px 20px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 56px; }
  .cards { grid-template-columns: 1fr; } /* 1 column on small screens */
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
}
