@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat Regular'),
         local('Montserrat-Regular'),
         url('https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459Wlhzg.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

i {
    color: #fff;
}

/* ================= CAROUSEL ================= */

.carousel-item {
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/95581/header.png');
    opacity: 0.8;
    height: 100%;
}

/* ================= FIXED CONTENT ================= */

.fixed-content {
    width: auto;
    float: none;
    display: block;
    margin-right: auto;
    margin-left: auto;
    padding: 40px;
    text-align: center;
}

/* ================= HEADER ================= */

.header {
    background-image: url('../img/Wajima.jpg');
    background-repeat: no-repeat, repeat;
    /* background-attachment: fixed; */
    color: #fff;
    max-height: 500px;
    height: 100%;
}

.header .port {
    border-radius: 50%;
    border: 6px #ccc solid;
    width: 16%;
}
 /* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    height: 70px;

    /* Dark theme color, but not pure black */
    background: #151515;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 50px;

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid #2d2d2d;
}

/* ================= LOGO ================= */

.logo {
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ================= NAV LINKS ================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;

    text-decoration: none;
    color: #dddddd;

    font-size: 15px;
    font-weight: 500;

    padding: 10px 0;

    transition: all 0.3s ease;
}

/* ================= HOVER ================= */

.nav-links a:hover {
    color: #f5b942;
}

/* ================= UNDERLINE ================= */

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: #f5b942;

    transition: width 0.3s ease;
}

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

/* ================= ACTIVE ================= */

.nav-links a.active {
    color: #f5b942;
}

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

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .navbar {
        height: auto;
        padding: 18px 25px;

        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 22px;
    }

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

@media (max-width: 480px) {

    .navbar {
        padding: 16px 15px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-links {
        gap: 12px 17px;
    }

    .nav-links a {
        font-size: 13px;
    }
}
/* ================= ICON ROW ================= */

.icon-row {
    margin: 45px auto;
    width: 100%;
}

.icon-row i {
    border-radius: 4px;
    cursor: pointer;
    font-size: 44px;
    margin: 0 20px;
    padding: 20px 30px;
    transition: all 400ms ease-in-out;
}

.icon-row i:hover {
    background: #fff;
    color: #ca5549;
}

/* ================= SECOND SECTION ================= */

.second {
    background: #eee;
    color: #888;
    width: 100%;
}

/* ================= PORTFOLIO & CONTACT ================= */

#portfolio h2,
#contact h2 {
    font-size: 40px;
    margin: 0 0 15px 0;
}

/* ================= PANEL ================= */

.panel {
    font-family: 'Indie Flower', cursive;
    width: 100%;
}

/* ================= FOOTER ================= */

.footer {
    color: #666;
}

.footer .blue i {
    color: #d2d6dc;
}

.footer .blue i:hover {
    background: #3c7fc6;
    color: #d2d6dc;
}

.footer .fa-chevron-up {
    cursor: pointer;
    font-size: 34px;
    margin: 40px 0 0 0;
    position: relative;
    top: 0;
}

.footer .fa-chevron-up:hover {
    -webkit-animation: up 1s infinite;
    /* Chrome, Safari, Opera */
    animation: up 1s infinite;
}

/* ================= UP ANIMATION ================= */

@-webkit-keyframes up {
    0% {
        top: 0;
    }

    25% {
        top: 5px;
    }

    50% {
        top: 0;
    }

    75% {
        top: 5px;
    }

    100% {
        top: 0;
    }
}

@keyframes up {
    0% {
        top: 0;
    }

    25% {
        top: 5px;
    }

    50% {
        top: 0;
    }

    75% {
        top: 5px;
    }

    100% {
        top: 0;
    }
}
/* =========================================================
   CERTIFICATES SECTION
========================================================= */

