
/* --- Experience Section --- */
.experience {
    padding: 40px 0;
}

.experience-item {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.experience-header .info {
    /* container for h3 and company */
}

.experience-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 1.2rem;
}

.experience-item .company {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.experience-item .date {
    font-size: 0.9rem;
    color: var(--muted);
    flex-shrink: 0;
    margin-left: 20px;
}

.experience-item ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
}

:root {
  --accent: #7f5af0;
  --accent-2: #2cb67d;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --radius: 14px;
  --max-width: 1100px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* --- Hero Section --- */
header.hero {
  background-image: url('images/hero_background.svg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}
header.hero h1 {
  margin: 0;
  font-size: 2.4rem;
}

header.hero h2 {
    color: #fff;
    margin-top: 10px;
    font-weight: 400;
}

header.hero p {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
}

header.hero .links-container {
    margin-top: 25px;
}

header.hero .links-container img {
    filter: invert(1) brightness(2);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
header.hero .links-container img:hover {
    opacity: 1;
}

main {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 20px;
  overflow: hidden; /* Hide the horizontal overflow from the gallery */
}

/* --- Section Headers --- */
main .section > h3 {
    color: var(--accent);
    font-size: 1.6rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-2);
    margin-bottom: 25px;
    display: inline-block;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
  color: var(--accent);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: 20px;
}

.skill-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: start;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.skill-card h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- Key Features Section --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
}
.feature {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  background: linear-gradient(180deg,#fff,#f9fafc);
}
.feature h3 {
  margin-top: 0;
  color: var(--accent-2);
  font-size: 1.1rem;
}

/* --- Screenshots Section --- */
.screenshots {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.screenshots h2 {
  margin-bottom: 20px;
  color: var(--accent, #7f5af0);
}

.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.screenshot-box {
  width: 220px;         /* fixed width */
  height: 400px;        /* fixed height like phone screen */
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.screenshot-box:hover {
  transform: scale(1.05);
}

.screenshot-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;   /* crop nicely */
  border-radius: 12px;
}

/* Projects Grid */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#project-gallery {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.project-card {
  width: 40vw; /* 4 cards per viewport */
  height: 50vh;
  padding: 5px;
  margin: 0 10px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

#project-gallery:hover {
  animation-play-state: paused;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb {
  width: 100%;
  height: 80%;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 5px;
}


/* Coming Soon badge */
.badge {
  display: inline-block;
  color: #ff9800;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  margin-top: 8px;
}

/* Project Links */
.project-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.project-links a {
  background: #0073e6;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.project-links a:hover {
  background: #005bb5;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.5;
  background: #999;
  cursor: not-allowed;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #project-gallery {
    scroll-snap-type: x mandatory;
    gap: 15px;
  }

  .project-card {
    width: 90vw;
    height: auto;
    margin: 0;
    scroll-snap-align: start;
  }
}

/* Contact icons smaller */
.links-container.small-icons img {
  width: 28px;
  height: 28px;
  margin: 0 10px;
}

.cta {
  text-align: center;
  margin: 40px 0;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin: 6px;
  box-shadow: 0 6px 14px rgba(127,90,240,0.25);
}

.btn:hover {
  background: #6b47d6;
}

footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
