@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap");

/* Add Neue Montreal font */
@font-face {
  font-family: 'Neue Montreal';
  src: url('./fonts/NeueMontreal-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./fonts/NeueMontreal-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* For other weights/styles */
@font-face {
  font-family: 'Neue Montreal';
  src: url('./fonts/NeueMontreal-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./fonts/NeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('./fonts/NeueMontreal-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

:root {
  --primary-bg: rgb(243, 243, 243);
  --secondary-bg: rgb(255, 255, 255);
  --accent-light: rgb(17, 17, 17);
  --accent-medium: rgb(50, 50, 50);
  --accent-dark: rgb(80, 80, 80);
  --text-primary: rgb(17, 17, 17);
  --text-secondary: rgb(80, 80, 80);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Neue Montreal', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-bg);
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: transparent;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  z-index: 1000;
  padding: 20px 0;
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#navbar h1 {
  font-size: 1.5rem;
  color: var(--accent-dark);
}

#navbar ul {
  display: flex;
  list-style: none;
}

#navbar ul li {
  margin-left: 20px;
}

#navbar ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

#navbar ul li a:hover {
  color: var(--accent-dark);
}

.logo {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-button {
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--text-primary);
  border-radius: 100px;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: var(--text-primary);
  color: white;
}

/* Hero Section */
#hero {
  padding: 120px 0;
  position: relative;
}

#hero h1 {
  font-family: 'Neue Montreal', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

#hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  max-width: 800px;
  color: var(--text-secondary);
}

/* Sections */
section {
  padding: 60px 0;
  background: transparent;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--accent-dark);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.project-card {
  background: var(--secondary-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-dark);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-card .btn {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--primary-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  width: fit-content;
  margin-top: auto;
  align-self: flex-start;
  pointer-events: all;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(10deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.project-card .btn:hover {
  background-color: var(--accent-medium);
  transform: translateY(-2px);
}

/* Skills */
#skills {
    padding: 6rem 0;
}

#skills h2 {
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

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

.skill-card {
    position: relative;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    color: #999;
    font-family: 'Neue Montreal', monospace;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.skill-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Experience */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  pointer-events: none;
}

#experience {
  pointer-events: none;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--accent-medium);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: var(--secondary-bg);
  border: 1px solid rgba(100, 255, 218, 0.1);
  color: var(--text-primary);
  transform: perspective(1000px) rotateX(0deg);
  transition: transform 0.8s ease;
  padding: 20px;
  background-color: var(--primary-bg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: all;
}

.timeline-content:hover {
  transform: perspective(1000px) rotateX(360deg);

}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-dark);
}

/* Footer */
footer {
  background-color: var(--secondary-bg);
  color: var(--text-primary);
  padding: 20px 0;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: var(--primary-bg);
  text-decoration: none;
  margin-left: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section > div {
  animation: fadeIn 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .container {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fade-in Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Photography Section */
#photography {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

#photography h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
}

.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 70vh;
    gap: 8px;
    position: relative;
    z-index: 1;
    background: transparent;
    pointer-events: all;
}

.item {
    position: relative;
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
}

.item:hover {
    flex: 3;
}

.item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-1 { 
    background-image: url('./assets/images/photo1.jpg');
}

.item-2 { 
    background-image: url('./assets/images/photo2.jpg');
}

.item-3 { 
    background-image: url('./assets/images/photo3.jpg');
}

.item-4 { 
    background-image: url('./assets/images/photo4.jpg');
}

.item-5 { 
    background-image: url('./assets/images/photo5.jpg');
}

/* Mobile Photography Layout */
@media (max-width: 768px) {
    .gallery-wrap {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }

    .item {
        height: 250px !important; /* Override any other height settings */
        flex: none !important; /* Remove flex behavior */
        transition: transform 0.3s ease !important; /* Simpler transition */
        border-radius: 12px;
        width: 100%;
    }

    .item:hover {
        transform: scale(1.02) !important; /* Simple scale effect */
        flex: none !important;
    }

    .photo-overlay {
        opacity: 1 !important; /* Always show overlay on mobile */
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
        padding: 1rem !important;
    }

    .photo-overlay h3 {
        font-size: 1.1rem;
    }

    .photo-overlay p {
        font-size: 0.9rem;
    }
}

/* Update particle colors */
.particles-js-canvas-el {
  opacity: 0.3;
}

/* Update particles position */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.header-content {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
    pointer-events: all;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-button {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-primary);
    border-radius: 100px;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--text-primary);
    color: white;
}

/* If you want a subtle border instead */
.skill-category {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: #333;
}

/* Ensure container doesn't block particles */
#photography .container {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Keep particles visible */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Adjust gallery items to maintain their visibility */
.gallery-wrap {
    position: relative;
    z-index: 1;
    background: transparent;
}

.item {
    /* ... existing styles ... */
    background-color: transparent;
}

/* If there's a white background somewhere, check these sections too */
.container {
    background: transparent;
}

section {
    background: transparent;
}

/* Add this to your styles.css file */
#social-connect {
    padding: 6rem 0;
    text-align: center;
    background: transparent;
}

#social-connect h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.connect-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.social-icon .fab {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.icon-label {
    font-size: 1rem;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--accent-dark);
}

@media (max-width: 768px) {
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon .fab {
        font-size: 2rem;
    }
}

/* Hide the botcheck form group visually while keeping it accessible */
.hidden-spam-check {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

