/* Portfolio Website Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 56px; /* Account for fixed navbar */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Header & Navigation */
.header {
    background: var(--dark-color);
    box-shadow: var(--shadow);
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand .brand-profile-name {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin-left: 10px;
}

/* GIF Logo Support */
.navbar-brand img {
    height: 40px;
    object-fit: contain;
    /* Ensure GIF animations play properly */
    animation: none !important;
}

.navbar-brand .logo-gif {
    /* Specific styles for GIF logos to ensure animations play */
    image-rendering: auto;
    will-change: transform;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    color: #fff;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 1.8rem;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.profile-image-container {
    text-align: center;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats-section {
    background: var(--light-color);
    padding: 60px 0;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* About Section */
.about-preview-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-info p {
    margin-bottom: 0.5rem;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interests-tags .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--primary-color);
    color: #fff;
}

.skill-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

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

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-name {
    font-weight: 600;
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary-color);
}

.skill-progress {
    background: var(--primary-color);
    transition: width 1s ease-in-out;
}

.skill-description {
    margin-top: 10px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-institution,
.timeline-faculty,
.timeline-location {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--text-color);
}

/* Services Section */
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-details {
    display: none;
}

.service-btn {
    margin-top: 15px;
}

/* Projects Section */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.project-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* Certificates Section */
.certificate-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

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

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.certificate-image:hover .certificate-overlay {
    opacity: 1;
}

.certificate-content {
    padding: 20px;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.certificate-organization,
.certificate-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Blog Section */
.blog-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.blog-post-title a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-form-card,
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h5 {
    margin-bottom: 0;
}

.contact-details a {
    color: var(--text-color);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact ul li a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content .lead {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    background: #fff;
    color: var(--primary-color);
    border: none;
}

.cta-content .btn:hover {
    background: var(--dark-color);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light-color);
    padding: 20px 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: var(--dark-color);
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-item {
    color: #fff !important;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--primary-color);
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    /* Mobile Dropdown Menu Styles */
    .navbar-collapse .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        padding: 10px 0;
        margin: 5px 0;
        position: static;
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        border-radius: 5px;
    }
    
    .navbar-collapse .dropdown-toggle {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
    
    .navbar-collapse .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
        transition: transform 0.3s ease;
    }
    
    .navbar-collapse .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .navbar-collapse .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 2rem;
        background: transparent;
        border-radius: 5px;
        margin-bottom: 2px;
        color: #fff !important;
    }
    
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item.active {
        background: var(--primary-color);
        color: #fff !important;
    }
    
    .navbar-collapse .nav-item.dropdown {
        margin-bottom: 5px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}
