@import url('https://fonts.googleapis.com/css2?family=Almendra+SC&display=swap');
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: 98% top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Quote */
.quote {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    flex: 1;
}
.quote-text,
.quote-author {
    font-family: 'Almendra SC', serif;
	font-size: 1.4rem;
	text-align: center;
    margin: 0;
    color:#082d72
}

/* Header */
.page-shell {
    max-width: 800px;
    margin: 0.2rem auto;
    padding: 0.3rem;
    border: 1px solid #434344;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.863) 0%, rgba(143, 137, 137, 0.8) 100%);
}

h1 {
    margin: 0;
} 

h2 {
    color: rgb(17, 17, 17);
    margin-top: 0.2rem;
    display: block;
	padding: 0.6rem 0.8rem;
}

.top-title {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid #ffffff;
    text-align: center;
    padding: 1rem;
    background-color: rgb(80, 77, 77);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    line-height: 1;
}

/* header - button */
.site-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.cv-download-wrap {
    text-align: center;
    margin-top: 0.6rem;
}

.site-nav .btn {
    border-width: 1px;
}

.site-nav .btn:hover,
.site-nav .btn:focus-visible {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.site-nav .btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* .cv-layout */
.subtitle h2 {
    text-align: center;
    color: black;
    font-weight: bold;
    background-color: rgba(211, 204, 204, 0.856);   
    padding: 4px 8px;
    border-radius: 4px; 
}
.cv-layout {
	color: black;
    max-width: 760px;
    margin: 0 auto;
    padding: 0.5rem;
}

.education-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.education-columns .subtitle h2 {
    min-height: 0;
}

.cv-layout ul {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.cv-layout li,
.cv-layout p {
    line-height: 1.5;
}

/* About me */
.info {
	max-width: 760px;
    margin: 1rem auto;
	padding: 1rem 1.2rem;
	font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
	font-size: larger;
	text-align: justify;
    border: 1px solid #434344;
	border-radius: 12px;
    background: linear-gradient(135deg, rgba(235, 231, 231, 0.966) 0%, rgba(235, 235, 240, 0.952) 100%);
}

h4 {
    margin: 0;
    padding-bottom: 0.6rem;
    text-align: center;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.15rem;
}

.welcome-line {
    margin: 0;
    padding-bottom: 0.6rem;
    text-align: center;
    font-size: 1.4rem;
}

/* Skills */
h3 {
    text-align: left;
    margin: 0.6rem 0;
    padding-bottom: 0.6rem;
    font-weight: bold;
    text-decoration: underline;
}

.skills-list {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Education */
.education-section {
    margin-bottom: 1rem;
    max-width: 760px;
    border-radius: 12px;
}

.qualification-section {
    margin-bottom: 1rem;
    max-width: 760px;
    border-radius: 12px;
}

.education-columns .education-section,
.education-columns .qualification-section {
    flex: 1 1 0;
    max-width: none;
}

.edu-list,
.qual-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #434344;
    border-radius: 12px;
    padding: 0.8rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: larger;
    background: linear-gradient(135deg, rgba(235, 231, 231, 0.966) 0%, rgba(235, 235, 240, 0.952) 100%);
}

.edu-list > li,
.qual-list > li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #434344;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-year {
    min-width: 200px;
    font-weight: 800;
    color: rgb(7, 10, 143);
}

.edu-text {
    flex: 1;
    font-weight: 600;
}

.edu-list > li:hover,
.qual-list > li:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(189, 191, 194, 0.925) 0%, rgba(232, 236, 243, 0.92) 100%);
    box-shadow: 0 6px 14px rgba(71, 79, 94, 0.16);
    border-color: #7b879a;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(123, 135, 154, 0.35);
}

/* Projects carousel */
.carousel-projects {
    max-width: 760px;
    margin: 0.8rem auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #434344;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.carousel-projects img {
    max-height: 360px;
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
}

.carousel-projects .carousel-control-prev-icon,
.carousel-projects .carousel-control-next-icon {
    filter: invert(1);
}

.carousel-projects .carousel-caption {
    top: 0;
    bottom: auto;
}

.carousel-projects .carousel-caption p {
    background: rgba(8, 45, 114, 0.65);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Project icons */
.project-icon {
    display: block;
    width: clamp(36px, 6vw, 52px) !important;
    height: clamp(36px, 6vw, 52px) !important;
    object-fit: contain;
    margin: 0 auto 0.7rem;
    flex-shrink: 0;
}

.projects-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    margin-top: auto;
    padding-top: 0.5rem;
}
/* Experience */
.experience-grid {
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-item {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #434344;
    font-size: large;
    border-radius: 12px;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(235, 231, 231, 0.966) 0%, rgba(235, 235, 240, 0.952) 100%);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

  .experience-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(189, 191, 194, 0.925) 0%, rgba(232, 236, 243, 0.92) 100%);
    box-shadow: 0 6px 14px rgba(71, 79, 94, 0.16);
}

