/* ========================================================================== 
   Improved CSS Style for Dynamic Edition Portfolio
   With Cleaner, Modern Best Practices
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-bg: #111;
  --secondary-bg: #000;
  --light-bg: #fff;
  --body-bg: #f0f0f0;
  --text-primary: #333;
  --text-light: #fff;
  --text-muted: #999;
  --accent-color: #2c3e50;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 50px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 1s ease;

  /* Shadows */
  --shadow-light: 0 4px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 12px 25px rgba(0, 0, 0, 0.8);

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 15px;
  --radius-full: 50%;

  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.8rem;
  --font-size-2xl: 2.2rem;
  --font-size-3xl: 2.5rem;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Gallery Gap */
  --gallery-gap: 1em;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--body-bg);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ========================================================================== 
   Layout Components
   ========================================================================== */

/* Header */
header {
  background: var(--primary-bg);
  color: var(--text-light);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  margin: var(--spacing-sm) 0;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
}

header p {
  margin: 0;
  font-size: var(--font-size-lg);
  opacity: 0.9;
  font-weight: 300;
}

/* Footer */
footer {
  padding: var(--spacing-md) var(--spacing-sm);
  background: var(--secondary-bg);
  color: var(--text-light);
  text-align: center;
  margin-top: auto;
  border-top: 4px solid #222;
}

footer p {
  margin: var(--spacing-xs) 0;
}

/* ========================================================================== 
   Components
   ========================================================================== */

/* Profile Image */
.profile-pic {
  border-radius: var(--radius-full);
  width: 120px;
  height: 120px;
  border: 3px solid var(--text-light);
  object-fit: cover;
  display: block;
  margin: 0 auto var(--spacing-sm);
  transition: transform var(--transition-fast);
}

.profile-pic:hover {
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  margin: var(--spacing-md) 0 0;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.navbar li {
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
  position: relative;
  overflow: hidden;
}

.navbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-light);
  transition: left var(--transition-fast);
  z-index: -1;
}

.navbar a:hover::before,
.navbar a.active::before,
.navbar a[aria-current="page"]::before {
  left: 0;
}

.navbar a:hover,
.navbar a.active,
.navbar a[aria-current="page"] {
  color: var(--primary-bg);
  transform: translateY(-2px);
}

/* Section Headings */
.section-heading {
  font-size: var(--font-size-2xl);
  margin: var(--spacing-md) 0 1rem;
  color: var(--accent-color);
  text-align: center;
  position: relative;
  font-weight: 600;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  margin: 8px auto;
  border-radius: 2px;
}

h3 {
  font-size: var(--font-size-xl);
  color: var(--accent-color);
  text-align: center;
  margin: var(--spacing-lg) 0 var(--spacing-md);
  font-weight: 600;
}

/* Portfolio Section */
.portfolio {
  padding: var(--spacing-lg);
  background: var(--light-bg);
  margin: var(--spacing-md) auto;
  max-width: 1200px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em; /* custom larger gap for photos */
  justify-content: center;
  justify-items: center;
}

.photo-grid img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  display: block;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

.photo-grid img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-dark);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  margin: 20px 0;
}

/* Video Wrapper – keep clean edges, no extra border mismatch */
.video-wrapper {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg); /* match video corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* optional, can remove */
  position: relative; /* needed for mute button positioning */
}

/* Video – match wrapper exactly */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg); /* synced with wrapper */
  display: block;
}
.video-wrapper iframe {
  width: 100%;
  height: 280px;   /* fixed height so videos keep proportion */
  border: none;
  border-radius: 10px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills the frame, cropping if needed */
  border-radius: var(--radius-lg);
  display: block;
}

.video-wrapper:hover video {
  transform: scale(1.05);
  box-shadow: var(--shadow-dark);
}

/* Special styling for 2nd video — rounded corners + shadow, centered, no overlap */
.video-grid .video-wrapper:nth-child(2) {
  border-radius: var(--radius-lg); /* rounded corners */
  box-shadow: var(--shadow-medium); /* subtle shadow */
  overflow: visible;               /* ensure full video visible */
  transform: none;                 /* remove push-down to avoid overlap */
}

.video-grid .video-wrapper:nth-child(2) video {
  border-radius: var(--radius-lg); /* rounded corners for the video */
  box-shadow: var(--shadow-medium); /* shadow applied to the video */
}

/* Contact Section */
.contact-section {
   position: relative;   /* create stacking context */
  z-index: 9999;        /* put it above other sections */
  padding: var(--spacing-lg);
  background: var(--light-bg);
  margin: var(--spacing-md) 0;
}

.form-container {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
  background: var(--light-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.form-container h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--accent-color);
  font-size: var(--font-size-2xl);
}

.form-container iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: var(--radius-md);
  /* no unintended background override */
}


/* About Section */
.about-section {
  max-width: 900px;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.about-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
  color: var(--accent-color);
  text-align: center;
  font-weight: 600;
}

.about-section p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.2rem;
  text-align: justify;
  color: var(--text-primary);
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Highlight important text */
.about-section strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* ===========================
   CTA – Ready to Create Something Amazing?
   (Heading matches About Us style)
   =========================== */

.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

#cta-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;   /* same dark heading color as About Us */
}

.cta-container > p {
  font-size: 1.1rem;
  color: #475569;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.cta-button {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-button.primary {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  color: #ffffff;
  border: none;
}
.cta-button.primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #d1d5db;
}
.cta-button.secondary:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

/* Footer Links */
footer a {
  color: #fff;              /* white text */
  text-decoration: none;    /* remove underline */
}

footer a:hover {
  color: #ccc;              /* optional: light grey on hover */
  text-decoration: underline; /* or keep none if you want */
}

