/* ======================================
   CSS VARIABLES 
====================================== */
:root {
    --bg: #F8FAFC;
    --bg-light: #EEF2F7;
    --bg-soft: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --border: #E2E8F0;
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    scroll-behavior: smooth;
    font-size: 1rem;
}

.container-custom {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.text-muted,
.text-secondary {
    color: #000000; !important;
}

/* ======================================
   NAVBAR 
====================================== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-link {
    color: var(--text) !important;
    margin: 0 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* ======================================
   HERO SECTION 
====================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px;
}

/* Row alignment */
.hero-section .row {
    align-items: center;
}

/* LEFT TEXT */
.hero-text {
    max-width: 650px;
}

/* "Hi, I'm" */
.intro-text {
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

/* NAME */
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 10px;
}

/* SUBTITLE */
.subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

/* PARAGRAPH */
.hero-text p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* BUTTONS */
.cta-buttons {
    margin-top: 20px;
}

.cta-buttons a {
    margin-right: 10px;
}

/* RIGHT IMAGE */
.hero-image-wrapper {
    width: 260px;  
    height: 260px; 
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #9CA3AF;
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
    }

    .hero-image-wrapper {
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .hero-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* ======================================
   BUTTONS
====================================== */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: #fff;
}

/* ======================================
   SECTIONS
====================================== */
section {
    padding: 100px 20px;
   border-bottom: 1px solid #e5e7eb;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary);
}

/* Alternate section background */
section:nth-child(even) {
    background: var(--bg-light);
}

/* ======================================
   CARDS
====================================== */
.card,
.skill-card,
.project-card,
.cert-card,
.education-item,
.contact-form {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover,
.skill-card:hover,
.project-card:hover,
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

/* ======================================
   SKILLS GRID
====================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    padding: 2.2rem;
    text-align: center;
}

.skill-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--muted);
}

/* ======================================
   PROJECTS GRID
====================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.project-content {
    padding: 1.6rem;
}

.project-content p {
    color: var(--muted);
}
.project-card:hover {
    transform: translateY(-10px);
}

/* ======================================
   CERTIFICATES
====================================== */
.cert-section {
    padding: 100px 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    padding: 35px 30px;
}

.cert-card:hover {
    box-shadow: 0 25px 60px rgba(37,99,235,0.15);
}

.cert-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.issuer {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 25px;
}

.cert-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.cert-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ======================================
   CONTACT FORM 
====================================== */
.contact-form {
    padding: 2.2rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.2);
}

/* ======================================
   FOOTER
====================================== */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    color: var(--primary);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
    }

    .hero-image-wrapper {
        margin: 2rem auto 0;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: 80px 20px;
    }
}