.experience-item a {
    color: #3540a8;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.18s, background 0.18s, padding 0.18s;
}

.experience-item a:hover {
    color: #082d72;
    background-color: #6fa4e6;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.experience-item a:visited {
    color: #5d0479;
}

.experience-item a:active {
    color: #ffffff;
    background-color: #082d72;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
}

/* Copyright */
.copyright {
    max-width: 760px;
    margin: 50px auto 0;
    padding: 6px 12px;
    background-color: rgb(80, 77, 77);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    line-height: 1;
    border-radius: 8px;
    border: #dbd8db 2px solid;
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
}

/* Custom Bootstrap modal style for contact */
#contactModal .modal-content {
    background: linear-gradient(135deg, rgba(245,245,245,0.97) 0%, rgba(180,180,180,0.92) 100%);
    border-radius: 16px;
    border: 2px solid #434344;
    box-shadow: 0 8px 32px rgba(80,77,77,0.18);
}

#contactModal .modal-header, #contactModal .modal-footer {
    background: rgba(143,137,137,0.18);
    border-bottom: 1px solid #434344;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

#contactModal .modal-title {
    color: #232323;
    font-family: 'Almendra SC', serif;
    font-size: 1.6rem;
}

#contactModal .modal-body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.1rem;
    color: #171718;

}

#contactModal .btn-secondary {
    background: linear-gradient(90deg, #b4b4b4 0%, #585656 100%);
    color: #fff;
    border: none;
}

#contactModal .btn-close {
    filter: none;
    opacity: 1;
    background-color: #e0e0e0;
    border-radius: 50%;
    border: 2px solid #2a4d8f;
    width: 2.2rem;
    height: 2.2rem;
    box-shadow: 0 4px 16px rgba(42,77,143,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
    color: #2a4d8f;
    font-size: 1.6rem;
}

#contactModal .btn-close::after {
    content: '×';
    font-size: 1.6rem;
    color: #2a4d8f;
    font-weight: bold;
    line-height: 1;
    display: block;
    width: 100%;
    text-align: center;
}

#contactModal .btn-close span {
    display: none;
}

#contactModal .btn-close:hover {
    background-color: #2a4d8f;
    border-color: #232323;
    color: #fff;
    box-shadow: 0 6px 24px rgba(42,77,143,0.28);
    transform: scale(1.08);
}

#contactModal .btn-close:hover::after {
    color: #fff;
}

#contactModal .btn-close:focus {
    outline: 2px solid #2a4d8f;
    outline-offset: 2px;
}

#contactModal .btn-secondary:hover {
    color: blue;
}

#contactModal .modal-body a {
    color: #082d72;
    font-weight: 700;
    text-decoration: underline;
}

#contactModal .modal-body a:hover {
    color: #048079;
}

#contactModal .modal-body a:active {
    color: #af0404;
}

/* Responsive */
@media (max-width: 600px) {

    .top-title {
        max-width: 100%;
        padding: 0.75rem 0.5rem;
        margin: 0.5rem auto;
    }

    .page-shell {
        max-width: 100%;
        padding: 0.2rem;
    }

    .cv-layout {
        max-width: 100%;
        padding: 0.5rem;
    }

    .info {
        max-width: 100%;
        padding: 0.8rem 1rem;
    }

    .subtitle h2 {
        padding: 4px 8px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
        padding: 0.5rem 0.6rem;
    }

    h3 {
        font-size: 1.4rem;
        font-weight: bold;
    }

    h4 {
        font-size: 1.2rem !important;
        font-weight: bold !important;
    }

    .cv-download-wrap {
        margin-top: 0.5rem;
    }

    .education-columns {
        flex-direction: column;
        gap: 0.6rem;
    }

    .experience-item {
        flex: 1 1 100%;
    }

    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 0.5rem;
    }

    .site-nav a {
        width: auto;
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .quote-text,
    .quote-author {
        font-size: 1.4rem;
    }
    .circle {
        width: 70px;
        height: 70px;
    }

    #contactModal .modal-content {
        padding: 0.5rem;
        border-radius: 10px;
    }
    #contactModal .modal-title {
        font-size: 1.2rem;
    }

    #contactModal .modal-body {
        font-size: 1rem;
        padding: 0.5rem 0.2rem;
    }

    #contactModal .modal-header, #contactModal .modal-footer {
        border-radius: 10px 10px 0 0;
        padding: 0.5rem 0.7rem;
    }
    
    #contactModal .btn-secondary {
        font-size: 0.95rem;
        padding: 0.3rem 0.8rem;
    }
}
