/* Custom Properties for easy theme changes */
:root {
    --primary-color: #3498db;     /* Soft blue */
    --secondary-color: #2c3e50;   /* Dark grayish-blue for text/headers */
    --light-bg: #f8f9fa;          /* Very light gray for alternate backgrounds */
    --text-color: #333333;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --transition: all 0.3s ease;
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for navigation links */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

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

/* Common Components */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
}

/* Decorative line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ==================
   Hero Section
   ================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Soft gradient background */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 70px; /* Offset for fixed header */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero .highlight {
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==================
   About Section
   ================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* ==================
   Education Section
   ================== */
.education-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.education-table {
    width: 100%;
    border-collapse: collapse;
}

.education-table th,
.education-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.education-table th {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    font-weight: 600;
}

.education-table tr:hover td {
    background-color: rgba(52, 152, 219, 0.05);
}

.education-table tr:last-child td {
    border-bottom: none;
}

/* ==================
   Contact Section
   ================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.contact-form .btn {
    align-self: flex-start;
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-links p {
    margin-bottom: 10px;
    font-weight: 600;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==================
   Footer
   ================== */
.footer {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
}

/* ==================
   Animations
   ================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards ease-out;
}

/* Stagger initial fade-in elements */
.hero h1.fade-in { animation-delay: 0.2s; }
.hero .subtitle.fade-in { animation-delay: 0.4s; }
.hero .hero-buttons.fade-in { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   Responsive Design
   ================== */
@media (max-width: 768px) {
    /* Navbar responsive */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    /* Show menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-menu .nav-links {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* About section responsive */
    .about-content {
        flex-direction: column;
    }

    /* Hero section font sizing */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Responsive Education Table (Card Layout) */
    .education-table-wrapper {
        padding: 10px;
        background: transparent;
        box-shadow: none;
    }
    
    .education-table, 
    .education-table thead, 
    .education-table tbody, 
    .education-table th, 
    .education-table td, 
    .education-table tr { 
        display: block; 
    }
    
    .education-table thead tr { 
        display: none; 
    }
    
    .education-table tr { 
        background: var(--white);
        margin-bottom: 20px; 
        border-radius: 10px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        padding: 10px;
    }
    
    .education-table td { 
        border: none;
        border-bottom: 1px solid var(--border-color); 
        position: relative;
        padding-left: 45%; 
        text-align: right;
    }
    
    .education-table td::before { 
        position: absolute;
        top: 15px;
        left: 15px;
        width: 40%; 
        padding-right: 10px; 
        white-space: pre-wrap;
        text-align: left;
        font-weight: 600;
        color: var(--secondary-color);
        content: attr(data-label);
    }

    .education-table td:last-child {
        border-bottom: none;
    }
    
    .education-table tr:hover td {
        background-color: transparent; /* Disable hover effect on mobile */
    }
}
