/*----------------------------------------------
Import Fonts
----------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0d3b4d 0%, #1a5f7a 25%, #d4775e 75%, #f4a261 100%);
    background-attachment: fixed;
    color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*----------------------------------------------
Header & Navigation Styling
----------------------------------------------*/
header {
    background: linear-gradient(135deg, #0a2e3d 0%, #145263 50%, #c66b4f 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 10;
    border-bottom: 5px solid #d4775e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 15;
    padding: 0 20px;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #f4a261;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

nav ul li a:hover {
    color: #ffd6a5;
    border-bottom: 2px solid #d4775e;
    transform: translateY(-2px);
}

.header-content {
    margin-top: 20px;
}

.header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffd6a5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.header-content h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    color: #b8dfe6;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.4;
}

/*----------------------------------------------
Main Content and Image Styling
----------------------------------------------*/
main {
    flex: 1;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    width: 100%;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.outer-margin {
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
}

.border-layer {
    border: 5px solid #d4775e;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
}

.padding-layer {
    padding: 40px;
    background: linear-gradient(135deg, rgba(10, 46, 61, 0.9) 0%, rgba(20, 82, 99, 0.9) 100%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-container {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 5px solid #d4775e;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 119, 94, 0.6);
}

/*----------------------------------------------
Contact Info Styling
----------------------------------------------*/
.contact-info {
    background: rgba(244, 162, 97, 0.15);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #f4a261;
    width: 100%;
    text-align: center;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #ffd6a5;
}

.contact-info p {
    font-size: 1.2em;
    color: #b8dfe6;
    letter-spacing: 0.5px;
    word-break: break-word;
}

/*----------------------------------------------
Social Media Icons
----------------------------------------------*/
.social-media {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    padding: 10px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0a2e3d 0%, #145263 100%);
    color: #f4a261;
    border-radius: 50%;
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #d4775e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    background: linear-gradient(135deg, #d4775e 0%, #f4a261 100%);
    color: #0a2e3d;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(212, 119, 94, 0.5);
}

/*----------------------------------------------
Decorative Background Elements
----------------------------------------------*/
header::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.3) 0%, rgba(212, 119, 94, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
}

header::before {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(184, 223, 230, 0.3) 0%, rgba(26, 95, 122, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
}

/*----------------------------------------------
Gallery Styling
----------------------------------------------*/
.gallery {
    text-align: center;
    padding: 50px 20px;
    width: 100%;
}

.gallery h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #ffd6a5;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    border: 3px solid #d4775e;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 119, 94, 0.5);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

/*----------------------------------------------
CV Page Styling
----------------------------------------------*/
.cv-section {
    width: 100%;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #ffd6a5;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content p {
    font-size: 1.15em;
    color: #b8dfe6;
    margin-bottom: 20px;
}

.cv-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cv-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    border: 3px solid #d4775e;
}

.cv-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 119, 94, 0.5);
}

.cv-photo {
    width: 100%;
    height: auto;
    display: block;
}

.cv-download-section {
    text-align: center;
}

.cv-subtitle {
    font-size: 1.4em;
    color: #b8dfe6;
    margin-bottom: 20px;
    font-style: italic;
}

.cv-contact-box {
    background: rgba(244, 162, 97, 0.15);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #f4a261;
    margin-top: 20px;
}

.cv-contact-box p {
    font-size: 1.15em;
    color: #b8dfe6;
    margin-bottom: 15px;
}

.email-link {
    font-size: 1.3em;
    color: #ffd6a5;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    color: #f4a261;
    border-bottom: 2px solid #d4775e;
}

/*----------------------------------------------
Mobile Responsiveness - Tablet
----------------------------------------------*/
@media only screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    header {
        padding: 100px 15px 50px;
    }

    nav {
        top: 15px;
        padding: 0 15px;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 1em;
        letter-spacing: 1.5px;
        padding: 6px 12px;
    }

    .header-content h1 {
        font-size: 2.8em;
        margin-bottom: 15px;
    }

    .header-content h2 {
        font-size: 1.3em;
    }

    main {
        padding: 40px 15px;
    }

    .container {
        padding: 15px;
    }

    .outer-margin {
        margin: 30px 15px;
        width: calc(100% - 30px);
    }

    .padding-layer {
        padding: 30px 25px;
    }

    .main-image {
        max-width: 300px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.9em;
    }

    .contact-info p {
        font-size: 1.1em;
    }

    .social-media {
        bottom: 15px;
        gap: 15px;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3em;
    }

    header::after {
        width: 150px;
        height: 150px;
    }

    header::before {
        width: 80px;
        height: 80px;
        right: 5%;
    }

    .gallery h3 {
        font-size: 2.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

/*----------------------------------------------
Mobile Responsiveness - Small Mobile
----------------------------------------------*/
@media only screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    header {
        padding: 90px 10px 40px;
        border-bottom: 3px solid #d4775e;
    }

    nav {
        top: 10px;
        padding: 0 10px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 0.85em;
        letter-spacing: 1px;
        padding: 5px 10px;
    }

    .header-content h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .header-content h2 {
        font-size: 1.1em;
    }

    main {
        padding: 30px 10px;
    }

    .container {
        padding: 10px;
    }

    .outer-margin {
        margin: 20px 10px;
        width: calc(100% - 20px);
    }

    .border-layer {
        border: 3px solid #d4775e;
    }

    .padding-layer {
        padding: 20px 15px;
    }

    .image-container {
        margin-bottom: 20px;
    }

    .main-image {
        max-width: 220px;
        border: 3px solid #d4775e;
    }

    .contact-info {
        padding: 15px;
    }

    .contact-info h3 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .contact-info p {
        font-size: 1em;
    }

    .social-media {
        bottom: 10px;
        gap: 12px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        border: 1.5px solid #d4775e;
    }

    header::after {
        width: 100px;
        height: 100px;
        top: 60px;
    }

    header::before {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 5%;
    }

    .gallery {
        padding: 30px 10px;
    }

    .gallery h3 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
}

/*----------------------------------------------
Mobile Responsiveness - Extra Small Mobile
----------------------------------------------*/
@media only screen and (max-width: 360px) {
    html {
        font-size: 13px;
    }

    header {
        padding: 80px 8px 35px;
    }

    nav ul {
        gap: 6px;
    }

    nav ul li a {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .header-content h1 {
        font-size: 1.7em;
    }

    .header-content h2 {
        font-size: 1em;
    }

    .main-image {
        max-width: 180px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
}
