/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition: all 0.3s ease;
    --navbar-height: 80px; /* Height of fixed navbar */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* Add padding to account for fixed navbar */
}

/* Typography */
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    height: var(--navbar-height);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    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;
}

.hero-location {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Specialties Section */
.specialty-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.specialty-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.specialty-card ul {
    margin-top: 1rem;
}

.specialty-card li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page-specific sections - Add proper spacing */
.about-hero,
.contact-hero,
.projects-hero,
.resume-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Specialty Cards */
.specialty-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    margin-bottom: 1.5rem;
}

.specialty-card h4 {
    color: var(--bs-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.specialty-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
    border: 2px solid var(--bs-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-header h3,
.project-header h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    flex: 1;
    margin-right: 1rem;
}

.project-badge {
    background: linear-gradient(45deg, var(--bs-primary), #0056b3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.project-content p {
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h5 {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.detail-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-stack .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.tech-stack .badge:hover {
    transform: scale(1.05);
}

.tech-stack .badge.bg-primary {
    background: linear-gradient(45deg, var(--bs-primary), #0056b3) !important;
    animation: pulse 2s infinite;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.5);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
}

/* DevSecOps section styling */
.detail-section h5 .fa-rocket {
    color: #dc3545 !important;
    animation: rocket-shake 3s infinite;
}

@keyframes rocket-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.detail-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.detail-section ul li::before {
    content: '🔒';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

/* Project Statistics */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

/* Security Cards */
.security-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.security-icon {
    margin-bottom: 1.5rem;
}

.security-content h4 {
    color: var(--bs-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.security-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.security-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    color: #6c757d;
    font-size: 0.9rem;
}

.security-content li:last-child {
    border-bottom: none;
}

.security-content li::before {
    content: '✓';
    color: var(--bs-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Education Cards */
.education-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.education-icon {
    margin-bottom: 1.5rem;
}

.education-content h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-content p:first-of-type {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.education-content p:last-of-type {
    line-height: 1.6;
    color: #6c757d;
}

/* Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.training-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.training-item:hover {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    color: var(--primary-color);
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(var(--primary-rgb), 0.1);
}

.social-icon span {
    margin-top: 0.5rem;
    font-weight: 500;
}

.availability-item {
    text-align: center;
    padding: 1.5rem;
}

.availability-item i {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Resume Cards */
.resume-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.experience-item,
.education-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
}

.experience-header,
.education-header {
    margin-bottom: 1rem;
}

.experience-details,
.education-details {
    list-style: none;
    padding-left: 0;
}

.experience-details li,
.education-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-details li::before,
.education-details li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Social Links */
.social-link-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
}

.social-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.social-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.cta-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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .profile-card {
        margin-top: 2rem;
    }
    
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-header h3,
    .project-header h4 {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .project-badge {
        align-self: flex-start;
    }
    
    .tech-stack {
        gap: 0.25rem;
    }
    
    .tech-stack .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .training-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        min-width: 100px;
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .resume-card {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .specialty-card {
        padding: 1.5rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-stats .stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-image {
    position: relative;
    display: inline-block;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--bs-primary), #6c757d);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--bs-primary), #6c757d);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: white;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: var(--bs-primary);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-header h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-header h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-header p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.timeline-body ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.timeline-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Certification Cards */
.certification-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.certification-icon {
    margin-bottom: 1.5rem;
}

.certification-content h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certification-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-content p:first-of-type {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.achievement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.achievement-content h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.achievement-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-content p:first-of-type {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.achievement-content p:last-of-type {
    flex: 1;
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -20px;
        right: auto;
        border-right-color: white;
        border-left-color: transparent;
    }
}

/* Experience Cards */
.experience-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.experience-header h4 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.experience-header h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experience-header p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.experience-body p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Technology Categories */
.tech-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tech-category h4 {
    color: var(--bs-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for technology grid */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .tech-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .tech-stack {
        gap: 0.25rem;
    }
    
    .tech-stack .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
} 