/* =========================
   Reset & Base Styles
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Crimson Pro', serif;
    line-height: 1.6;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background: linear-gradient(to bottom, #191a12, #222317);
}

/* =========================
   Typography & Elements
========================= */
h1, h2, p, ul {
    margin: 0;
    padding: 0;
}
p {
    color: #c5c2c2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.responsive-paragraph {
    font-size: 30px;
}
a {
    text-decoration: none;
    color: #333;
    text-shadow: 2px 2px 4px rgba(46, 46, 46, 0.9);
}
a:hover {
    color: #d4d2d2;
}

/* =========================
   Navbar Styles
========================= */
.first-navbar, .first-navbar-c1, .second-navbar {
    background-color: #424233;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #c5c2c2;
    margin: 15px;
    padding: 40px;
    letter-spacing: 10px;
    animation: slideInFade 2s ease-out;
    transition: background-color 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    cursor: pointer;
}
.first-navbar ul, .first-navbar-c1 ul {
    list-style: none;
    display: flex;
    gap: 50px;
}
.first-navbar a, .first-navbar-c1 a {
    color: #c5c2c2;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(115, 116, 116, 0.87);
}
.first-navbar:hover, .first-navbar-c1:hover {
    background-color: #555740;
}
.second-navbar {
    word-spacing: 10px;
    text-align: center;
    letter-spacing: 15px;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.second-navbar h1 {
    color: #c5c2c2;
    animation: slideInFade 4s ease-out;
}

/* =========================
   Main & Section Styles
========================= */
.first-div-index {
    padding: 30px;
    background: linear-gradient(to bottom, #25251b, #4b4d39);
    overflow-x: hidden;
    
}
.main {
    padding: 40px;
    background: linear-gradient(to bottom, #424233, #696952, #424233);
    margin: 15px;
    border-radius: 15px;
}

/* =========================
   Gallery & Photo Styles
========================= */

.secondmain {
    display: flex;
    align-items: center;
    justify-content: center;
 gap: 30px; 
    padding: 10px;
    flex-wrap: nowrap; /* Important: prevents wrapping so buttons stay left/right */
    border-radius: 15px;
    background: linear-gradient(to bottom, #424233, #424233, #424233);
    max-width: 90vw;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
}

.secondmain .phot {
    transition: transform 0.4s;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}
.secondmain.slide-left .phot {
    transform: translateX(-100%);
}
.secondmain.slide-right .phot {
    transform: translateX(100%);
}


.pre, .next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: #c0bbbb;
    background: none;
    border: none;
    border-radius: 8px;
    margin: 0 16px;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    user-select: none;
}
.pre:hover, .next:hover {
    color: #838181;
    transform: scale(1.15);
}
.pre:active, .next:active {
    transform: scale(0.95);
}
.phot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 350px;
    border-radius: 15px;
    margin: 60px 0px;
    padding: 10px;
    animation: slideInFade 6s ease-out;
}
.phot:nth-child(1) { animation: slideInFade 3s ease-out; }
.phot:nth-child(2) { animation: slideInFade 9s ease-out; }
.phot:nth-child(3) { animation: slideInFade 5s ease-out; }
.secondmain img.phot {
    width: 400px;
    height: 400px;
    object-fit: cover;
    aspect-ratio: 3/2;
    border-radius: 15px;
    border: #838181 1px solid;
    box-shadow: 0 4px 17px rgba(22, 22, 22, 1);
}
.photo-description {
    display: flex;
    align-items: center;
}
.photo {
    flex: 1;
    margin-right: 20px;
}
.photo img {
    width: 100%;
    max-width: 500px;
}
.first-photo, .second-photo {
    border-radius: 30px;
    box-shadow: 6px 10px 20px rgb(85, 85, 85);
    animation: slideInFade 6s ease-out;
    margin-top: 20px;
}
.second-photo {
    box-shadow: 6px 10px 20px rgb(14, 14, 14);
    margin-top: 40px;
}
.first-name {
    font-size: 50px;
    color: #333;
    letter-spacing: 10px;
}

/* =========================
   Description Styles
========================= */
.description {
    flex: 2;
    padding: 3%;
}
.description p {
    text-align: justify;
}
.description h2 {
    margin-bottom: 10px;
}

/* =========================
   Contact & Footer Styles
========================= */
.contact-details {
    background-color: #424233;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    border-radius: 15px;
    letter-spacing: 10px;
    color: #c5c2c2;
    animation: slideInFade 2s ease-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.phone-link {
    color: #c5c2c2;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.phone-link i {
    margin-right: 8px;
}
.phone-link:hover {
    color: #ffffff;
    transition: color 0.5s ease-in-out;
}
.fas.fa-phone-alt {
    color: #919191;
    font-size: 4vw;
    transition: color 0.5s ease-in-out;
}
.fas.fa-phone-alt:hover {
    color: #ffffff;
}
footer {
    background-color: #424233;
    color: #c0bbbb;
    text-align: center;
    padding: 10px;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
footer p {
    letter-spacing: 3px;
    color: #c5c2c269;
}

/* =========================
   Decorative Lines
========================= */
.lines, .lines-bottom {
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 20px 0 0 0;
    border-radius: 15px;
    height: 5px;
    background: radial-gradient(circle, #b7b99d 0%, transparent 100%);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 4s ease-in-out forwards;
}

/* =========================
   Animations
========================= */
@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* =========================
   Page & Slide Styles
========================= */
.page {
    position: relative;
    transition: transform 0.5s ease;
}
.slide-out {
    transform: translateX(-100%);
}
.slide-in {
    transform: translateX(100%);
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.pre, .next {
   
    animation: fadeIn 4s ease;
}

/* =========================
   Gallery Grid
========================= */
.gallery-container {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 40px;
    margin-top: 60px;
}
.photo-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.photo-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideInFade 4s ease-out;
    transition: transform 2s ease;
    overflow: hidden;
    border: 1px solid rgb(192, 190, 190);
}
.photo-column img:hover {
    transform: scale(1.1);
}

/* =========================
   Responsive Styles
========================= */
@media screen and (min-width: 340px) and (max-width: 1024px) {
    body {
        font-size: 14px;
    }
    .first-div-index {
        padding: 15px;
    }

    .responsive-paragraph {
        font-size: 18px;
    }
    .first-navbar, .second-navbar, .contact-home-nav, .first-navbar-c1 {
        padding: 20px;
        margin: 10px;
        letter-spacing: 5px;
    }
    .secondmain img#img2,
    .secondmain img#img3 {
        display: none;
    }
    .secondmain {
        justify-content: center;
        gap: 0;
    }
    .first-navbar ul, .first-navbar-c1 ul {
        flex-direction: column;
        gap: 20px;
    }
    .lines {
        margin: 10px;
        height: 4px;
        animation: slideIn 3s ease-in-out forwards;
    }
    .main {
        padding: 20px;
        margin: 10px;
        border-radius: 10px;
    }
    .contact-details {
        padding: 20px;
        margin: 10px;
        letter-spacing: 5px;
    }
    h1, h2, p {
        font-size: smaller;
    }
    .first-navbar ul {
        flex-direction: column;
        gap: 20px;
    }
    .first-navbar li, .first-navbar a {
        font-size: 14px;
    }
    .second-navbar h1 {
        font-size: 24px;
    }
    .photo-description {
        flex-direction: column;
    }
    .photo {
        order: 2;
        margin: 10px;
    }
    .description {
        order: 1;
        text-align: center;
    }
    .sample-nav-home {
        padding: 5%;
    }
    .photo-column img:hover {
        transform: scale(2);
    }
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-content: center;
    }
    .photo-column {
        gap: 10px;
    }
    .photo-column img {
        width: 100%;
        height: auto;
    }
    .contact-home-nav {
        padding: 12px;
    }
}
@media screen and (max-width: 430px) {
    .second-navbar h1 {
        font-size: 1rem;
    }
    .first-name {
        font-size: 2rem;
    }
    .description p {
        font-size: 0.9rem;
    }
    .body-sample {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

}
@media screen and (min-width: 431px) {
    .description p {
        font-size: 1.1rem;
    }
}



@media screen and (max-width: 390px) {
    .secondmain img.phot {
        max-width: 250px;
        height: 400px;
        object-fit: cover;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .secondmain img.phot {
        max-width: 500px;
        height: 750px;
        object-fit: cover;
    }
}

