/* Custom CSS for Professional CV Website */

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-logo {
    height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Additional logo fallback styles */
.navbar-brand img {
    height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Super specific logo override */
img.navbar-logo,
.navbar-brand > img,
img[alt*="Logo"],
img[alt*="logo"] {
    height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 76px; /* Account for fixed navbar */
}

.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="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-summary {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-links {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.5s both;
}

.profile-img {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center 30% !important; /* Move image down to better center your face */
    border: 8px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.profile-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.7);
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: #667eea;
    margin-right: 15px;
    width: 20px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

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

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 0;
    width: 14px;
    height: 14px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-company {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.timeline-date {
    font-weight: 500;
}

.timeline-description {
    color: #555;
    line-height: 1.7;
}

/* Education Styles */
.education-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.education-degree {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-school {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.education-description {
    color: #555;
    line-height: 1.7;
}

/* Skills Styles */
.skill-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.skill-category-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    color: #2c3e50;
}

.skill-level {
    font-size: 0.9rem;
}

.skill-progress .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.skill-progress .progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Projects Styles */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 2px 5px 2px 0;
    border: 1px solid #e9ecef;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Certifications */
.certification-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.certification-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.certification-issuer {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 15px;
}

.certification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Contact Section */
#contact .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

@media (max-width: 768px) {
    #contact .col-lg-8 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 280px;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.contact-method:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-method-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Alert Messages */
.contact-form .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    margin-bottom: 20px;
}

.contact-form .alert-success {
    border-color: rgba(40, 167, 69, 0.6);
    background: rgba(40, 167, 69, 0.2);
}

.contact-form .alert-error,
.contact-form .alert-danger {
    border-color: rgba(220, 53, 69, 0.6);
    background: rgba(220, 53, 69, 0.2);
}

.contact-form .btn-close {
    filter: invert(1);
}

/* 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);
    }
}

/* Tablet and larger mobile responsive */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .contact-method {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    #contact .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    

    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .profile-img,
    .profile-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .profile-placeholder i {
        font-size: 4rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -32px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Force contact section to full width on mobile */
    #contact .col-lg-8 {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px !important;
        margin-bottom: 30px;
    }
    
    .contact-method {
        width: 100% !important;
        max-width: none !important;
        font-size: 0.9rem;
        padding: 12px 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .contact-method-icon {
        margin-right: 8px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .contact-methods {
        gap: 8px !important;
        padding: 0 10px !important;
    }
    
    .contact-method {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
        word-break: break-word;
    }
    
    .contact-method span {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    #contact .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .social-links,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #333 !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .timeline-content,
    .education-item,
    .skill-category,
    .project-card,
    .certification-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
