/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #003804;
    --secondary-green: #003103;
    --primary-gold: #ff8503;
    --secondary-gold: #feb204;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --sidebar-width: 280px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Loading Screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner > div {
    background-color: var(--primary-gold);
    height: 100%;
    width: 6px;
    display: inline-block;
    position: absolute;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    left: 12px;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    left: 24px;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    left: 36px;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    left: 48px;
    animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% { 
        transform: scaleY(0.4);
    }  
    20% { 
        transform: scaleY(1.0);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-gold);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--secondary-gold);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-green);
    color: var(--white);
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-green);
}

.profile-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-gold);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--white);
}

.profile-title {
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 300;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-gold);
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-gold);
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: var(--secondary-green);
}

.social-links {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    color: var(--white);
    font-size: 18px;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* Sections */
.section {
    display: none;
    min-height: 100vh;
    padding: 60px 0;
}

.section.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

/* Home Section */
.section-home {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
}

.section-home.active {
    display: flex;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

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

.info-label {
    font-weight: 600;
    color: var(--primary-green);
    margin-right: 10px;
}

.info-value {
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 48px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.skill-item h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.skill-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 60px;
}

.skill-progress {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-percentage {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-gold);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

/* Contact Map */
.contact-map h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.map-link {
    text-align: center;
}

.map-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

/* Timeline for Education */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    border: 4px solid var(--white);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-gold);
}

.experience-year {
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.experience-item h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.service-featured {
    grid-column: span 2;
    padding: 0;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.service-featured .service-content {
    padding: 40px;
}

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

.service-item h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-highlight {
    background-color: rgba(255, 133, 3, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-highlight a {
    color: var(--primary-green);
    text-decoration: underline;
}

.service-highlight a:hover {
    color: var(--secondary-green);
}

.service-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-gold);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Publications Section */
.publications-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.books-section h3,
.media-section h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.books-grid {
    display: grid;
    gap: 20px;
}

.book-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-icon {
    font-size: 36px;
    color: var(--primary-gold);
    min-width: 50px;
}

.book-item h4 {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.book-item p {
    color: var(--text-light);
    font-size: 14px;
}

.media-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.media-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.media-item i {
    font-size: 36px;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.media-item p {
    font-size: 16px;
    color: var(--primary-green);
    font-weight: 500;
}

/* Testimonials Section */
.section-testimonials {
    background: var(--bg-light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 60px;
    color: var(--primary-gold);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 20px;
}

.testimonial-author h4 {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .about-content,
    .contact-content,
    .publications-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* Timeline responsive */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px !important;
        right: auto !important;
    }
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .service-featured {
        grid-column: span 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        margin: 0;
    }
}