/* style.css - Premium Modern Dark Portfolio Styling */

/* --- Custom Properties & Palette --- */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-nav: rgba(9, 13, 22, 0.8);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.4);
  
  --primary: #f59e0b; /* Vibrant Marigold Yellow */
  --primary-glow: rgba(245, 158, 11, 0.15);
  --secondary: #3b82f6; /* Modern Blue */
  --gradient-accent: linear-gradient(135deg, #f59e0b, #3b82f6);
  --gradient-glow: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(59, 130, 246, 0.3));
  
  --text-primary: #f3f4f6; /* Off-white */
  --text-muted: #9ca3af; /* Warm Gray */
  --text-active: #ffffff;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-active);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-active);
}

/* --- Layout Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}

/* --- Sticky Glass Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.nav-logo a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-active);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-active);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  color: #ffffff;
  background: var(--secondary);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  color: var(--text-active);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 0;
  min-height: 80vh;
}

.hero-text {
  flex: 1.2;
}

.hero-text h1 {
  line-height: 1.2;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #ffffff, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
}

.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--gradient-glow);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
}

.hero-image img {
  width: 320px;
  height: 320px;
  border-radius: 30px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: var(--transition-smooth);
}

.hero-image img:hover {
  transform: translateY(-5px) scale(1.02);
}

/* --- Project Grid & Cards --- */
.featured-projects {
  padding: 6rem 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3rem 0;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-active);
}

.project-card-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-card-content .btn {
  align-self: flex-start;
}

/* --- Case Study Elements --- */
.case-study-header {
  text-align: center;
  padding: 4rem 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.case-study-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.case-study-header img {
  border-radius: 16px;
  border: 1px solid var(--border-light);
  max-width: 100%;
  height: auto;
  margin-top: 3rem;
  transition: var(--transition-smooth);
}

.case-study-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.case-study-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: block;
}

.case-study-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.case-study-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --- About Page & Teaser Block --- */
.teaser {
  background: radial-gradient(circle at top, var(--primary-glow) 0%, transparent 60%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 6rem 0;
}

.teaser-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.teaser-content blockquote {
  font-size: 1.45rem;
  font-style: italic;
  color: var(--text-active);
  position: relative;
  padding: 2rem 3rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.teaser-content blockquote::before {
  content: '“';
  font-size: 5rem;
  color: rgba(245, 158, 11, 0.2);
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: serif;
}

/* --- Custom logically grouped Toolbox --- */
.toolbox {
  margin-top: 4rem;
}

.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.toolbox-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.toolbox-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.toolbox-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.toolbox-card ul {
  list-style: none;
}

.toolbox-card li {
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbox-card li::before {
  content: "✦";
  color: var(--secondary);
  font-size: 0.8rem;
}

/* --- Contact Page --- */
.contact-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}

.contact-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text-active);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.contact-card a:hover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
}

/* --- Call To Action Section --- */
.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at bottom, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  border-top: 1px solid var(--border-light);
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border-light);
  background: #06080e;
}

.footer-socials {
  margin-bottom: 1.5rem;
}

.footer-socials a {
  margin: 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer p {
  font-size: 0.9rem;
  color: rgba(156, 163, 175, 0.5);
  margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 868px) {
  .navbar {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 0;
    gap: 3rem;
  }
  
  .hero-image img {
    width: 240px;
    height: 240px;
    border-radius: 20px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}
