html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #FFFEF6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

header {
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.page-header {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-logo, .company-title {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.company-logo img {
    width: 90px;
    height: auto;
}

.company-logo p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 800;
    margin: 0;
}

.company-title img {
    width: auto;
    height: 45px;
}


nav {
    background-color: white;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 700;
    font-size: 22px;
    transition: color 0.4s ease;
    padding: 0 2px;
    position: relative;
}

.nav-links a:hover {
    color: red;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0px;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    background-color: black;
}


.nav-links a:hover::after {
    width: 100%;
}

img {
    width: 100px;
    height: 100px;
}

.intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-intro {
    flex-direction: column !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    padding: 20px;
    perspective: 1000px;
}

.home-intro img {
    margin-top: 60px;
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.home-intro img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    filter: brightness(1.05);
}

.home-intro img:active {
    transform: scale(0.98);
}


.home-name {
    margin-top: 10px;
    max-width: 600px;
}

.home-name img {
    max-width: 350px;
    width: 500px;
    height: 300px;
    
}

.home-name p {
    width: 100% !important;
    padding: 3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.interests {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.interests-section {
    text-align: center;
    padding: 40px 20px;
    margin: 10px;
}

.interests-section h1 {
    margin-bottom: 10px;
    color: black;
    font-size: 50px;
}

.interests-section p {
    margin-top: 5px;
    margin-bottom: 30px;
    color: black;
    font-size: 1.2rem;
    padding: 0px;
}


.interests-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    padding-left: 0px;
    border-radius: 10px;
    border: black solid 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.interests-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    }

.modal-wrapper {
    display: flex;
    background: white;
    width: 80%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
     from { transform: scale(0.7); opacity: 0; }
     to { transform: scale(1); opacity: 1; }
 }

.modal-image {
    width: 60%;
    height: 500px;
    object-fit: cover;
}

.modal-text {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.modal-text h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-text p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}

.close:hover { color: #333; }

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

    width: 100%;
    box-sizing: border-box;
    padding: 50px 15% 0px 15%;
    background-color: #fdfdf5;
    margin-bottom: 0;
}

.outro {
    display: flex;
    align-items: center;
    gap: 20px;
}

.outro-logo-image{
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

.outro-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.2;
}

.edvg-logo-image {
    width: 300px;
    height: auto;
    margin-bottom: 2px;
}

.outro-message p {
    margin: 0;
    font-size: 14px;
    color: black;
    font-weight: 500;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    gap: 10px;
    padding-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.my-info p {
    margin: 0;
    font-size: 14px;
    color: black;
    padding-top: 2px;
}

.my-info img {
    width: 18px;
    height: 18px;
    object-fit: contain;
} 

.socials {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.socials img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease; 
}

.socials img:hover {
    transform: scale(1.1);
}


footer {
    max-width: 100%;
    margin-top: 0;
    background-color: #E5E4D9;
    padding: 10px 0px;
    width: 100%;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 13px;
    color: black;
    line-height: 1;
}

/* RESPONSIVE DESIGN */

@media screen and (max-width: 768px) {
    
    .page-header {
        flex-direction: column;
        padding: 15px 0;
        gap: 10px;
    }

    .nav-links {
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 18px;
    }

    
    .home-intro img {
        width: 90%;     
        min-width: 280px;
        max-width: 400px; 
        margin-top: 20px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        object-fit: cover;
    }

    .home-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .interests-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .interests-img {
        width: 95% !important;
        height: auto !important;
    }

  
    footer {
        padding: 30px 20px;
    }

    .footer-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-right {
        align-items: center; 
    }

    h1, .company-logo p {
        font-size: 28px !important;
    }
}

.modal-content {
    max-width: 90%; 
    height: auto;
}
