/* Fonts */
@font-face {
  font-family: 'Urbanist';
  src: url('../assets/fonts/Urbanist-ExtraBold.woff') format('woff');
  font-weight: 800;
}

@font-face {
  font-family: 'Kulim Park';
  src: url('../assets/fonts/KulimPark-Regular.woff') format('woff');
  font-weight: 400;
}

/* Variables */
:root {
  --color-bg: #F5EBE0;
  --color-text: #4A3F35;
  --color-primary: #D4A5A5;
  --color-secondary: #8D7B68;
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Kulim Park', sans-serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto; 
}

/* Typography */
h1, h2, h3 { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  margin-top: 0; 
}

h1 { font-size: 72px; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 56px; margin-bottom: 2rem; }
h3 { font-size: 32px; margin-bottom: 1rem; }

/* Navigation */
.nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1rem 0; 
}

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

.nav a { 
  text-decoration: none; 
  color: var(--color-text); 
  font-weight: 800; 
  font-family: var(--font-heading); 
  transition: 0.3s ease;
}

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

/* Hero Section */
.hero { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  padding: 0 0 1rem 0; 
  align-items: center; 
  margin-top: -20px;
}

.hero-visual img { 
  width: 130%; 
}

/* Projects Grid */
.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

/* Shared Card Styles */
.card, .contact-form { 
  background: white; 
  padding: 30px; 
  border-radius: 15px; 
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 2rem;
  margin-top: 1rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover { 
  background: var(--color-secondary); 
  transform: translateY(-3px); 
}

/* About Section */
.about-section { 
  margin: 2rem auto 4rem auto; 
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  background-color: #fff;
  padding: 60px; 
  border-radius: 20px;
  align-items: center; 
  width: 100%;               
  box-shadow: 0 15px 40px rgba(74, 63, 53, 0.08); 
}

.intro-box h2 { 
  font-size: 48px; 
  margin-top: 0; 
  margin-bottom: 20px; 
}

.info-box { 
  margin-top: 30px; 
}

.info-box h3 { 
  font-size: 14px; 
  text-transform: uppercase; 
  color: var(--color-secondary); 
  margin-bottom: 10px; 
}

.accent-text { 
  color: var(--color-primary); 
  font-weight: 800; 
}

.software-grid { 
  display: flex; 
  gap: 10px; 
  margin-top: 10px; 
}

.software-icon {
  background-color: var(--color-text);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}

.about-image img { 
  width: 100%; 
  height: auto; 
  border-radius: 12px; 
  display: block; 
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 5rem;
  align-items: start; 
}

.contact-text h2 {
  margin-top: 0; 
}

.input-group { 
  margin-bottom: 1.5rem; 
  display: flex; 
  flex-direction: column; 
}

.input-group label { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  margin-bottom: 0.5rem; 
  font-size: 14px; 
}

.input-group input, .input-group textarea { 
  padding: 0.8rem; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  background-color: #ddd; 
}

/* Footer */
.foot-flex { 
  display: flex; 
  justify-content: space-between; 
  padding: 3rem 0; 
  border-top: 1px solid rgba(0,0,0,0.1); 
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .hero, .grid, .contact-grid, .about-layout { 
    grid-template-columns: 1fr; 
  }
  
  h1, .intro-box h2 { 
    font-size: 40px; 
  }
  
  .nav ul { 
    gap: 1rem; 
  }
  
  .about-layout { 
    padding: 30px; 
  }
}

/* MODAL POP-UP (JavaScript Enhancement) */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 63, 53, 0.85); 
    backdrop-filter: blur(5px); 
}

.modal-content {
    background-color: var(--color-bg);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-text);
    font-size: 40px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-btn:hover {
    color: var(--color-primary);
}

.modal-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
}