/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #08111f;
    color: white;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* NAVBAR */

.navbar {
    height: 80px;
    padding: 0 8%;

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

    background-color: #08111f;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    transition: 0.3s;
}

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


/* HERO */

.hero {
    min-height: calc(100vh - 80px);
    padding: 60px 10%;

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

    gap: 70px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.intro {
    color: #38bdf8;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.05;
    margin-bottom: 15px;
}

.hero h1 span {
    color: #38bdf8;
}

.hero h2 {
    color: #cbd5e1;
    font-size: 30px;
    margin-bottom: 20px;
}

.hero-description {
    color: #94a3b8;
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}


/* BUTTONS */

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn {
    background-color: #38bdf8;
    border: 2px solid #38bdf8;
    color: #08111f;
}

.primary-btn:hover {
    background-color: #7dd3fc;
    border-color: #7dd3fc;
    transform: translateY(-3px);
}

.secondary-btn {
    border: 2px solid #334155;
    color: white;
}

.secondary-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}


/* ========================================
   PROFILE PHOTO
   FOTOĞRAFI DÜZELTEN KISIM
======================================== */

.hero-image {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

.image-border {
    width: 310px;
    height: 310px;

    border: 3px solid #38bdf8;
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(56, 189, 248, 0.20);
}

.image-border img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 65%;
}


/* GENERAL SECTIONS */

.section {
    padding: 100px 10%;
}

.dark-section {
    background-color: #0c1728;
}

.section-label {
    color: #38bdf8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 45px;
    margin-bottom: 50px;
}


/* ABOUT */

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text p {
    color: #a8b3c5;
    font-size: 17px;
    margin-bottom: 20px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-box {
    padding: 25px;
    background-color: #0c1728;
    border: 1px solid #1e293b;
    border-radius: 12px;
}

.info-box h3 {
    color: #38bdf8;
    font-size: 14px;
    margin-bottom: 7px;
}


/* SKILLS */
    
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    background-color: #101d30;
    border: 1px solid #1e293b;
    border-radius: 12px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
}

.skill-card h3 {
    color: #38bdf8;
    font-size: 21px;
    margin-bottom: 12px;
}

.skill-card p {
    color: #94a3b8;
}


/* CERTIFICATIONS */

.certificate-card {
    max-width: 850px;
    padding: 35px;

    display: flex;
    align-items: center;
    gap: 30px;

    background-color: #0c1728;
    border: 1px solid #1e293b;
    border-radius: 15px;
}

.certificate-icon {
    min-width: 80px;
    height: 80px;

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

    background-color: #cc0033;
    border-radius: 50%;

    font-size: 40px;
    font-weight: bold;
}

.certificate-info h3 {
    font-size: 24px;
}

.certificate-name {
    color: #38bdf8;
    margin-bottom: 8px;
}

.certificate-info p:last-child {
    color: #94a3b8;
}


/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    overflow: hidden;
    background-color: #101d30;
    border: 1px solid #1e293b;
    border-radius: 15px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
}

.project-image {
    height: 200px;

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

    background-color: #12243b;
    color: #38bdf8;

    font-weight: bold;
    letter-spacing: 3px;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.project-content p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 5px 10px;

    background-color: #17263a;
    color: #38bdf8;

    border-radius: 5px;
    font-size: 12px;
}

project-link {
    display: inline-block;
    margin-top: 20px;
    color: #38bdf8;
    font-weight: bold;
    transition: 0.3s;
}

.project-link:hover {
    color: #7dd3fc;
    transform: translateX(5px);
}


/* CONTACT */

.contact-section {
    padding: 110px 10%;
    text-align: center;
}

.contact-section h2 {
    font-size: 48px;
    line-height: 1.2;
}

.contact-section h2 span {
    color: #38bdf8;
}

.contact-description {
    max-width: 600px;
    margin: 20px auto;
    color: #94a3b8;
}


/* CONTACT FORM */

.contact-form {
    max-width: 650px;
    margin: 40px auto 0;
    padding: 35px;

    text-align: left;

    background-color: #0c1728;
    border: 1px solid #1e293b;
    border-radius: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.form-group label {
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;

    background-color: #08111f;
    border: 1px solid #334155;
    border-radius: 8px;

    outline: none;

    color: white;
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38bdf8;
}

.form-group textarea {
    resize: vertical;
}

.send-button {
    width: 100%;
    cursor: pointer;
    font-size: 16px;
}

.direct-email {
    margin-top: 30px;
}

.direct-email p {
    color: #64748b;
    font-size: 14px;
}

.direct-email a {
    color: #38bdf8;
    font-weight: bold;
}


/* FOOTER */

footer {
    padding: 35px 10%;

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

    border-top: 1px solid #1e293b;

    color: #64748b;
    font-size: 13px;
}

.footer-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.footer-logo span {
    color: #38bdf8;
}


/* TABLET */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 70px;
    }

    .hero-text {
        max-width: 650px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-border {
        width: 280px;
        height: 280px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .hero {
        padding-left: 7%;
        padding-right: 7%;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .image-border {
        width: 240px;
        height: 240px;
    }

    .section {
        padding: 75px 7%;
    }

    .section-title {
        font-size: 36px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .certificate-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-section {
        padding: 80px 7%;
    }

    .contact-section h2 {
        font-size: 36px;
    }

    .contact-form {
        padding: 25px;
    }
}