:root {
    --primary-bg: #f8f9fa;
    --primary-text: #333;
    --section-bg: #fff;
    --accent: #007bff;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --navbar-bg: #212529;
    --footer-bg: linear-gradient(135deg, #343a40 0%, #212529 100%);
    --card-bg: #fff;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --input-bg: #fff;
    --input-border: #e9ecef;
    --input-focus: #007bff;
    --badge-primary: #007bff;
    --badge-secondary: #6610f2;
    --badge-success: #28a745;
    --badge-info: #17a2b8;
    --badge-danger: #dc3545;
    --badge-warning: #ffc107;
    --badge-light: #f8f9fa;
    --badge-dark: #343a40;
}

.dark-blue-theme {
    --primary-bg: #0a1833;
    --primary-text: #e0e6f6;
    --section-bg: #142850;
    --accent: #1a73e8;
    --accent-gradient: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    --navbar-bg: #0a1833;
    --footer-bg: linear-gradient(135deg, #0a1833 0%, #142850 100%);
    --card-bg: #1a2238;
    --card-shadow: 0 5px 15px rgba(10,24,51,0.3);
    --input-bg: #1a2238;
    --input-border: #233554;
    --input-focus: #1a73e8;
    --badge-primary: #1a73e8;
    --badge-secondary: #26d0ce;
    --badge-success: #43e97b;
    --badge-info: #26d0ce;
    --badge-danger: #ff4b5c;
    --badge-warning: #ffc107;
    --badge-light: #233554;
    --badge-dark: #0a1833;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background: var(--primary-bg);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--navbar-bg) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Hero Section */
.hero-section {
    background: var(--accent-gradient);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-img {
    border: 4px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 12px 30px;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-text);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--badge-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.stat-item {
    padding: 20px;
    background: var(--primary-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--badge-secondary));
    transition: width 1.5s ease;
    border-radius: 4px;
}

/* Education Cards */
.education-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--badge-secondary));
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.education-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.education-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.education-content p {
    color: #666;
    line-height: 1.6;
}

/* Timeline for Work Experience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--badge-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
}

.position-info h4 {
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.position-info h5 {
    font-weight: 500;
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.promotion-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promotion-info .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* LinkedIn-style Position Entries */
.position-entry {
    border-left: 3px solid #e9ecef;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.position-entry:last-child {
    margin-bottom: 0;
}

.position-entry::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.position-title {
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
    font-size: 1.1rem;
}

.position-entry .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.timeline-content h5 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.experience-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tech .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.project-links .btn {
    margin-right: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.contact-item i {
    color: var(--accent);
    width: 20px;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Contact Form */
.form-control {
    border: 2px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .education-card {
        margin-bottom: 2rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: -0.5rem;
    }
    
    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
    }
    
    .promotion-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .position-entry {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .position-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(102,16,242,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

/* Typography Enhancements */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Background Patterns */
.bg-light {
    background: var(--section-bg) !important;
    color: var(--primary-text) !important;
}

.text-white {
    color: #fff !important;
}

.text-primary {
    color: var(--accent) !important;
}

/* Footer */
footer {
    background: var(--footer-bg) !important;
} 

/* --- Hero Section Animations --- */
.hero-section .profile-img {
    animation: floatProfile 3s ease-in-out infinite, fadeInUp 1s 0.2s both;
}

@keyframes floatProfile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-section .hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.4s both;
}

.hero-section .hero-content p.lead {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.6s both;
}

.hero-section .hero-buttons .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s both;
}
.hero-section .hero-buttons .btn:nth-child(1) {
    animation-delay: 0.8s;
}
.hero-section .hero-buttons .btn:nth-child(2) {
    animation-delay: 1s;
}

.scroll-indicator {
    animation: bounce 2s infinite, fadeIn 1s 1.2s both;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure hero-content is not hidden by default */
.hero-section .hero-content > * {
    will-change: opacity, transform;
} 

/* Update button colors */
.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}
.btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
} 

/* SLIATE logo fix for dark blue theme */
.dark-blue-theme img.sliate-logo {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e0e6f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
} 

/* Featured Videos Section Styles */
.video-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.video-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.video-thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0.85;
    transition: opacity 0.2s;
    pointer-events: none;
}
.video-card:hover .play-btn {
    opacity: 1;
}
.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
} 