/* Modern Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --card-padding: 1.8rem;
    --text-secondary: #6c757d;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

/* General Styles */
body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header h1 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    transition: all var(--transition-speed);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 20px;
    transition: all var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    background: white;
    margin-bottom: 2rem;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white;
    border: none;
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -75px;
    right: -75px;
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.card-body {
    padding: var(--card-padding);
}

/* Profile Section */
.profile-card .card-body {
    padding: 2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    border-radius: 10px;
    margin: 0 auto;
}

.profile-img {
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
    max-width: 200px !important;
    border-radius: 10px;
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: white;
}

.card-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

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

.profile-summary .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-value {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent-color);
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-heading {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-heading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.timeline-subtitle {
    color: var(--accent-color);
    font-weight: 500;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-location i {
    margin-right: 5px;
    color: var(--accent-color);
}

.timeline-content ul {
    padding-left: 1.2rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Badge Styling */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 20px;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bg-primary {
    background-color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Skills Section */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-name .skill-percentage {
    color: var(--accent-color);
}

/* Projects Section */
.project-card {
    transition: all var(--transition-speed);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card img {
    transition: transform var(--transition-speed);
    height: 200px;
    object-fit: cover;
    width: 100%;
}

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

.project-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    transition: all var(--transition-speed);
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-icon i {
    transition: all var(--transition-speed);
}

.project-card:hover .project-icon i {
    transform: rotateY(180deg);
}

.text-primary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.project-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tags {
    margin-top: auto;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

footer::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed);
}

footer a:hover {
    color: var(--accent-color);
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
}

.footer-contact-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-interests {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interest-item {
    display: flex;
    align-items: center;
}

.interest-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.interest-item span {
    font-weight: 500;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.download-resume {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-resume::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.7s ease;
    z-index: -1;
}

.download-resume:hover::before {
    left: 100%;
}

.btn-print {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-print:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .card-title {
        font-size: 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .badge {
        margin-bottom: 0.5rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .footer-interests {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-image-container {
        margin-bottom: 2rem;
    }
    
    .skill-category .d-flex {
        justify-content: center;
    }
    
    .mt-4.d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
} 