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

body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #0b0c1a;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4); /* Transparent dark background */
    backdrop-filter: blur(8px);
}

.navbar .logo {
    font-size: 1.8em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00c3ff;
}

/* Hero Section */
.hero {
    background: url('/images/CanBerkSahin_Background_4K.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #ff7b00;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

/* CTA Button */
.cta-button {
    background-color: #00c3ff;
    color: #0b0c1a;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: #ff7b00;
    color: #ffffff;
}

/* About Section */
.section {
    background-color: #0b0c1a;
    padding: 100px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    background-color: #0b0c1a;
    padding: 100px 20px;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #66ccff;
}

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

.project-card {
    background: #16172b;
    border: 1px solid #22243b;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 30px rgba(0, 195, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #ffffff;
}

.project-info p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Contact Section */
#contact {
    background-color: #0b0c1a;
    padding: 100px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

#contact p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

#contact a {
    color: #00c3ff;
}

/* Responsive Stuff */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .nav-links {
        gap: 20px;
    }
}



/* Featured Project */
.featured-project {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    max-width: 1200px;
}

.featured-text {
    flex: 1 1 400px;
}

.featured-text h2 {
    font-size: 2.8rem;
    color: #66ccff;
}

.featured-text h4 {
    margin: 10px 0;
    color: #00c3ff;
}

.featured-text p {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #b0b0b0;
}

.featured-image {
    flex: 1 1 500px;
}

.featured-image img {
    width: 100%;
    border-radius: 12px;
}

/* Other Projects Title */
.other-projects-title {
    font-size: 2.4rem;
    color: #66ccff;
    margin: 80px 0 40px 0;
}

/* Project Cards */
.project-card {
    background: #16172b;
    border: 1px solid #22243b;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column; /* ← Important! */
    justify-content: space-between; /* ← Pushes button down */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 30px rgba(0, 195, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    flex-grow: 1; /* ← Makes description stretch */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-info h5 {
    margin-bottom: 10px;
    color: #00c3ff;
    font-size: 1rem;
}

.project-info p {
    flex-grow: 1; /* ← Description grows to fill space */
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 20px;
}

/* Smaller Buttons */
.cta-button.small {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: auto; /* ← Pushes button to the very bottom */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #1b1c2e;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    color: white;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close-modal:hover {
    color: #ff7b00;
}

.modal-gallery img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-description {
    text-align: left;
}

.modal-gallery {
    position: relative;
    margin-bottom: 20px;
  }
  
  .carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
  }
  
  .carousel img {
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.4s ease-in-out;
  }
  
  .carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .carousel-nav button {
    background: #222;
    color: white;
    border: none;
    font-size: 1.8rem;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .carousel-nav button:hover {
    background: #00c3ff;
  }
  .modal-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #000;
  }
  
  #modalCarousel {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  #modalCarousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
  }
  
  /* 🆕 Arrow positioning on the left and right side */
  .carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none; /* Allow clicks to go through container */
  }
  
  .carousel-nav button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    transition: background 0.2s ease;
  }
  
  .carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.9);
  }
  
  