html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
}

a, .skill-box, .certificate-box, .project-card, .contact-btn {
    transition: 0.3s ease;
}

section {
    padding: 40px 10%;
}

.about {
    background: white;
    padding: 0 0% 0px;
}

/* HERO SECTION */

.hero {
    height: 100vh;
    min-height: 700px;

    background-image: url("images/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position:  top center;
    background-color: #1f2a33;

    position: relative;
    color: white;
}

/* DUNKLER OVERLAY */

.hero::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
}

/* NAVIGATION */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #4da6ff;
}

/* HERO TEXT */

.hero-content {
    position: relative;
    z-index: 2;

    height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transform: translateY(-140px);
}

.hero-content h1 {
    font-size: 120px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 24px;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ABOUT SECTION */

.about {
    background: white;
}

.about h2 {
    font-size: 50px;
    margin-bottom: 30px;
}

.about p {
    font-size: 22px;
    line-height: 1.8;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;

    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    max-width: 800px;
    width: 100%;
}

.about-text p {
    line-height: 1.8;

}

.about-extra {
    margin-top: 30px;
    opacity: 0.85;
}

.about-image img {
    width:550px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

}

.about-text {
    flex: 1;
}

/* SKILLS SECTION */

.skills {
    padding: 100px 10%;
    background: #071330;
    color: white;
    text-align: center;
}

.skills h2 {
    font-size: 60px;
    margin-bottom: 60px;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.skill-box {
    background: white;
    color: black;
    padding: 35px;
    border-radius: 20px;
    width: 400px;
    min-height: 220px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    transition: 0.3s;
}

.skill-box:hover {
    transform: translateY(-10px);
}

.skill-box h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.skill-box p {
    font-size: 18px;
    line-height: 1.7;
}

/* CONTACT SECTION */

.contact {
    padding: 80px 15%;
    background: #111;
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 20px;
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;

    background: white;
    color: black;

    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;

    transition: 0.3s;
}

.contact-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
}

.social-links {
    margin-top: 30px;

    display: flex;
    justify-content: center;
    gap: 20px;

    flex-wrap: wrap;
}

.social-links a {
    text-decoration: none;

    color: white;
    border: 2px solid white;

    padding: 12px 28px;
    border-radius: 12px;

    font-weight: 600;

    transition: 0.3s;
}

.social-links a:hover {
    background: #2563eb;
    border-color: #2563eb;

    transform: translateY(-3px);
}

.contact h3 {
    margin-top: 55px;
    margin-bottom: 25px;
    font-size: 28px;
}

.certificates {
    padding: 100px 10%;
    background: white;
    text-align: center;
}

/* CERTIFICATES SECTION */

.certificates {
    background: #f4f4f4;
    padding: 100px 10%;
    text-align: center;
}

.certificates h2 {
    font-size: 60px;
    margin-bottom: 60px;
}

.certificates-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.certificate-box {
    background: white;
    padding: 35px;
    border-radius: 20px;

    width: 320px;
    min-height: 250px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.certificate-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.certificate-box h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.certificate-box p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.certificate-box a {
    display: inline-block;

    padding: 12px 25px;

    background: #071330;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: 0.3s;
}

.certificate-box a:hover {
    background: #0d234f;
}

/* PROJECTS SECTION */

.projects {
    padding: 100px 10%;
    background: #071330;
    color: white;
    text-align: center;
}

.projects h2 {
    font-size: 60px;
    margin-bottom: 60px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.project-card {
    background: rgba(255, 255, 255, 0.06);
    color: white;

    width: 100%;
    max-width: 900px;
    min-height: auto;

    padding: 35px;
    border-radius: 25px;

    text-align: left;

    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #d1d5db;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background: #071330;
    color: white;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
}

/* FOOTER */

.footer {
    background: #050505;
    color: white;
    text-align: center;
    padding: 25px 10%;
}

.footer p {
    font-size: 15px;
    opacity: 0.7;
}

.section-title {
    font-size: 55px;
    text-align: center;
    margin-bottom: 70px;
    color: #0a0a0a;
    position: relative;
    font-weight: 700;
}

.section-title i {
    color: #001845;
    margin-right: 15px;
}

.section-title::after {
    content: "";
    width: 120px;
    height: 5px;
    background: #001845;
    display: block;
    margin: 20px auto 0;
    border-radius: 20px;
}

/* CONTACT */

.contact {
    padding: 100px 10%;
    background: #071330;
    text-align: center;
    color: white;
}

.contact-container {
    max-width: 700px;
    margin: auto;
}

.contact-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-block;

    background: white;
    color: #071330;

    padding: 16px 35px;

    border-radius: 12px;

    text-decoration: none;
    font-weight: 600;

    transition: 0.3s;
}

.contact-btn:hover {
    transform: translateY(-5px);
    background: #dbe4ff;
}

.social-links {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    gap: 25px;

    flex-wrap: wrap;
}

.social-links a {
    color: white;

    text-decoration: none;

    font-size: 18px;
    font-weight: 500;

    transition: 0.3s;
}

.social-links a:hover {
    color: #4da3ff;
}

.social-links i {
    margin-right: 10px;
}

/* MOBILE DESIGN */

@media (max-width: 600px) {

    nav {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 14px;
    }


    .hero-content h1 {
        font-size: 55px;
    }

    .hero-content p {
        font-size: 18px;
        text-align: center;
        padding: 0 20px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        margin-left: 0;
        width: 100%;
        max-width: 280px;
    }

    .about-text {
        width: 100%;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .projects h2 {
        font-size: 42px;
    }

    .project-card {
        width: 100%;
        padding: 28px;
    }

    .project-card h3 {
        font-size: 24px;
    }

}
.certificate-box img {
    width: 90px;
    margin-bottom: 20px;
}
.certificate-box:hover {
    transform: translateY(-8px);
    transition: 0.3s;
}
.certificates .section-title i {
    color: #001845;
}
.about .section-title i {
    color: #001845 !important;
}
 /* MOBILE FIX */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    nav {
        width: 100%;
        padding: 15px 10px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 14px;
    }
    

    .hero-content h1 {
        font-size: 55px;
    }

    .hero-content p {
        font-size: 22px;
        padding: 0 25px;
    }

    section {
        padding: 70px 6%;
    }

    .section-title {
        font-size: 38px;
        margin-bottom: 45px;
        color: white;
    }

    .about .section-title,
    .certificates .section-title {
        color: #0a0a0a;
    }

    .section-title i {
        font-size: 34px;
    }

    .skill-box,
    .certificate-box,
    .project-card {
        width: 100%;
        max-width: 100%;
    }

    .skill-box h3,
    .certificate-box h3,
    .project-card h3 {
        font-size: 26px;
        word-break: normal;
    }

    .skill-box p,
    .certificate-box p,
    .project-card p {
        font-size: 17px;
    }

    .projects-container,
    .skills-container,
    .certificates-container {
        width: 100%;
    }

    .project-card {
        padding: 28px;
    }
}
/* MOBILE HERO FIX */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    nav {
        flex-direction: column;
        padding: 15px 5%;
    }

    nav .logo {
        margin-bottom: 12px;
        font-size: 28px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .hero {
        min-height: 100vh;
        background-size: cover;
        background-position: 40% center;
    }

    .hero-content {
        height: 100vh;
        transform: none;
        justify-content: flex-start;
        padding-top: 230px;
        text-align: center;
    }

    .hero-content h1 {
        display: none;
    }

    .hero-content p {
        font-size: 18px;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 20px;
        line-height: 1.5;
    }

    section {
        width: 100%;
        padding: 70px 5%;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .about-image img {
        width: 100%;
        max-width: 320px;
        margin-left: 0;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .section-title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 45px;
    }

    .skill-box,
    .certificate-box,
    .project-card {
        width: 100%;
        max-width: 100%;
        padding: 28px;
    }

    .skill-box h3,
    .certificate-box h3,
    .project-card h3 {
        font-size: 24px;
        line-height: 1.3;
    }

    .skill-box p,
    .certificate-box p,
    .project-card p {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

.ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker p {
    display: inline-block;
    animation: tickerMove 12s linear infinite;
}

@keyframes tickerMove {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .ticker {
        white-space: normal;
        overflow: visible;
        text-align: center;
    }

    .ticker p {
        animation: none;
        display: block;
        transform: none;
    }
}