.certificates-section {
    width: 100%;
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.certificates-section .container {
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
}


/* =========================================================
   CERTIFICATES HEADING
========================================================= */

.certificates-heading {
    text-align: center;
    margin-bottom: 60px;
}

.certificates-heading h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certificates-heading hr {
    width: 70px;
    height: 3px;
    border: none;
    margin: 0 auto 20px;
    background: #2c98f0;
}

.certificates-heading p {
    margin: 0;
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CERTIFICATES GRID
========================================================= */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}


/* =========================================================
   CERTIFICATE CARD
========================================================= */

.certificate-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   CERTIFICATE IMAGE
========================================================= */

.certificate-image {
    width: 100%;
    height: 230px;
    background: #eeeeee;
    overflow: hidden;
    position: relative;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition:
        transform 0.5s ease,
        opacity 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.06);
}


/* =========================================================
   CERTIFICATE CONTENT
========================================================= */

.certificate-content {
    padding: 25px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 15px;

    border-radius: 50%;
    background: #2c98f0;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.certificate-card:hover .certificate-number {
    background: #222;
    transform: rotate(360deg);
}


/* =========================================================
   CERTIFICATE TITLE
========================================================= */

.certificate-content h3 {
    margin: 0 0 12px;

    color: #222;

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;

    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-content h3 {
    color: #2c98f0;
}


/* =========================================================
   ISSUED BY
========================================================= */

.certificate-content p {
    margin: 0 0 18px;

    color: #777;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CERTIFICATE YEAR
========================================================= */

.certificate-year {
    display: inline-block;

    margin-top: auto;
    padding: 6px 14px;

    width: fit-content;

    border: 1px solid #2c98f0;
    border-radius: 20px;

    color: #2c98f0;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.certificate-card:hover .certificate-year {
    background: #2c98f0;
    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 992px) {

    .certificates-section {
        padding: 80px 0;
    }

    .certificates-heading {
        margin-bottom: 45px;
    }

    .certificates-heading h2 {
        font-size: 32px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .certificate-image {
        height: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {

    .certificates-section {
        padding: 60px 0;
    }

    .certificates-section .container {
        width: 92%;
    }

    .certificates-heading {
        margin-bottom: 35px;
    }

    .certificates-heading h2 {
        font-size: 27px;
    }

    .certificates-heading p {
        font-size: 14px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .certificate-image {
        height: 230px;
    }

    .certificate-content {
        padding: 22px;
    }

    .certificate-content h3 {
        font-size: 19px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 400px) {

    .certificates-heading h2 {
        font-size: 24px;
    }

    .certificate-image {
        height: 200px;
    }

    .certificate-content {
        padding: 20px;
    }

    .certificate-content h3 {
        font-size: 18px;
    }

}
/* Contact Section */
.contact-section {
    background: #ffffff;
    padding: 70px 8%;
    color: #1e293b;
}

/* Heading */
.contact-heading {
    text-align: center;
    margin-bottom: 45px;
}

.contact-heading h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1e293b;
}

.contact-heading h2::before,
.contact-heading h2::after {
    content: "—";
    margin: 0 15px;
    color: #64748b;
}

.contact-heading p {
    max-width: 1000px;
    margin: auto;
    color: #64748b;
    line-height: 1.7;
}

/* Main Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

/* Contact Info */
.contact-info {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.contact-info h2,
.contact-form h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1e293b;
}

.contact-info > p,
.contact-form > p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Information Boxes */
.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.info-box h3 {
    margin: 0 0 5px;
    color: #334155;
}

.info-box p {
    margin: 3px 0;
    color: #64748b;
    font-size: 14px;
}

/* Form */
.contact-form {
    padding-top: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    padding: 16px 18px;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.contact-form input {
    height: 54px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #94a3b8;
    background: #ffffff;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #64748b;
}

/* Button */
.contact-form button {
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    background: #334155;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-section {
        padding: 50px 5%;
    }

    .contact-heading h2 {
        font-size: 30px;
    }

    .contact-info {
        padding: 25px;
    }

    .contact-form {
        padding-top: 10px;
    }
}
