* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    /*font-family: 'Poppins', sans-serif;*/  /* Changed from Arial to Poppins */
}

.diva-logo{
   max-width: 300px;
   max-height: 150px;
   justify-content: center;
}

.diva_logo{
   max-width: 300px;
   max-height: 150px;
   justify-content: center;
}

/* Remove CSS scroll-snap to avoid conflicts with JS */
html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden;
    height: 100%;
}

/* Fast smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-line {
    height: 5px;
    background-color: #ffffff;
    width: 100%;
    display: none; /* Hide the white line */
}

nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav img {
    height: 18px;           /* Match the font size of other nav items */
    width: auto;           /* Maintain aspect ratio */
    margin: 0 20px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #a0a0a0;
    text-decoration: underline;
}

.logo {
    position: absolute;
    left: 20px;
    top: 20px;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
}

/* Update section styling for full-screen layout */
.section {
    height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about {
    background-color: #121212;
}

#projects {
    background-color: #1a1a1a;
}

#about {
    background-color: #121212;
}

#projects {
    background-color: #1a1a1a;
}

#contact {
    background-color: #222222;
}

#melih {
    background-color: #1e1e1e;
}

#details {
    background-color: #2a2a2a;
}

/* Fix contact and melih sections to be full height */
.section#contact {
    height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#melih {
    background-color: #1e1e1e;
}

/* Update mobile responsiveness for snap scrolling */
@media (max-width: 768px) {
    .hamburger {
        display: block !important; /* Show on mobile */
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(18, 18, 18, 0.95);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        height: auto;
        z-index: 1000;
    }

    .nav-container.active {
        transform: translateY(0);
    }

    nav {
        flex-direction: column;
        align-items: center;
        padding: 60px 0 20px 0; /* Added top padding to avoid overlap with hamburger */
    }

    /* Adjust main content to account for hamburger menu */
    .section {
        height: 100vh;
        padding: 80px 5% 20px 5%;
    }
    
    .section#contact {
        height: 100vh;
        padding: 80px 5% 20px 5%;
    }
    
    .section#melih {
        height: 100vh;
        padding: 80px 5% 20px 5%;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .nav-container {
        height: auto;
    }
    
    nav {
        flex-direction: row;
    }
}

.details-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    background: #ffffff;
    padding: 0;                  /* Changed from 30px to 0 */
    margin-top: 0;              /* Changed from 30px to 0 */
    width: 100%;
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.details-panel.active {
    padding: 50px;              /* Add padding when active */
    margin-top: 30px;          /* Add margin when active */
    max-height: 1000px;
    opacity: 1;  
}

.details-content {
    position: relative;
}

.close-button {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ffffff;
    color: #121212;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

p:hover{
    color: #f49ac2;
}

a:visited{
    color: #ffffff;
    text-decoration: none;
}

a.navbutton, a.navbutton:visited {
    color: white;
    text-decoration: none;
}

.catpics {
    width: 20rem;
    height: 40rem;
    margin: auto;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.catpics img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make it responsive */
@media (max-width: 768px) {
    .catpics {
        width: 280px;
        height: 560px;
        border-width: 12px;
    }
}
h3{
    color: #f49ac2;
    font-family: 'Playfair Display', serif;  /* Adding sophisticated headings font */
    font-size: 1.5rem;
}

.project-image-in {
    width: 200px;
    height: 200px;
    margin: auto;
    display: block;
    padding: 2em;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
h2 {
    font-size: 2rem;
    color:#f49ac2;
    font-family: 'Roboto', 'sans-serif';  /* Adding sophisticated headings font */
}

/* Add hamburger menu button */
.hamburger {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.site-title-mobile {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
}

.site-title-mobile a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.catframes {
    display: flex; 
    justify-content: center; 
    gap: .1rem;
}

.section#melih {
    height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 20px;
}

.about-logo {
    position: relative;
    margin-bottom: 30px;
    margin-top: 40px; /* Add space from navigation */
}

.about-logo img {
    max-width: 100%;
    height: auto;
    width: 300px;
}

.about-text {
    text-align: left;
    margin-top: 20px;
}

.about-text-secondary {
    text-align: right;
    margin-left: auto;
    max-width: 50%;
    padding-right: 20px;
}

.about-text-secondary p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text-secondary h1 {
    font-size: 3.5rem;
    color: #f49ac2;
}

/* Image slideshow frame styling */
.image-slideshow-frame {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    max-width: 450px;
    z-index: 10;
    margin-top: -100px;
}

.slideshow-container {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    padding: 5px;
}

#slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .about-content {
        align-items: center;
        padding-left: 0;
    }
    
    .about-logo {
        margin-top: 20px; /* Less margin on mobile */
    }
    
    .about-logo img {
        width: 150px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text-secondary {
        text-align: center;
        margin-left: 0;
        max-width: 100%;
        padding-right: 0;
    }
    
    .about-text-secondary p {
        font-size: 1.2rem;
    }
    
    .about-text-secondary h1 {
        font-size: 2.5rem;
    }
    
    .image-slideshow-frame {
        max-width: 300px;
        margin: 20px auto;
        padding: 15px;
    }
    
    .slideshow-container {
        height: 250px;
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #f49ac2;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 200px;
    background-color: #404040;
    background-size: cover;
    background-position: center;
    display: flexbox;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin-top: 40px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #ffffff;
}

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

button {
    background-color: #ffffff;
    color: #121212;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #cccccc;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}