/* Reset and base styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Roboto', monospace;
    color: #000; /* pure black text */
    background-color: #fff; /* white background */
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Full-page container */
.container {
    display: flex;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: hidden;
}

/* Left section: About */
.about {
    flex: 1 1 30%;
    background-color: #fff;
    color: #000;
    padding: 3em 2.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 2px);
    background-size: 18px 18px;
    transition: transform 0.3s;
    height: 100vh;
}

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

/* Right section: Projects */
.projects {
    flex: 1 1 70%;
    background-color: #f7f7f7;
    color: #000;
    padding: 3em 2.5em;
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 2px);
    background-size: 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    height: auto;
    overflow-y: auto;
}

/* Headings */
h2, h3 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 0;
    color: #000;
}

/* Profile image */
.profile-image-container {
    margin-bottom: 1em;
    overflow: hidden;
    width: 160px;
    height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Connect box */
.about pre.connect {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto', 'Courier New', monospace;
    color: #000;
    background-color: #f2f2f2;
    padding: 1em;
    border-radius: 12px;
    margin-top: 1em;
    font-size: 0.85rem;
    width: 100%;
}

/* Links */
a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover {
    color: #555;
}

/* Skills */
.skills {
    margin-top: 2em;
    width: 100%;
}

.skills h2 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: #000;
    margin-bottom: 0.8em;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.skills-pills span {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: #eee;
    color: #000;
    padding: 0.6em 1em;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: default;
    transition: transform 0.2s, background-color 0.2s;
}

.skills-pills span:hover {
    background-color: #ddd;
    transform: translateY(-3px);
}

/* Project cards */
.project {
    background-color: #fff;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.project h3 a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
}

.project h3 a:hover {
    color: #555;
}

.project-image {
    width: 66%;
    margin: 1.5em auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills container without distortion */
    display: block;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
/* Tech pills */
h3 .tech-pill {
    font-family: 'Inter', 'Roboto', sans-serif;
    display: inline-block;
    background-color: #eee;
    color: #000;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 0.5em;
    vertical-align: middle;
    cursor: default;
    transition: transform 0.2s, background-color 0.2s;
}

h3 .tech-pill:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 1em auto;
  text-align: center;
}

.carousel img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5em;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #000;
}

.carousel-controls span {
  padding: 0.2em 0.5em;
  background-color: rgba(0,0,0,0.05);
  border-radius: 6px;
  transition: background-color 0.2s;
}

.carousel-controls span:hover {
  background-color: rgba(0,0,0,0.1);
}

/* Video preview */
.video-preview {
  position: relative;
  display: inline-block;
  margin-top: 1em;
  max-width: 100%;
}

.video-preview img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.video-preview .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #000;
  text-shadow: 0 0 8px rgba(255,255,255,0.7);
  pointer-events: none;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
        overflow: visible;
        gap: 2em;
        width: 100vw;
    }

    .about, .projects {
        width: auto;
        flex: none;
        height: auto;
        padding: 1.5em;
        overflow: visible;
        align-items: flex-start;
        text-align: left;
    }

    .skills-pills {
        justify-content: flex-start;
    }

    h3 .tech-pill {
        margin-top: 0.3em;
        margin-left: 0.3em;
    }

    .carousel, .video-preview {
        max-width: 100%;
        margin: 1em 0;
    }

    .about pre.connect {
        width: 100%;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .about, .projects {
        padding: 1em;
    }

    h3 {
        font-size: 1.1rem;
    }

    .project-image {
        max-width: 100%;
        max-height: 250px;
        margin: 1em 0;
    }

    .skills-pills span {
        font-size: 0.75rem;
        padding: 0.4em 0.8em;
    }

    .carousel-controls {
        font-size: 1.8rem;
    }

    .video-preview .play-button {
        font-size: 2.5rem;
    }
}
