/* Custom Premium Resume Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variable Definitions for Colour Palette & Themes */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #131a2b;
    --bg-tertiary: #1b243d;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border-color: #242f4c;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    /* Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #4f46e5; /* Deeper Indigo */
    --accent-secondary: #7c3aed; /* Deeper Purple */
    --accent-glow: rgba(79, 70, 229, 0.08);
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--accent-secondary);
}

/* Scroll Behaviour */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    background: radial-gradient(circle at 10% 20%, var(--bg-secondary) 0%, var(--bg-primary) 90.2%);
    border-bottom: 1px solid var(--border-color);
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 10%;
    left: 70%;
    pointer-events: none;
    z-index: 0;
}

.profile-img-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: 1;
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    z-index: 2;
}

/* Navigation */
.navbar {
    background-color: rgba(19, 26, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.85);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

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

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-size: 2.25rem;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    margin-top: 12px;
}

/* Interactive theme toggler */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-glow);
}

/* Premium Card Design */
.premium-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color var(--transition-speed), 
                box-shadow var(--transition-speed);
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

/* Custom Experience Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    left: -39px;
    top: 6px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.timeline-item:hover .timeline-marker {
    background-color: var(--accent-secondary);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-tech-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 30px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* Skills Section */
.skill-category-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.skill-progress-bar-container {
    margin-bottom: 20px;
}

.skill-label-wrapper {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.progress {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: visible;
}

.progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    width: 0%; /* Will animate with jQuery */
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Projects Filtering styling */
.filter-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn.active, 
.filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 15, 25, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 30px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* Contact Form Input Premium Styling */
.form-group-premium {
    margin-bottom: 24px;
}

.form-control-premium {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all var(--transition-speed);
}

.form-control-premium:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

.form-control-premium::placeholder {
    color: var(--text-muted);
}

.submit-btn-premium {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.submit-btn-premium:active {
    transform: translateY(0);
}

/* Contact message alerts */
.alert-premium {
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    border: 1px solid transparent;
}

.alert-premium-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-premium-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
    margin: 0 5px;
}

.social-icon-btn:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Grouped Timeline Subroles Styling */
.timeline-subroles {
    margin-top: 15px;
    border-left: 2px dashed var(--border-color);
    padding-left: 18px;
    margin-left: 5px;
}

.timeline-subrole {
    margin-bottom: 24px;
    position: relative;
}

.timeline-subrole:last-child {
    margin-bottom: 0;
}

.timeline-subrole::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    left: -24px;
    top: 6px;
}

.subrole-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    gap: 8px;
}

.subrole-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.subrole-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background-color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 12px;
}

.timeline-subrole ul {
    margin-bottom: 0;
    padding-left: 16px;
    font-size: 0.875rem;
}

.timeline-subrole li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.timeline-subrole li:last-child {
    margin-bottom: 0;
}

/* Certifications Matrix Section Card Styles */
.cert-matrix-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color var(--transition-speed), 
                box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* On secondary backgrounds, cards stand out better by shifting to tertiary background */
[style*="background-color: var(--bg-secondary)"] .cert-matrix-card {
    background-color: var(--bg-tertiary);
}

.cert-matrix-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
}

.cert-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--accent-glow);
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.cert-matrix-card:hover .cert-icon-wrapper {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.cert-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.cert-info-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Premium outline button for PDF Resume download */
.submit-btn-premium-outline {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn-premium-outline:hover {
    background-color: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}


