/* RESET */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    padding-top: 60px;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    text-align: center;
    padding: 15px;
    background: rgba(2,6,23,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav a {
    color: #cbd5f5;
    margin: 0 20px;
    text-decoration: none;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    background: linear-gradient(135deg, #020617, #1e293b);
}

/* LEFT CONTENT */
.hero-left {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-left h1 {
    font-size: 2.6rem;
    margin: 0;
}

.hero h1 span {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-left p {
    margin: 10px 0;
    color: #cbd5f5;
}

/* CERT BLOCK */
.cert-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-block p {
    margin: 0;
}

.badge {
    width: 115px;
    transition: 0.3s;
    filter: drop-shadow(0 0 10px rgba(56,189,248,0.3));
}

.badge:hover {
    transform: scale(1.05);
}

.verified {
    color: #38bdf8;
    margin-left: 5px;
}

/* PROFILE IMAGE (FORCE RIGHT) */
.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid #38bdf8;
    box-shadow: 0 10px 30px rgba(56,189,248,0.3);

    margin-left: auto;

    animation: float 4s ease-in-out infinite;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* FLOAT ANIMATION */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* BUTTON */
.btn.primary {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;

    box-shadow: 0 5px 15px rgba(56,189,248,0.3);
    transition: 0.3s;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

/* HERO DIVIDER */
.hero-divider {
    height: 1px;
    margin: 30px 60px 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(56,189,248,0.4),
        transparent
    );
}

/* SECTIONS */
section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;

    background: #1e293b;
    border-radius: 16px;
transform: translateY(20px);
    transition: 0.5s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

/* CARDS */
.cards {
    display: flex;
    gap: 20px;
}

.card {
    flex: 1;
    background: #020617;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(56,189,248,0.15);
}

/* SKILLS */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.skills span {
    display: inline-block;
    background: #38bdf8;
    color: black;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 20px;
}
.skills div {
    background: #020617;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.skills div:hover {
    transform: translateY(-3px);
    background: #0f172a;
}
/* ICONS IN CARDS */
.card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #38bdf8;
}

/* PREMIUM CARD EFFECT */
.card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(56,189,248,0.2), transparent);
    opacity: 0;
    transition: 0.5s;
}

.card:hover::before {
    opacity: 1;
}
.card-highlight {
    margin-top: 10px;
    color: #38bdf8;
    font-size: 0.9rem;
}
/* SKILLS GRID */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.skills div {
    background: #020617;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.skills div i {
    display: block;
    margin-bottom: 5px;
    color: #38bdf8;
}
/* TIMELINE */
.timeline {
    border-left: 2px solid #38bdf8;
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

/* Title row */
.timeline-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon */
.icon {
    color: #38bdf8;
    font-size: 14px;
}

/* Subtitle */
.timeline-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 4px 0;
}

/* Paragraph */
.timeline-item p {
    margin: 6px 0 0;
}


/* FORM */
form input,
form textarea,
form button {
    width: 100%;
    box-sizing: border-box;
}
form input,
form textarea {
    width: 100%;
    margin-bottom: 14px;
}
form {
    width: 100%;
}
form input,
form textarea {
    margin-bottom: 10px;
}
.contact-btn {
    width: 100%;

    padding: 12px;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;

    border: none;
    border-radius: 8px;

    font-weight: 600;
    font-size: 0.95rem;

    cursor: pointer;
    transition: all 0.25s ease;
}
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56,189,248,0.35);
}
/* BACKGROUND GLOW */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent);
    top: -100px;
    right: -100px;
    z-index: -1;
}

@media (max-width: 768px) {

    /* ===== NAV FIX ===== */
    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    nav a {
        margin: 0;
        font-size: 0.9rem;
    }

    /* ===== HERO FIX ===== */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .profile-img {
        width: 160px;
        height: 160px;
        margin-top: 20px;
    }

    /* ===== PROJECTS FIX (IMPORTANT) ===== */
    .cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .card {
        width: 100% !important;
    }

    /* ===== SKILLS FIX ===== */
    .skills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ===== TIMELINE CLEANUP ===== */
    .timeline-item {
        flex-direction: column;
        gap: 6px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    /* ===== FORM ===== */
    form input,
    form textarea {
        width: 100%;
        font-size: 0.9rem;
    }

    .contact-btn {
        width: 100%;
    }
}