/* --- Core Variables & Soft Pastel Color Palette --- */
:root {
    --bg-cream: #faf7f2;       /* Ultra soft, elegant cream background */
    --card-white: #ffffff;     /* Clean canvas white cards */
    --text-dark: #3a353d;      /* Dark charcoal for premium contrast */
    --text-muted: #6e6872;     /* Medium-soft descriptive slate gray */
    
    /* Elegant Pastel Accent Constants */
    --pastel-lavender: #e8e5f7; /* Nav and card focal points */
    --pastel-mint: #d8f3dc;     /* Core dynamic fields */
    --pastel-peach: #fde2e4;    /* Subtle alternate fields */
    --pastel-apricot: #ffebd9;  /* Secondary attention elements */
    --pastel-plum: #5c4b6a;     /* Bold text accents */
    --pastel-coral: #fbc4b6;    /* Divider bars */
}

/* --- Base Formats --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    scroll-behavior: smooth;
    padding-top: 70px; /* Offset for sticky header tracking */
}

/* --- Glassmorphism Navigation Bar --- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(92, 75, 106, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

header .logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--pastel-plum);
    letter-spacing: -0.5px;
}

header .logo span {
    font-weight: 300;
    color: var(--text-muted);
}

header nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 25px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

header nav a:hover {
    color: var(--pastel-plum);
    transform: translateY(-1px);
}

/* --- Section Layout Bases --- */
.section {
    padding: 80px 24px 40px 24px;
    max-width: 1050px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
    font-size: 32px;
    color: var(--pastel-plum);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background-color: var(--pastel-coral);
    margin: 10px auto 0 auto;
    border-radius: 4px;
}

/* --- Premium Reusable Card Layouts --- */
.card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(92, 75, 106, 0.02);
    border: 1px solid rgba(92, 75, 106, 0.04);
}

/* --- Upgraded Hero Backdrop Layout --- */
.hero-section {
    background: linear-gradient(135deg, #eaf4f4 0%, #fef3ef 50%, #f1eefc 100%);
    padding: 120px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(92, 75, 106, 0.03);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-badge {
    background-color: var(--card-white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pastel-plum);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: inline-block;
    margin-bottom: 25px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--pastel-plum);
    letter-spacing: -1px;
}

.hero-section .tagline {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 400;
    color: var(--text-muted);
}

.hero-section .objective {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--pastel-plum);
    color: var(--card-white);
    box-shadow: 0 8px 20px rgba(92, 75, 106, 0.15);
}

.btn-primary:hover {
    background-color: #4a3c56;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(92, 75, 106, 0.25);
}

.btn-secondary {
    background-color: var(--card-white);
    color: var(--pastel-plum);
    border: 1px solid rgba(92, 75, 106, 0.15);
}

.btn-secondary:hover {
    background-color: #fcfbfe;
    transform: translateY(-2px);
}

/* --- About Page Format --- */
.about-card p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark);
}
.about-card p:last-child {
    margin-bottom: 0;
}

/* --- Vertical Modern Timeline Component --- */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 3px solid var(--pastel-lavender);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 25px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--card-white);
    border: 4px solid var(--pastel-coral);
}

.timeline-card h3 {
    font-size: 19px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-card h4 {
    font-size: 16px;
    color: var(--pastel-plum);
    font-weight: 500;
    margin-bottom: 15px;
}

.institution-details {
    font-size: 14px;
    color: var(--text-muted);
}

.date-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.college-tag { background-color: var(--pastel-mint); color: #2d5a34; }
.school-tag { background-color: var(--pastel-apricot); color: #7c4a1b; }

/* --- Complex Skills Dynamic Layout --- */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill-group h3 {
    color: var(--pastel-plum);
    font-size: 19px;
    margin-bottom: 8px;
}

.group-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.badge-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

/* Distinct pastel group accents */
.lang-c { background-color: #e3f2fd; color: #1e88e5; }
.lang-cpp { background-color: #e8f5e9; color: #43a047; }
.lang-py { background-color: #fffde7; color: #fbc02d; }
.lang-java { background-color: #efebe9; color: #6d4c41; }

.int-iot { background-color: var(--pastel-mint); color: #2e5b35; }
.int-ml { background-color: var(--pastel-peach); color: #723c40; }
.int-web { background-color: var(--pastel-lavender); color: #403866; }
.int-cyber { background-color: var(--pastel-apricot); color: #70441c; }
.int-db { background-color: #e0f7fa; color: #00838f; }

/* --- Grid Grid Dynamic Projects Layout --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border-top: 5px solid var(--pastel-lavender);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(92, 75, 106, 0.06);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-icon {
    font-size: 22px;
}

.project-card h3 {
    font-size: 17px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Card Accent Border Highlights */
.border-mint { border-top-color: #b7e4c7; }
.border-peach { border-top-color: #ffcad4; }
.border-lavender { border-top-color: #d6ccc2; }
.border-apricot { border-top-color: #f7d1cd; }

/* --- Contact Profiles Section --- */
.contact-main-card {
    max-width: 750px;
    margin: 0 auto;
}

.contact-main-card h3 {
    font-size: 20px;
    color: var(--pastel-plum);
    margin-bottom: 10px;
}

.contact-main-card > p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.divider {
    height: 1px;
    background-color: rgba(92, 75, 106, 0.08);
    margin-bottom: 25px;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-icon {
    font-size: 24px;
    background-color: var(--bg-cream);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-item a, .contact-item p {
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--pastel-plum);
    text-decoration: underline;
}

/* --- Clean Footer Frame --- */
footer {
    background-color: var(--card-white);
    text-align: center;
    padding: 25px;
    margin-top: 80px;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid rgba(92, 75, 106, 0.05);
}

/* --- Screen Responsiveness Media Settings --- */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    header nav a {
        margin-left: 15px;
        font-size: 14px;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .skills-container, .contact-details-grid {
        grid-template-columns: 1fr;
    }
}