/* New Modern Portfolio Design */

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

body {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  background: linear-gradient(180deg, #4facfe 0%, #00d4ff 100%);
  color: #000000;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Headers use Rubik font */
h1, h2, h3, h4, h5, h6 {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  padding: 60px 20px 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.name-title h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: #000000;
  letter-spacing: -2px;
}

.name-title .subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 8px;
  color: #000000;
  letter-spacing: 0.5px;
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  display: inline-block;
  background: #000000;
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section Cards (Work, Lab, Certificates) */
.section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 20px 60px;
}

.section-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  min-height: 280px;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.dot:nth-child(2) {
  background: #ffbd2e;
}

.dot:nth-child(3) {
  background: #27c93f;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1818;
  text-align: center;
  flex: 1;
  margin: 0 20px;
}

.card-content {
  flex: 1;
  background: #f5f5f5;
  min-height: 240px;
  overflow: hidden;
}

/* About Section */
.about-section {
  padding: 60px 20px;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #000000;
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #000000;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 400px;
}

.image-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Skills Section */
.skills-section {
  padding: 60px 20px;
}

.skills-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 40px;
  color: #000000;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skill-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card ul li {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #000000;
}

.skill-card ul li:last-child {
  border-bottom: none;
}

.skill-card ul li::before {
  content: "•";
  margin-right: 10px;
  color: #4facfe;
  font-weight: bold;
}

/* Experience Section */
.experience-section {
  padding: 60px 20px;
}

.experience-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 60px;
  color: #000000;
  text-align: center;
}

.experience-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

/* Vertical timeline line */
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #000000;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 100px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-top: 120px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Alternate left and right */
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
  flex-direction: row;
}

/* Timeline dot in the center */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: #000000;
  border: 6px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #000000;
  z-index: 2;
}

/* Year label */
.timeline-year {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  background: #000000;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 1;
}

/* Experience card */
.experience-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 0;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 450px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-header {
  background: #000000;
  color: white;
  padding: 25px 30px;
}

.experience-header h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.experience-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.experience-body {
  padding: 30px;
}

.experience-body ul {
  list-style: none;
  padding: 0;
}

.experience-body ul li {
  padding: 10px 0;
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
}

.experience-body ul li::before {
  content: "•";
  margin-right: 10px;
  color: #4facfe;
  font-weight: bold;
}

/* Footer */
footer {
  background: white;
  border-radius: 40px 40px 0 0;
  border: 3px solid #000000;
  border-bottom: none;
  margin-top: 80px;
  padding: 50px 40px 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
  text-transform: uppercase;
}

.footer-section p {
  margin-bottom: 10px;
  color: #000000;
  font-size: 0.95rem;
}

.footer-section a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #4facfe;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4facfe;
  color: white;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  background: #000000;
}

.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin-bottom: 12px;
}

.quick-links a {
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
}

/* Work Page Styles */
.work-section {
  padding: 60px 20px;
}

.work-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #000000;
  text-align: center;
}

.projects-grid-work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-project-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.work-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.work-project-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
}

.work-project-info {
  padding: 30px;
}

.work-project-info h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #000000;
}

.work-project-category {
  color: #4facfe;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.work-project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Lab/SandBox Page Styles */
.lab-section {
  padding: 60px 20px;
}

.lab-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #000000;
  text-align: center;
}

.projects-grid-lab {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.lab-project-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.lab-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.lab-project-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.lab-project-info {
  padding: 25px;
}

.lab-project-info h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #000000;
}

.lab-project-category {
  color: #4facfe;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.lab-project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* Certificates Page Styles */
.certificates-section {
  padding: 60px 20px;
}

.certificates-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #000000;
  text-align: center;
}

.certificates-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cert-image {
  width: 100%;
  height: 180px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}

.cert-info {
  padding: 25px;
}

.cert-info h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #000000;
  line-height: 1.3;
}

.cert-issuer {
  color: #4facfe;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cert-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

/* Contact Page Styles */
.contact-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 50px;
}

.contact-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  color: #000000;
  font-family: "Roboto Mono", monospace;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4facfe;
  background: white;
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: #000000;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  align-self: flex-start;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-info-card-new {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: #4facfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  color: white;
  font-size: 20px;
}

.info-content h4 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 5px;
  color: #000000;
}

.info-content p {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

.contact-social-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.contact-social-section h4 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
}

.contact-social-icons {
  display: flex;
  gap: 15px;
}

.contact-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #4facfe;
  color: white;
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 18px;
}

.contact-social-icons a:hover {
  transform: translateY(-3px);
  background: #000000;
}

/* Notification styles for EmailJS */
.notification-container {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-message {
  color: #ff3333;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Project Page Styles */
.project-page-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-page-header {
  text-align: center;
  margin-bottom: 50px;
}

.project-page-header h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: #000000;
}

.project-page-category {
  color: #4facfe;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-main-image {
  margin-bottom: 60px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.project-description-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-info-card {
  background: white;
  border: 3px solid #000000;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-info-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
}

.project-info-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 15px;
}

.project-info-card p:last-child {
  margin-bottom: 0;
}

.project-info-card strong {
  color: #000000;
  font-weight: 700;
}

.project-results-list,
.project-features-list {
  list-style: none;
  padding: 0;
}

.project-results-list li,
.project-features-list li {
  padding: 12px 0;
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
  border-bottom: 1px solid #e0e0e0;
}

.project-results-list li:last-child,
.project-features-list li:last-child {
  border-bottom: none;
}

.project-results-list li::before,
.project-features-list li::before {
  content: "•";
  margin-right: 10px;
  color: #4facfe;
  font-weight: bold;
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tech-tag {
  background: #4facfe;
  color: white;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.tech-tag:hover {
  background: #000000;
  transform: translateY(-2px);
}

.project-links-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-link-button i {
  font-size: 1.1rem;
}

.project-gallery-section {
  margin-bottom: 60px;
}

.project-gallery-section h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #000000;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-image-item {
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.gallery-image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-full-width-section {
  margin-bottom: 60px;
}

.project-full-width-section h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #000000;
}

.project-full-width-section:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .name-title h1 {
    font-size: 3.5rem;
  }

  .header-content {
    flex-direction: column;
  }

  nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .section-cards,
  .skills-grid,
  .projects-grid-work,
  .projects-grid-lab,
  .certificates-grid-new,
  .contact-grid-new {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .image-card {
    max-width: 100%;
  }

  .image-card img {
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  /* Mobile timeline - stack vertically */
  .experience-timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }

  .timeline-dot {
    left: 20px;
    transform: none;
  }

  .timeline-year {
    left: 20px;
    transform: none;
  }

  .experience-card {
    max-width: 100%;
  }

  /* Project page mobile */
  .project-details-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .name-title h1 {
    font-size: 3rem;
  }

  .about-section h2,
  .skills-section h2,
  .experience-section h2 {
    font-size: 2rem;
  }
}
