* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: #e5e7eb;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #020617;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #38bdf8;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #e5e7eb;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* SECTIONS */
.section {
    padding: 120px 12% 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: #38bdf8;
}

.section-subtitle {
    margin-bottom: 40px;
    max-width: 820px;
    line-height: 1.6;
}


/* HERO */
.hero h1 {
    font-size: 42px;
}

.hero span {
    color: #38bdf8;
}

.hero h2 {
    margin: 15px 0;
    font-weight: 400;
    color: #cbd5f5;
}

.hero p {
    max-width: 650px;
    line-height: 1.7;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 650px;
}

.hero-image img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}


/* PROJECTS */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #020617;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 22px;
}

.project-content h3 {
    margin-bottom: 12px;
    color: #38bdf8;
}

.project-content p {
    line-height: 1.6;
    font-size: 15px;
}


.project-card:hover {
    transform: translateY(-6px);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1px;
    row-gap: 60px;
    justify-items: center;
}



.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 160px;   /* KEY FIX */
}


.skill-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.skill-card:hover .skill-image {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.skill-card p {
    font-weight: 500;
    font-size: 15px;
}


/* CONTACT */
.contact-info p {
    margin-bottom: 10px;
}

.social-icons a {
    font-size: 26px;
    margin-right: 20px;
    color: #e5e7eb;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #38bdf8;
    transform: translateY(-4px);
}


/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: #020617;
    font-size: 14px;
}


@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }
}


.contact-card {
    max-width: 480px;
    margin: 0 auto;
    background: #020617;
    padding: 35px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-item i {
    font-size: 22px;
    color: #38bdf8;
}

.contact-item span {
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 16px;
    font-weight: 500;
    margin-top: 4px;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.contact-social a {
    font-size: 26px;
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social a:hover {
    color: #38bdf8;
    transform: translateY(-4px);
}

.about-container {
    max-width: 900px;
    display: grid;
    gap: 50px;
}

.about-block p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
    color: #e5e7eb;
}

.about-role {
    background: #020617;
    padding: 30px;
    border-radius: 14px;
}

.role-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
}

.about-role h3 {
    margin: 8px 0 18px;
    color: #38bdf8;
    font-size: 22px;
}

.about-role p {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}
