/* Main CSS Styling File for Senior Lecturer Portfolio */

/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #3498db, #8e44ad);
    --text-color: #333;
    --text-muted: #777;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-circle: 50%;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== DARK MODE ==================== */
.dark-mode {
    background-color: #1a202c;
    color: #f8f9fa;
}

.dark-mode .navbar {
    background-color: #2d3748 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.dark-mode .navbar-light .navbar-nav .nav-link:hover,
.dark-mode .navbar-light .navbar-nav .nav-link:focus {
    color: #fff;
}

.dark-mode .card {
    background-color: #2d3748;
    color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .card-footer {
    background-color: #2d3748;
    border-top: 1px solid #4a5568;
}

.dark-mode .timeline-content {
    background-color: #2d3748;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .bg-light {
    background-color: #2d3748 !important;
}

.dark-mode .text-muted {
    color: #cbd5e0 !important;
}

.dark-mode .footer {
    background-color: #1a202c;
}

.dark-mode .timeline::after {
    background-color: var(--secondary-color);
}

.dark-mode .timeline-item::after {
    background-color: #2d3748;
}

.dark-mode .testimonial-card {
    background-color: #2d3748;
}

.dark-mode .left::before {
    border-color: transparent transparent transparent #2d3748;
}

.dark-mode .right::before {
    border-color: transparent #2d3748 transparent transparent;
}

.dark-mode input, 
.dark-mode textarea {
    background-color: #4a5568;
    border-color: #4a5568;
    color: #f8f9fa;
}

.dark-mode input:focus, 
.dark-mode textarea:focus {
    background-color: #4a5568;
    border-color: var(--secondary-color);
    color: #f8f9fa;
}

.dark-mode .text-dark {
    color: #f8f9fa !important;
}

.dark-mode .awards-section {
    background-color: rgba(52, 152, 219, 0.05);
}

/* ==================== NAVBAR STYLES ==================== */
.navbar {
    transition: all var(--transition-fast);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.navbar-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    padding: 0.5rem 0;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--secondary-color);
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 1rem;
    transition: width var(--transition-fast);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after {
    width: calc(100% - 2rem);
}

.dark-mode-toggle {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-fast);
    border: 1px solid #dee2e6;
}

.dark-mode-toggle:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.dark-mode .dark-mode-toggle {
    background-color: #4a5568;
    border-color: #4a5568;
}

.dark-mode .dark-mode-toggle:hover {
    background-color: #2d3748;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: 50px; /* Adds subtle rounded corners */
    border: 5px solid white; /* Keeps the white border around the image */
    width: 480px; /* Increased width for a larger image */
    height: 500px; /* Increased height for a larger image */
    object-fit: cover; /* Ensures the image covers the area without stretching */
    box-shadow: var(--card-shadow); /* Your defined shadow */
    transition: transform var(--transition-medium), box-shadow var(--transition-medium); /* Smooth transition for hover effect */
    animation: floatAnimation 6s ease-in-out infinite; /* Floating animation */
}

.hero-img:hover {
    transform: scale(1.1) rotate(5deg); /* Slightly scale and rotate on hover */
    box-shadow: var(--card-shadow-hover); /* Hover shadow effect */
}



@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.display-4 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-section .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.hero-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width var(--transition-medium);
}

.section-title:hover::after {
    width: 100px;
}

/* ==================== TIMELINE STYLES ==================== */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-fast);
}

.timeline-item:hover::after {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -17px;
}

.right::after {
    left: -16px;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--light-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-color);
    transition: right var(--transition-fast);
}

.left:hover::before {
    right: 25px;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--light-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-color) transparent transparent;
    transition: left var(--transition-fast);
}

.right:hover::before {
    left: 25px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-fast);
}

.timeline-content:hover {
    box-shadow: var(--card-shadow-hover);
}


/* ==================== CARD STYLES CONTINUED ==================== */
.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.card-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==================== TESTIMONIALS STYLES ==================== */
.testimonial-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-card .quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-color);
}

/* ==================== FOOTER STYLES ==================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.footer .footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer .footer-links li {
    margin-bottom: 0.5rem;
}

.footer .footer-links a {
    color: white;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer .footer-links a:hover {
    color: var(--secondary-color);
}

.footer .social-icons {
    display: flex;
    gap: 15px;
}

.footer .social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.footer .social-icons a:hover {
    color: var(--secondary-color);
}

.footer .copy-right {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #cbd5e0;
}

/* ==================== BUTTON STYLES ==================== */
.btn {
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==================== MODAL STYLES ==================== */
.modal-content {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-fast);
}

.modal-content:hover {
    box-shadow: var(--card-shadow-hover);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem;
}

.modal-header .close {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

/* ==================== CUSTOM MEDIA QUERIES ==================== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-img {
        width: 200px;
        height: 200px;
    }

    .navbar .navbar-nav {
        text-align: center;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 0.5rem;
    }

    .card-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer .social-icons {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-img {
        width: 150px;
        height: 150px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}
