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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #0a0a0a;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  color: #ff6b35;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #ff6b35;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 30vh;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="%23ff6b35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  z-index: 2;
  position: relative;
  
}

.hero h1 {
  
  font-size: clamp(1.5rem, 6vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.5),
    0 0 20px rgba(255, 107, 53, 0.6),
    0 0 40px rgba(255, 107, 53, 0.4);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #ff6b35;
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ff6b35;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Portfolio Section */
.portfolio {
  padding: 0rem 0;
  background: #111;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  border: red;
}

.section-title {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff6b35;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-item {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 107, 53, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Featured Video */
.featured-video {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.featured-video:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.4);
}

.featured-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.video-title {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  
  
}

/* Vertical Videos Section */
.vertical-videos-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.vertical-video {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.vertical-video:hover {
  transform: translateY(-8px);
}

.vertical-video video {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
  transition: box-shadow 0.3s ease;
}

.vertical-video:hover video {
  box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
}

.video-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive for vertical videos */
@media (max-width: 900px) {
  .vertical-videos-row {
    gap: 1.5rem;
  }
  
  .vertical-video video {
    max-width: 250px;
  }
}

@media (max-width: 700px) {
  .vertical-videos-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .vertical-video video {
    max-width: 300px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-video {
    aspect-ratio: 16/9;
  }

  .video-title {
    font-size: 1rem;
    top: 1rem;
    left: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8c69;
}

.featured-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  border: none;
}

.about-section {
  padding: 5rem 0;
  background: #111;
}

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

.about-intro {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-description {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.highlight {
  color: #ff6b35;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-item {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #ccc;
  font-weight: 500;
}

.skills-section {
  margin-top: 4rem;
}

.skills-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.skill-category h4 {
  color: #ff6b35;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.skill-category p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Section Styles */

.contact-section {
  padding: 5rem 0;
  background: #0a0a0a;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-label {
  color: #ff6b35;
  font-weight: 600;
  min-width: 80px;
  margin-right: 1rem;
}

.contact-value {
  color: #fff;
}

.contact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form-wrapper {
  background: #1a1a1a;
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.1);
}

.success-message {
  display: none;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 1.5rem;
}

.form-group label {
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .about-section,
  .contact-section {
    padding: 3rem 0;
  }
  
  .about-intro {
    font-size: 1.1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

#skill4 {
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 2px solid pink;  DEBUGGING PURPOSES */
}

/* Mobile Improvements - Add to your style.css */

/* Reduce About Section Height on Mobile */
@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0 2rem 0; /* Reduced from 5rem */
  }
  
  /* Make about text more concise */
  .about-intro {
    font-size: 1rem; /* Reduced from 1.3rem */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    line-height: 1.6; /* Tighter line height */
  }
  
  .about-description {
    font-size: 1rem; /* Reduced from 1.1rem */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    line-height: 1.5; /* Tighter */
  }
  
  /* Compact stats grid */
  .stats-grid {
    margin: 2rem 0; /* Reduced from 4rem */
    gap: 1rem; /* Reduced from 2rem */
  }
  
  .stat-item {
    padding: 1.5rem; /* Reduced from 2rem */
  }
  
  .stat-number {
    font-size: 2rem; /* Reduced from 2.5rem */
  }
  
  /* More compact skills section */
  .skills-section {
    margin-top: 2rem; /* Reduced from 4rem */
  }
  
  .skills-title {
    font-size: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
  }
  
  .skills-grid {
    gap: 1rem; /* Reduced from 2rem */
  }
  
  .skill-category {
    padding: 1rem; /* Reduced from 1.5rem */
  }
  
  /* Show 2 vertical videos side by side on mobile */
  .vertical-videos-row {
    flex-direction: row !important; /* Override the column direction */
    gap: 1rem;
    justify-content: center;
  }
  
  .vertical-video {
    flex: 0 0 auto; /* Don't grow/shrink */
  }
  
  .vertical-video video {
    max-width: 160px; /* Smaller but 2 fit side by side */
    aspect-ratio: 9/16;
  }
  
  .video-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }
}

/* For very small phones */
@media (max-width: 480px) {
  /* Even more compact about section */
  .about-section {
    padding: 2rem 0 1.5rem 0;
  }
  
  .about-intro {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .about-description {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  /* Hide one of the description paragraphs to save space */
  .about-description:nth-of-type(3) {
    display: none;
  }
  
  .stats-grid {
    margin: 1.5rem 0;
    grid-template-columns: 1fr 1fr; /* Keep 2 columns instead of 1 */
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Compact skills - show 2 per row */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  
  .skill-category {
    padding: 0.8rem;
  }
  
  .skill-category h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .skill-category p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* Keep 2 videos side by side even on small screens */
  .vertical-video video {
    max-width: 140px;
  }
}

/* Alternative: Show 3 vertical videos in a row on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .vertical-videos-row {
    gap: 1.5rem;
  }
  
  .vertical-video video {
    max-width: 220px;
  }
}

/* Make the overall hero smaller on mobile to reduce scrolling */
@media (max-width: 768px) {
  .hero {
    height: 25vh; /* Reduced from 30vh */
    margin-top: 70px; /* Reduced from 80px */
  }
  
  .hero h1 {
    font-size: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 0.5rem;
  }
  
  .hero .subtitle {
    font-size: 1rem; /* Reduced from 1.2rem */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem; /* Smaller button */
    font-size: 1rem;
  }
}

/* Mobile Layout Fixes - Add to end of your CSS */

/* Fix hero text being hidden by navbar */
@media (max-width: 768px) {
  .hero {
    height: 30vh; /* Increase height a bit */
    margin-top: 90px; /* More space for navbar */
    padding-top: 1rem; /* Add padding to push content down */
  }
  
  .hero h1 {
    font-size: 2.2rem; /* Slightly larger */
    margin-bottom: 0.8rem;
  }
}

/* Make UMass video look like featured video on mobile */
@media (max-width: 768px) {
  /* Target the second portfolio section's featured video */
  .container:nth-of-type(2) .featured-video {
    aspect-ratio: 16/9; /* Standard featured video ratio */
    grid-column: 1 / -1; /* Full width */
  }
  
  .container:nth-of-type(2) .featured-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Make portfolio cards smaller and show more side by side */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns instead of 1 */
    gap: 1rem; /* Smaller gap */
    margin-bottom: 2rem;
  }
  
  .portfolio-item {
    aspect-ratio: 4/3; /* More square aspect ratio */
    border-radius: 10px; /* Smaller border radius */
  }
  
  /* Keep featured videos full width */
  .featured-video {
    grid-column: 1 / -1; /* Span both columns */
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
  }
  
  /* Smaller overlay text */
  .overlay-content h3 {
    font-size: 1.1rem; /* Smaller titles */
    margin-bottom: 0.3rem;
  }
  
  .overlay-content p {
    font-size: 0.9rem; /* Smaller category text */
  }
}

/* Very small phones - keep 2 columns but even smaller */
@media (max-width: 480px) {
  .portfolio-grid {
    gap: 0.8rem;
  }
  
  .portfolio-item {
    border-radius: 8px;
  }
  
  .overlay-content h3 {
    font-size: 1rem;
  }
  
  .overlay-content p {
    font-size: 0.85rem;
  }
}

/* Interview cards - same treatment */
@media (max-width: 768px) {
  /* Target interview section specifically - you might need to adjust this selector */
  .container:last-of-type .portfolio-grid,
  .container:nth-last-of-type(2) .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* If you want interview cards even smaller, uncomment this: */
  /*
  .container:last-of-type .portfolio-item,
  .container:nth-last-of-type(2) .portfolio-item {
    aspect-ratio: 1/1;
  }
  */
}

/* Make section titles more compact on mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem; /* Reduced from 2.5rem */
    margin-bottom: 2rem; /* Reduced from 3rem */
  }
  
  /* Reduce spacing between sections */
  .container {
    margin-bottom: 1rem;
  }
  
  /* Add margin to section titles with inline styles */
  .section-title[style*="margin-top"] {
    margin-top: 2rem !important; /* Override inline styles */
  }
}





/* THIS IS WHERE THE BORDERS START */


/* TEMPORARY - Remove after learning layout */


/*
.container {
  border: 3px solid red !important;
}

.portfolio-grid {
  border: 2px solid blue !important;
}

.portfolio-item {
  border: 1px solid green !important;
}

.vertical-videos-row {
  border: 2px solid yellow !important;
}

.vertical-video {
  border: 1px solid orange !important;
}

.nav-container {
  border: 2px solid purple !important;
}

.hero-content {
  border: 2px solid cyan !important;
}
*/
