/* ---- CSS Variables & Reset ---- */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #1e293b;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.bg-light { background-color: var(--bg-light); }

/* ---- Reusable Components ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background-color: var(--dark);
    color: white;
    border: 2px solid var(--dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 10px;
    color: var(--dark);
}
.btn-sm:hover {
    background: #cbd5e1;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.navbar-solid { background-color: var(--bg-main); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: var(--radius);
    top: 100%;
    right: 0;
    overflow: hidden;
}
.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.dropdown-content a:hover {
    background-color: var(--bg-light);
}
.dropdown:hover .dropdown-content { display: block; }

/* ---- Hero Section ---- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.hero-content { flex: 1; padding-right: 40px; }
.hero-content h1 { font-size: 3.5rem; color: var(--dark); margin-bottom: 10px; }
.highlight { color: var(--primary); }
.subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; font-weight: 500; }
.dynamic-text { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark); height: 40px; }
.typed-text { color: var(--primary); font-weight: 600; }
.cursor { display: inline-block; width: 3px; background-color: var(--dark); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-content p { font-size: 1.1rem; margin-bottom: 30px; color: var(--text-main); }
.hero-buttons { display: flex; gap: 15px; }

.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---- About Section ---- */
.about { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.education h3, .skills h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--dark); }

.timeline-item {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 25px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
}
.timeline-item h4 { color: var(--dark); margin-bottom: 5px; }
.timeline-item p.institution { font-weight: 500; }
.timeline-item p.date { font-size: 0.9rem; color: var(--text-muted); }

.skill-category {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 1px solid var(--border);
}
.skill-category strong { color: var(--dark); display: block; margin-bottom: 5px; }

/* ---- Experience & Certificates ---- */
.experience { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.experience .timeline-item ul { margin-top: 10px; padding-left: 20px; list-style-type: disc; }
.experience .timeline-item li { margin-bottom: 8px; font-size: 0.95rem; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.cert-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}
.cert-card h4 { color: var(--dark); margin-bottom: 5px; font-size: 1rem; }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Projects Preview ---- */
.projects-preview { padding: 80px 20px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.card h3 { color: var(--dark); margin-bottom: 15px; }
.card p { margin-bottom: 20px; font-size: 0.95rem; }
.read-more { color: var(--primary); font-weight: 600; }
.center-btn { text-align: center; }

/* ---- Full Projects Page ---- */
.page-header { text-align: center; padding: 120px 20px 40px; background: var(--bg-light); }
.page-header h1 { font-size: 2.5rem; color: var(--dark); }
.page-header p { color: var(--text-muted); margin-top: 10px; }

.all-projects { padding: 60px 20px; }
.project-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.project-detailed-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}
.project-detailed-card h3 { color: var(--dark); margin-bottom: 15px; font-size: 1.4rem; }
.project-bullets { padding-left: 20px; list-style-type: disc; margin-bottom: 15px; }
.project-bullets li { margin-bottom: 10px; font-size: 0.95rem; }

/* ---- Footer ---- */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 60px 20px 20px;
}
.footer-content h2 { margin-bottom: 15px; }
.footer-content p { max-width: 600px; margin: 0 auto 20px; color: #cbd5e1; }
.email-link a { color: var(--primary); font-weight: 600; font-size: 1.2rem; }
.social-icons { margin: 30px 0; }
.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { padding-right: 0; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .about-container { grid-template-columns: 1fr; }
    .nav-links { display: none; /* Add a JS hamburger menu here if desired */ }
}