html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    background-image: url("../images/abstract-blue.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


a {
  color: #f4fefd; 
  text-decoration: none;
  transition: 0.5s;
}


a:visited {
  
  text-decoration: none;
}


a:active {
   
  text-decoration: none;
}

section {
    scroll-margin-top: 120px;
}

/* ========================================= */
/*                 HEADER                     */
/* ========================================= */

.header {
 width: 85%;
    height: 70px;

    margin: 30px auto;

    background: white;

    border-radius: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);

    position: fixed;

    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 85%;

    z-index: 1000;
}



.russricci {
  font-size: 1.8rem;
  margin: 0;
  color: #123A66;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;

    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.nav a {
    position: relative;
    color: #123A66;
    text-decoration: none;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: #123A66;
    transition: width .3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ========================================= */
/*                 ABOUT                      */
/* ========================================= */

.hero {
    width: 85%;
    margin: 80px auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 120px;
}

.intro {
    width: 50%;
}

.greeting {
    font-size: 20px;
    color: white;
}

.name {
    font-size: 60px;
    color: white;
    margin: 10px 0;
}

.title {
    font-size: 28px;
    color: white;
    font-weight: 500;
}

.description {
    margin-top: 25px;
    line-height: 1.7;
    color: white;
    width: 80%;
}

.resume-button {
    display: inline-block;

    margin-top: 35px;
    padding: 15px 35px;

    background: white;
    color: #123A66;

    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;

    transition: .3s;
}

.resume-button:hover {
    transform: translateY(-3px);
}

.video-card {
    background: white;

    padding: 20px;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,.2);

    width: 600px;
}

.video-card video {
    border-radius: 10px;
    display: block;
    width: 100%;
}

/* ========================================= */
/*                 SKILLS                     */
/* ========================================= */

.skills-section {
    width: 85%;
    margin: 100px auto;
}

.section-title {
    color: white;
    font-size: 47px;
    margin-bottom: 40px;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.skill-card {
    flex: 1;

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 10px 25px rgba(0,0,0,.15);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.skill-card h3 {
    color: #123A66;

    margin-bottom: 35px;

     margin-top: 0;

    font-size: 40px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill {
    background: #eef5ff;

    color: #123A66;

    padding: 8px 16px;

    border-radius: 50px;

    font-size: 15px;

    font-weight: 500;
    transition: .25s;
}

.skill:hover {
    transform: translateY(-2px);
}

/* ========================================= */
/*                PROJECTS                    */
/* ========================================= */

.projects-section{
    width:85%;
    margin:100px auto;
}

.projects-grid{

    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;

}

.project-card{

    width:600px;

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

    transition:.3s;

}

.project-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.2);

}

.project-card img{

    width:100%;

    height:auto;

    object-fit:cover;

    display: block;

}

.project-card h3{

    color:#123A66;

    font-size:28px;

    margin:25px;

    margin-bottom:15px;

}

.project-card p{

    color:#555;

    font-size:16px;

    line-height:1.6;

    margin:0 25px 30px;

}

.project-btn{

    margin:0 25px 30px;

    padding:12px 24px;

    border:none;

    border-radius:10px;

    background:#123A66;

    color:white;

    font-size:15px;

    cursor:pointer;

    transition:.3s;

}

.project-btn:hover{

    background:#0c2b4d;

}
































/* ========================================= */
/*                 MODAL                      */
/* ========================================= */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    z-index:9999;

    justify-content:center;

    align-items:center;

    transition:.3s;

}

.modal-content{

    width:900px;

    max-width:90%;

    background:white;

    margin:60px auto;

    border-radius:20px;

    padding:40px;

    position:relative;

    transform: scale(.9);
    opacity: 0;

    transition:
        transform .3s ease,
        opacity .3s ease;

}

.modal-image{

    width:100%;

    border-radius:12px;

    margin:20px 0;

    cursor: pointer;

    transition: opacity .25s ease;
}

.modal-image:hover {
    opacity: 0.9;
    transform: scale(1.01);
}


.close{

    position:absolute;

    right:25px;

    top:20px;

    font-size:35px;

    cursor:pointer;

}

.prev,
.next{

    position:absolute;

    top:45%;

    transform:translateY(-50%);

    border:none;

    background:#123A66;

    color:white;

    width:45px;

    height:45px;

    border-radius:50%;

    cursor:pointer;

}

.prev{

    left:-20px;

}

.next{

    right:-20px;

}

.status{

    text-align:center;

    color:#123A66;

    font-size:28px;

}

.counter{

    text-align:center;

    color:#666;

}

.modal.show{

    display:flex;

    opacity:1;

}

.modal.show .modal-content{

    transform: scale(1);
    opacity: 1;

}

/* ========================================= */
/*               CERTIFICATES                */
/* ========================================= */

.certificates-section {
    width: 85%;
    margin: 100px auto;
}

.certificates-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.certificate-card {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.cert-badge {
    align-self: flex-start;
    background: #eef5ff;
    color: #123A66;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-card h3 {
    color: #123A66;
    font-size: 24px;
    margin: 0 0 5px 0;
}

.cert-issuer {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.cert-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.cert-link {
    color: #123A66;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.cert-link:hover {
    color: #0c2b4d;
    text-decoration: underline;
}

/* ========================================= */
/*                 RESUME                    */
/* ========================================= */

.resume-section {
    width: 85%;
    margin: 100px auto;
}

.resume-card {
    background: white;
    padding: 50px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.resume-card .section-title {
    color: #123A66;
}

.resume-description {
    color: #555;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.resume-main-btn {
    background: #123A66;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
}

.resume-main-btn:hover {
    background: #0c2b4d;
    transform: translateY(-3px);
}

.resume-secondary-btn {
    background: transparent;
    color: #123A66;
    border: 2px solid #123A66;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
}

.resume-secondary-btn:hover {
    background: #eef5ff;
    transform: translateY(-3px);
}

/* ========================================= */
/*                CONTACT                    */
/* ========================================= */

.contact-section {
    width: 85%;
    margin: 100px auto 150px;
    text-align: center;
}

.contact-subtitle {
    color: white;
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto; /* Centers the card horizontally */
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.contact-card h3 {
    color: #123A66;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: #123A66;
}

.contact-item a, .contact-item span {
    color: #555;
    font-size: 16px;
}

.contact-item a:hover {
    color: #123A66;
    text-decoration: underline;
}

.email-btn {
    display: inline-block;
    margin-top: 15px;
    background: #123A66;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
}

.email-btn:hover {
    background: #0c2b4d;
    transform: translateY(-3px);
}