/* =========================================
   1. CSS VARIABLES & RESET (PREMIUM THEME)
   ========================================= */

:root {
    /* --- COLOR PALETTE --- */
    --primary-color: #4f46e5;      /* Indigo (Deep & Professional) */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Indigo -> Violet */
    
    --secondary-color: #0f172a;    /* Slate 900 (Dark text) */
    --text-muted: #64748b;         /* Slate 500 (Softer text) */
    
    /* --- BACKGROUNDS --- */
    /* Premium Gradient for the main page background */
    --page-bg: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%); 
    
    --card-bg: #ffffff;            /* Pure White for cards */
    --input-bg: #f8fafc;           /* Light grey for inputs */
    --input-border: #e2e8f0;       /* Subtle border */
    
    /* --- SHADOWS --- */
    --shadow-soft: 0 20px 40px -5px rgba(0, 0, 0, 0.08); /* Expensive 3D shadow */
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: var(--font-main);
    
    /* APPLYING THE PREMIUM GRADIENT BACKGROUND HERE */
    background: var(--page-bg); 
    background-attachment: fixed; /* Keeps gradient fixed when scrolling */
    
    color: var(--secondary-color);
    line-height: 1.7; 
}

a {
    text-decoration: none;
    transition: all 0.3s ease; 
}

/* =========================================
   2. NAVBAR
   ========================================= */

.navbar {
    display: flex;             
    justify-content: space-between; 
    align-items: center;       
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    
    padding: 1.8rem 5%;        
    
    position: sticky;          
    top: 0;
    z-index: 1000;             
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}

.logo {
    font-size: 2.2rem;  
    font-weight: 800;   
    
    /* Gradient Text for Logo */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    letter-spacing: -0.5px;
}

.menu a {
    color: var(--text-muted);            
    margin-left: 2.5rem; 
    font-size: 1.15rem; 
    font-weight: 600;   
    position: relative;        
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; 
    bottom: -6px;
    left: 0;
    background: var(--primary-gradient); 
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%; 
}

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

.social a {
    color: var(--text-muted); 
    margin-left: 25px; 
    font-size: 2.0rem; 
    transition: 0.3s;
}

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

/* =========================================
   3. MAIN LAYOUT
   ========================================= */

.about-container {
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    gap: 5rem; 
    max-width: 1200px;
    margin: 4rem auto; 
    padding: 0 2rem;
}

.about-text {
    flex: 1; 
}

.about-text p {
    margin-bottom: 25px; 
    line-height: 1.9;    
    color: var(--text-muted);      
}

.about-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    
    background: var(--primary-gradient);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color); 
    margin-bottom: 1.5rem;
}

/* Premium Gradient Button */
.btn {
    display: inline-block;
    background: var(--primary-gradient); 
    color: white;
    padding: 12px 35px;
    border-radius: 50px;       
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4); 
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.6);
}

/* =========================================
   4. IMAGES 
   ========================================= */

/* For Home & Education Pages */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.about-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 0px rgba(79, 70, 229, 0.1); 
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02) rotate(2deg);
}

/* For About Page (Column Layout) */
.about-image-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;    
    margin-top: 20px;
}

.about-image-column img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 0px rgba(79, 70, 229, 0.1);
    transition: transform 0.5s ease;
    margin-bottom: 25px;
}

.side-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;      
    max-width: 350px;        
    background: var(--card-bg);     
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid white;
}

/* =========================================
   5. CONTACT FORM & CARDS
   ========================================= */

.contact-card {
    background: var(--card-bg); /* Pure White */
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 480px; 
    border: 1px solid white; 
}

/* The form container */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

/* Modern Input Fields */
input, textarea {
    width: 100%;
    padding: 15px 18px;
    background-color: var(--input-bg); 
    border: 1px solid transparent; 
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    background-color: white;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.6);
}

/* =========================================
   CONTACT PAGE SOCIAL ICONS
   ========================================= */

.contact-social {
    margin-top: 170px; 
    display: flex;
    gap: 25px; 
}

.contact-social a {
    font-size: 2.2rem; 
    color: var(--text-muted);  
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-social a:hover {
    color: var(--primary-color); 
    transform: translateY(-5px); 
}


/* =========================================
   6. SKILLS & TABLE
   ========================================= */

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap; 
    gap: 12px;
    margin-top: 15px;
}

.skills-list li {
    background: #eef2ff; 
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #c7d2fe;
}

.table-wrapper {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft); 
    margin-top: 2rem;
    border: 1px solid #c7d2fe;
}

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

th, td {
    text-align: left;
    padding: 18px;
    border-bottom: 1px solid var(--input-border);
}

th {
    color: var(--primary-color); /* <--- CHANGED TO INDIGO */
    font-size: 0.9rem;           /* Slightly larger for better visibility */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;            /* Made it bolder */
}

td {
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap; 
}

.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 60px;
    border-top: 1px solid var(--input-border);
}

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
    .about-container {
        flex-direction: column; 
        text-align: center;
        gap: 3rem;
    }

    .about-image img, .about-image-column img {
        width: 280px;
        height: 280px;
    }

    .about-text h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 5%;
    }

    .menu {
        display: flex;
        gap: 20px;
        font-size: 1rem;
    }
    
    .menu a {
        margin: 0;
    }
}