/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --primary-color: #38bdf8;
    --secondary-color: #818cf8;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active Navigation Link */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 10% 5rem 10%;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

/* Profile Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 0px var(--primary-color);
    transition: all 0.3s ease;
    border: 3px solid rgba(56, 189, 248, 0.3);
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 25px 25px 0px var(--primary-color);
}

/* Hero Content */
.hero-content {
    text-align: left;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .job-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.cta-buttons {
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-5px);
    border-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 10px;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-title span {
    border-bottom: 3px solid var(--primary-color);
}

/* --- ABOUT (UPDATED) --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 15px 15px 0px var(--primary-color);
    transition: transform 0.3s;
    border: 2px solid rgba(56, 189, 248, 0.3);
}

.about-img img:hover {
    transform: scale(1.02);
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
}

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: #253347;
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- TABLE STYLES (EXPERIENCE & EDUCATION) --- */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.data-table thead {
    background: var(--gradient);
    color: #fff;
}

.data-table thead th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.data-table thead th i {
    margin-right: 8px;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.01);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 1.5rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.data-table tbody td strong {
    color: var(--primary-color);
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 189, 248, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

form input, form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 5px;
    font-family: inherit;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 2rem;
}

/* --- ANIMATIONS (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 2rem auto;
    }

    .social-links {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-img {
        order: -1;
    }

    .about-img img {
        width: 200px;
        height: 250px;
    }

    .about-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--card-bg);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 2rem;
        display: none;
    }
    
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }

    /* Table Responsive */
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--card-bg);
        border-radius: 10px;
        padding: 1rem;
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .data-table tbody td:last-child {
        border-bottom: none;
    }

    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
    }
}

@media (max-width: 576px) {
    .hero-image img {
        width: 220px;
        height: 220px;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .job-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-img img {
        width: 180px;
        height: 220px;
        border-radius: 12px;
        box-shadow: 10px 10px 0px var(--primary-color);
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }
}