/* =========================================
   GLOBAL RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   GLOBAL BACKGROUND (TRUE ADAPTIVE)
========================================= */

/* Remove background from body */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #e6edf3;
    background: transparent !important;
}

/* Dedicated adaptive background layer */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    background-image: url("background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* iPhone/iPad Fix — prevents zooming/blur */
@supports (-webkit-touch-callout: none) {
    .background-layer {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* =========================================
   HEADER / NAV
========================================= */
.header {
    width: 100%;
    padding: 18px 60px;

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

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

    background: rgba(11, 15, 23, 0.7);
    backdrop-filter: blur(10px);

    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.header.hide {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    background: linear-gradient(135deg, #30e3cb, #2bc4ad);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0b0f17;
    font-weight: bold;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    color: #cdd9e5;
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #2bc4ad;
}

.contact-btn {
    background: #2bc4ad;
    padding: 10px 20px;
    border-radius: 10px;
    color: #0b0f17 !important;
    font-weight: bold;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    width: 85%;
    margin: auto;

    min-height: 100vh;
    padding-top: 160px;

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

    text-align: center;
}

.hero-center {
    width: 100%;
}

.hero-center h1 {
    font-size: 70px;
    margin-bottom: 15px;
}

.highlight {
    color: #2bc4ad;
}

.hero-center h3 {
    font-size: 26px;
    margin-bottom: 18px;
}

.hero-center p {
    width: 70%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.5;
}

.resume-btn {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 35px;
    background: #2bc4ad;
    color: #0b0f17;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.resume-btn:hover {
    transform: scale(1.05);
}

/* =========================================
   SECTIONS
========================================= */
.section {
    width: 85%;
    margin: 100px auto;
}

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

.pushed-down {
    padding-top: 80px;
}

/* =========================================
   EDUCATION
========================================= */
.edu-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.edu-card {
    background: rgba(15, 20, 30, 0.85);
    padding: 25px;
    border-radius: 18px;
    display: flex;
    gap: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

.edu-logo {
    width: 70px;
}

/* =========================================
   CERTIFICATIONS
========================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cert-card {
    background: rgba(10, 14, 22, 0.85);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-logo {
    width: 60px;
    border-radius: 10px;
}

/* =========================================
   EXPERIENCE
========================================= */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.exp-card {
    background: rgba(10, 14, 22, 0.85);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.exp-card:hover {
    transform: translateY(-5px);
}

.exp-logo {
    width: 60px;
}

/* =========================================
   PROJECTS
========================================= */
.project-large-card {
    background: rgba(10, 14, 22, 0.85);
    padding: 40px;
    border-radius: 25px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.proj-image {
    width: 340px;
    border-radius: 20px;
}

.proj-info p {
    margin-bottom: 12px;
    line-height: 1.45;
}

/* =========================================
   SKILLS
========================================= */
.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skills-col {
    width: 48%;
}

.skill {
    margin-bottom: 35px;
}

.skill span {
    font-size: 18px;
}

.bar {
    height: 12px;
    width: 100%;
    background: #1b2230;
    border-radius: 10px;
    margin-top: 8px;
}

.bar div {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #2bc4ad, #1fa28b);
}

.percent {
    margin-top: 6px;
    font-size: 15px;
    color: #9bb4c8;
}

/* =========================================
   CONTACT
========================================= */
.contact-container {
    background: rgba(10, 14, 22, 0.85);
    padding: 40px;
    border-radius: 25px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-photo {
    width: 260px;
    border-radius: 25px;
}

.contact-info ul {
    list-style: none;
    font-size: 20px;
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-info a {
    color: #2bc4ad;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    margin-top: 90px;
    padding: 40px 0;
    color: #7e8da0;
}

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

@media (max-width: 768px) {

    .header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero {
        width: 90%;
        padding-top: 150px;
        min-height: 100vh;
    }

    .hero-center h1 {
        font-size: 42px;
    }

    .hero-center p {
        width: 100%;
        font-size: 16px;
    }

    .edu-card,
    .cert-card,
    .exp-card,
    .project-large-card,
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .skills-grid {
        flex-direction: column;
    }

    .skills-col {
        width: 100%;
    }

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

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

    .section-title {
        text-align: center;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .navbar a {
        font-size: 13px;
        margin-left: 12px;
    }

    .hero-center h1 {
        font-size: 34px;
    }

    .hero-center p {
        font-size: 15px;
    }
}
