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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Enhanced Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 { 
    font-size: 3.5rem; 
    margin-bottom: 2rem;
}
h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1.8rem;
}
h3 { 
    font-size: 1.8rem; 
    margin-bottom: 1.5rem;
}
h4 { 
    font-size: 1.4rem; 
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Section Spacing */
section {
    margin-bottom: 5rem;
    padding: 4rem 0;
    position: relative;
}

/* Add subtle background patterns for sections */
section:nth-child(even) {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5), rgba(233, 236, 239, 0.3));
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #212C68, #d7b265);
    border-radius: 2px;
    opacity: 0.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-logo a:hover {
    color: #d7b265;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(215, 178, 101, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: #d7b265;
    background: rgba(215, 178, 101, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d7b265, #212C68);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: #007AFF;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown > a i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(215, 178, 101, 0.1);
    color: #d7b265;
    padding-left: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 99999;
    position: relative;
    padding: 8px;
    background: transparent;
    border: none;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

/* Clean hamburger styling for mobile */
@media screen and (max-width: 768px) {
    .hamburger,
    .navbar .hamburger,
    div.hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        position: relative !important;
        z-index: 999999 !important;
        width: 35px !important;
        height: 25px !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        padding: 8px !important;
    }
    
    .hamburger span,
    .navbar .hamburger span,
    div.hamburger span {
        background: #222 !important;
        width: 25px !important;
        height: 3px !important;
        display: block !important;
        margin: 0 !important;
        transition: all 0.3s ease !important;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #222;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #222;
    overflow: hidden;
    padding: 80px 0 60px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile photo - hidden by default */
.mobile-photo {
    display: none;
}

/* Ensure hamburger is completely hidden on desktop and dropdowns work normally */
@media (min-width: 769px) {
    .hamburger,
    .navbar .hamburger,
    div.hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Ensure dropdown functionality works on desktop */
    .nav-menu .dropdown-menu {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: white !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border-radius: 8px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-menu .dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    padding-left: 0;
    padding-right: 20px;
}

.hero-content {
    z-index: 2;
    text-align: left;
    padding-top: 10px;
}



.hero-photo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    margin-right: -20px;
}

.photo-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #212C68, #d7b265);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(33, 44, 104, 0.3);
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-background {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 44, 104, 0.1), rgba(215, 178, 101, 0.1));
    z-index: 1;
}

.hero-contact {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    color: #555;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #212C68;
    transform: translateX(5px);
}

.contact-item i {
    color: #d7b265;
    width: 20px;
    text-align: center;
}

.hero-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #212C68;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: #212C68;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 44, 104, 0.3);
}

.hero-description {
    max-width: 600px;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn.primary {
    background: #212C68;
    color: white;
}

.hero-btn.primary:hover {
    background: #1a2347;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(33, 44, 104, 0.4);
}

.hero-btn.secondary {
    background: transparent;
    color: #212C68;
    border-color: #212C68;
}

.hero-btn.secondary:hover {
    background: #212C68;
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(33, 44, 104, 0.4);
}

.hero-btn.cv-btn {
    background: #d7b265;
    color: white;
    border: 2px solid #d7b265;
}

.hero-btn.cv-btn:hover {
    background: #c19d5a;
    border-color: #c19d5a;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(215, 178, 101, 0.4);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 0;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 700;
    color: #222;
    position: relative;
    font-size: 2.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #212C68, #d7b265);
    border-radius: 2px;
}

/* Overview Section */
.overview-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(215, 178, 101, 0.1), transparent);
    transition: left 0.6s ease;
}

.overview-card:hover::before {
    left: 100%;
}

.overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.overview-card i {
    font-size: 3rem;
    color: #d7b265;
    margin-bottom: 1.5rem;
}

.overview-card h3 {
    color: #222;
    margin-bottom: 1rem;
}

.overview-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.overview-link {
    color: #212C68;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.overview-link:hover {
    color: #d7b265;
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    border-bottom: 3px solid #d7b265;
}

.page-header h1 {
    font-size: 3rem;
    color: #222;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Academics Section */
.intro-section {
    margin-bottom: 4rem;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.education-section {
    margin-bottom: 4rem;
}

.education-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #212C68;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: white;
}

.timeline-content h4 {
    color: #212C68;
    margin-bottom: 0.5rem;
}

.degree {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.year {
    color: #666;
    font-size: 0.9rem;
}

/* Education Header Layout */
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.education-info {
    flex: 1;
    min-width: 0;
}

.education-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.education-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.1);
    padding: 12px;
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.education-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-dates .year {
    font-weight: 600;
    color: #212C68;
    font-size: 1rem;
    margin: 0;
}

.education-dates .location {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Degree Information Styling */
.degree-info {
    margin: 0.8rem 0;
}

.degree-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.degree-title.master {
    background: linear-gradient(135deg, #212C68, #4a5bb8);
    color: white;
    box-shadow: 0 2px 10px rgba(33, 44, 104, 0.3);
}

.degree-title.bachelor {
    background: linear-gradient(135deg, #d7b265, #e6c77a);
    color: #212C68;
    box-shadow: 0 2px 10px rgba(215, 178, 101, 0.3);
}

.major-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #212C68;
    margin: 0.5rem 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* Major Details Bullet Points */
.major-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.major-details li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.major-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d7b265;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.major-details li:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #555;
}

/* Projects */
.projects-section {
    margin-bottom: 4rem;
}

/* Academic Achievements */
.achievements-section {
    margin-bottom: 4rem;
}

.achievements-section h2 {
    color: #212C68;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.achievements-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.achievements-list li {
    background: #f8f9fa;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #d7b265;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    transition: all 0.3s ease;
}

.achievements-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(215, 178, 101, 0.2);
}

/* Research Interests */
.interests-section {
    margin-bottom: 4rem;
}

.interests-section h2 {
    color: #212C68;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.interests-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.interests-list li {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.interests-list li:hover {
    border-color: #d7b265;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(215, 178, 101, 0.2);
}

/* Academic Skills */
.skills-section {
    margin-bottom: 4rem;
}

.skills-section h2 {
    color: #212C68;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.academic-skills-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.academic-skills-list li {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    line-height: 1.5;
    color: #212C68;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.academic-skills-list li:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.1);
    border-color: #212C68;
}

/* Technical Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
    color: #212C68;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #d7b265;
    padding-bottom: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: linear-gradient(135deg, #212C68, #1a2354);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.3);
}

.projects-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card h4 {
    color: #212C68;
    margin-bottom: 1rem;
}

.project-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

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

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}



/* Work Experience */
.work-section {
    margin-bottom: 4rem;
}

/* Work Experience Filters */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.work-filters .filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.work-filters .filter-btn:hover {
    border-color: #d7b265;
    color: #d7b265;
}

.work-filters .filter-btn.active {
    background: #212C68;
    color: white;
    border-color: #212C68;
}

.work-filters .filter-btn.active:hover {
    background: #1a2354;
    border-color: #1a2354;
}

.work-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.work-section .timeline-item {
    border-left: 4px solid #d7b265;
}

.work-section .timeline-content h4 {
    color: #d7b265;
}

.work-section .timeline-content h3 {
    color: #222;
    margin-bottom: 0.5rem;
}

/* Work Experience Header Layout */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.work-info {
    flex: 1;
    min-width: 0;
}

.work-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.work-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.1);
    padding: 12px;
}

.work-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-dates .year {
    font-weight: 600;
    color: #212C68;
    font-size: 1rem;
    margin: 0;
}

.work-dates .location {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.work-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Handle JPG logos with different object-fit for better display */
.work-logo img[src*=".jpg"] {
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.2;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.achievements h5 {
    color: #28a745;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.achievements ul {
    margin: 0;
    padding-left: 1.5rem;
}

.achievements li {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Certificates */
.professional-dev-section {
    margin-top: 4rem;
}

.professional-dev-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dev-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.dev-card:hover {
    transform: translateY(-3px);
}

.dev-card i {
    font-size: 2.5rem;
    color: #007AFF;
    margin-bottom: 1rem;
}

.dev-card h3 {
    color: #222;
    margin-bottom: 1rem;
}

.dev-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.dev-card li {
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.dev-card li::before {
    content: '•';
    color: #007AFF;
    position: absolute;
    left: 0;
}

.position {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Certifications */
.certifications-section {
    margin-bottom: 4rem;
}

.certifications-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certification-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.certification-card h4 {
    color: #007AFF;
    margin-bottom: 1rem;
}

.issuer {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Skills */
.skills-section {
    margin-bottom: 4rem;
}

.skills-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
}

.skill-category h4 {
    color: #212C68;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.3);
}

/* Skill Levels */
.skill-levels-section {
    margin-top: 4rem;
}

.skill-levels-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.skill-levels-grid {
    max-width: 800px;
    margin: 0 auto;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.skill-percentage {
    color: #d7b265;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(135deg, #212C68, #d7b265);
    border-radius: 4px;
    transition: width 1s ease;
}

/* CV Button */
.cv-section {
    text-align: center;
}

.cv-button {
    display: inline-block;
    background: #212C68;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cv-button:hover {
    background: #d7b265;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.3);
}

/* Writing Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
}

.placeholder-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.placeholder-image::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
}

.article-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-content h3 {
    color: #222;
    margin-bottom: 1rem;
}

.article-content p {
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    color: white;
    background: linear-gradient(135deg, #212C68, #d7b265);
    font-weight: 600;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(33, 44, 104, 0.2);
    width: fit-content;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.3);
}

/* Photography Section */
.photo-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #212C68;
    color: white;
    border-color: #212C68;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
    margin-bottom: 1rem;
    height: auto;
    width: 100%;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.photo-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.photo-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #212C68, #d7b265);
    position: relative;
}

.placeholder-photo::after {
    content: '📸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #222;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #d7b265;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 2rem;
}

/* Contact Form */
.contact-form-section {
    margin-top: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Courses Button */
.courses-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.courses-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #212C68;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.courses-btn:hover {
    background: #d7b265;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 44, 104, 0.3);
}

/* Courses Modal */
.courses-modal {
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
}

.courses-modal-header {
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
}

.courses-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.courses-modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.courses-modal-body {
    padding: 2rem;
}

.course-category-modal {
    margin-bottom: 2rem;
}

.course-category-modal h3 {
    color: #212C68;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d7b265;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #212C68;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.course-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d7b265;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-link:hover {
    background: #212C68;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(215, 178, 101, 0.3);
}

.course-no-link {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 20px;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #212C68;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 44, 104, 0.15);
}

.leadership-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leadership-header i {
    font-size: 2rem;
    color: #d7b265;
    margin-top: 0.5rem;
}

.leadership-title h3 {
    color: #212C68;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.leadership-org {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.leadership-period {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.leadership-content {
    color: #555;
}

.leadership-description {
    font-weight: 500;
    color: #212C68;
    margin-bottom: 1rem;
    font-style: italic;
}

.leadership-achievements {
    list-style: none;
    padding: 0;
}

.leadership-achievements li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.leadership-achievements li::before {
    content: '▸';
    color: #d7b265;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Activities Section */
.activities-section {
    margin-top: 4rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #212C68;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 44, 104, 0.15);
}

.activity-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-header i {
    font-size: 2rem;
    color: #d7b265;
    margin-top: 0.5rem;
}

.activity-title h3 {
    color: #212C68;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.activity-org {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.activity-period {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.activity-content {
    color: #555;
}

.activity-description {
    font-weight: 500;
    color: #212C68;
    margin-bottom: 1rem;
    font-style: italic;
}

.activity-achievements {
    list-style: none;
    padding: 0;
}

.activity-achievements li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.activity-achievements li::before {
    content: '▸';
    color: #d7b265;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Awards Section */
.awards-section {
    background: #f8f9fa;
    margin-top: 4rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.award-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid #d7b265;
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 44, 104, 0.15);
}

.award-card i {
    font-size: 2.5rem;
    color: #d7b265;
    margin-bottom: 1rem;
}

.award-card h4 {
    color: #212C68;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.award-location {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.submit-btn {
    background: #007AFF;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

/* Photo Overlays */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.photo-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Photography Description */
.photography-description {
    margin-top: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photography-description h2 {
    color: #222;
    margin-bottom: 1.5rem;
}

.photography-description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.equipment-info h3 {
    color: #007AFF;
    margin-bottom: 1rem;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-date {
    color: #666;
}

.article-category {
    color: #212C68;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #d7b265;
}

.footer a {
    color: #212C68;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile only */
    .navbar .hamburger,
    .hamburger {
        display: flex !important;
        z-index: 99999 !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Beautiful mobile nav menu styling */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 99998 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        box-shadow: 0 0 50px rgba(0,0,0,0.15) !important;
    }
    
    /* Show mobile nav menu when active */
    .nav-menu.active {
        left: 0 !important;
        display: flex !important;
    }
    
    /* This is handled by the more specific rules below */
    
    .nav-menu.active li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Staggered animation delays */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s !important; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s !important; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s !important; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s !important; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s !important; }
    
    .nav-menu li a {
        font-size: 1.1rem !important;
        padding: 16px 24px !important;
        display: block !important;
        color: #222 !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(215, 178, 101, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a:active {
        color: #d7b265 !important;
        background: rgba(215, 178, 101, 0.15) !important;
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(215, 178, 101, 0.2) !important;
        border-color: #d7b265 !important;
    }
    
    /* Hide dropdown arrows on mobile */
    .nav-menu .fas.fa-chevron-down {
        display: none !important;
    }
    
    /* COMPLETELY HIDE all dropdown menus and submenus on mobile */
    .nav-menu .dropdown-menu,
    .nav-menu .dropdown ul,
    .nav-menu li ul,
    .nav-menu ul ul {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        max-height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Show only top-level nav items on mobile */
    .nav-menu > li {
        display: block !important;
        margin: 6px 0 !important;
        opacity: 0 !important;
        transform: translateY(20px) !important;
        transition: all 0.3s ease !important;
        width: 80% !important;
        max-width: 300px !important;
    }
    
    /* Only show these 6 main navigation items */
    .nav-menu > li:nth-child(1), /* Home */
    .nav-menu > li:nth-child(2), /* Education */
    .nav-menu > li:nth-child(3), /* Experience */
    .nav-menu > li:nth-child(4), /* Portfolio */
    .nav-menu > li:nth-child(5), /* Photography */
    .nav-menu > li:nth-child(6)  /* Contact */ {
        display: block !important;
    }
    
    /* Hide any other nav items that might exist */
    .nav-menu > li:nth-child(n+7) {
        display: none !important;
    }
    
    /* Ensure dropdown functionality is completely disabled on mobile */
    .nav-menu .dropdown:hover .dropdown-menu,
    .nav-menu .dropdown:active .dropdown-menu,
    .nav-menu .dropdown:focus .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        min-width: auto;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 1rem;
    }
    
    .hero {
        padding: 70px 0 40px 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 10px;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 5px;
    }
    
    .hero-photo {
        display: none;
    }
    
    .mobile-photo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0 40px 0;
        width: 100%;
    }
    
    .mobile-photo-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    

    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-contact {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .photo-container {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-grid,
    .articles-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .work-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .work-meta {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
    }
    
    .work-logo {
        width: 80px;
        height: 80px;
    }
    
    .work-info {
        text-align: center;
    }
    
    .work-filters {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .work-filters .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-items {
        gap: 0.6rem;
    }
    
    .skill-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .logo-placeholder {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-layout {
        gap: 30px;
    }
    
    .mobile-photo {
        margin: 20px 0 35px 0;
    }
    
    .mobile-photo-container {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    
    .photo-placeholder {
        font-size: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-contact {
        margin: 20px 0;
    }
    
    .contact-item {
        font-size: 14px;
    }
    
    .hero-social {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .leadership-card {
        padding: 1.5rem;
    }
    
    .leadership-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .leadership-header i {
        margin-top: 0;
    }
    
    .activity-card {
        padding: 1.5rem;
    }
    
    .activity-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .activity-header i {
        margin-top: 0;
    }
    
    .award-card {
        padding: 1rem;
    }
    
    .award-card h4 {
        font-size: 1rem;
    }
    
    .course-buttons {
        gap: 0.6rem;
    }
    
    .course-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .course-category h6 {
        font-size: 0.9rem;
    }
    
    .courses-modal {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .courses-modal-header {
        padding: 1.5rem;
    }
    
    .courses-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .courses-modal-body {
        padding: 1.5rem;
    }
    
    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .course-link {
        align-self: flex-end;
    }
    
    .education-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .education-meta {
        order: -1;
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .education-logo {
        width: 80px;
        height: 80px;
    }
    
    .major-details li {
        font-size: 0.95rem;
        padding-left: 1.2rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    
    .education-meta {
        order: -1;
        flex-direction: row;
        gap: 1rem;
    }
    
    .education-logo {
        width: 70px;
        height: 70px;
    }
    
    .major-details li {
        font-size: 0.9rem;
        padding-left: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .courses-button-container {
        justify-content: center;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-project-btn,
    .view-report-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .view-project-btn,
    .view-report-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .degree-title {
        font-size: 1rem;
    }
    
    .major-name {
        font-size: 1.1rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    
    .education-logo {
        width: 70px;
        height: 70px;
    }
    
    .degree-title {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
    
    .major-name {
        font-size: 1rem;
    }
    
    .achievements-list li {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .interests-list {
        grid-template-columns: 1fr;
    }
    
    .interests-list li {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .academic-skills-list {
        grid-template-columns: 1fr;
    }
    
    .academic-skills-list li {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .achievements-list li {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .interests-list li {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .academic-skills-list li {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Portfolio Styles */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Project Buttons Container */
.project-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 1rem;
}

.view-project-btn,
.view-report-btn {
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.view-project-btn {
    background: #212C68;
    color: white;
}

.view-project-btn:hover {
    background: #d7b265;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(33, 44, 104, 0.4);
}

.view-report-btn {
    background: #d7b265;
    color: #212C68;
}

.view-report-btn:hover {
    background: #212C68;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(215, 178, 101, 0.3);
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #212C68;
    background: #212C68;
    color: white;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 44, 104, 0.05), rgba(215, 178, 101, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 120px;
    background: linear-gradient(135deg, #212C68, #d7b265);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.project-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.project-subtitle {
    color: #212C68;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.project-date {
    color: #666;
    font-size: 12px;
    margin: 0 0 15px 0;
}

.project-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14px;
}



.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags .tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.view-project-btn {
    background: #212C68;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.view-project-btn:hover {
    background: #0056CC;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 1% auto;
    padding: 0;
    border-radius: 0;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

/* Ensure content is not cut off by rounded corners */
.modal-body {
    border-radius: 0;
    overflow: hidden;
}

.modal-body .modal-content {
    padding: 0 20px 20px 20px;
    margin: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    color: #333;
    background: #f0f0f0;
}

.modal-header {
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    padding: 40px;
    border-radius: 0;
    overflow: hidden;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

.modal-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 500;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.modal-body {
    padding: 40px;
    overflow: visible;
}

.modal-body h3 {
    color: #212C68;
    margin: 30px 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333;
    font-size: 16px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

/* Article modal specific styles */
.modal-body .modal-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 40px 40px 40px;
    line-height: 1.7;
    font-size: 16px;
}

/* Writing modal using courses modal structure */
.courses-modal .modal-content {
    padding: 0;
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
    min-height: 100%;
}

/* List styling for writing modal */
.courses-modal .modal-content ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.courses-modal .modal-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

.courses-modal .modal-content ol {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.courses-modal .modal-content ol li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

/* Make images in writings smaller for better visibility */
.courses-modal .modal-content img {
    max-width: 70% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px auto !important;
    display: block;
}

.courses-modal .courses-modal-body {
    padding: 2rem 2rem 3rem 2rem;
    overflow-y: auto;
    max-height: 75vh;
    min-height: 60vh;
}

.courses-modal .courses-modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
}

.modal-body .modal-content h3:first-child {
    margin-top: 0;
}

.modal-body .modal-content p:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Admin styles removed */

/* Edit Modal Specific Styles */
#editWritingModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#editWritingModal .form-group textarea {
    min-height: 300px;
    resize: vertical;
}

#editWritingModal .modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#editWritingModal .modal-header h2 {
    color: #212C68;
    margin: 0;
}

#editWritingModal .modal-header p {
    color: #666;
    margin: 5px 0 0 0;
}

/* Enhanced Writing Item Hover Effects */
.writing-item {
    transition: all 0.3s ease;
}

.writing-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Button Styles */
.btn-small:not(.danger) {
    background: #212C68;
    color: white;
    border-color: #212C68;
}

.btn-small:not(.danger):hover {
    background: #1a2354;
    border-color: #1a2354;
}

/* Image Upload and Preview Styles */
.image-preview {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-image-btn:hover {
    background: #c82333;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input[type="file"]:focus {
    outline: none;
    border-color: #212C68;
}

input[type="file"]::-webkit-file-upload-button {
    background: #212C68;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #1a2354;
}

/* Content Editor Toolbar */
.content-editor-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Rich Text Editor */
.editor-container {
    position: relative;
}

.rich-editor {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.3s ease;
}

.rich-editor:focus {
    border-color: #212C68;
    box-shadow: 0 0 0 3px rgba(33, 44, 104, 0.1);
}

.rich-editor h3 {
    color: #212C68;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.rich-editor p {
    margin: 10px 0;
    color: #333;
}

.rich-editor ul {
    margin: 10px 0;
    padding-left: 20px;
}

.rich-editor li {
    margin: 5px 0;
    color: #333;
}

.rich-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rich-editor[contenteditable="true"]:empty:before {
    content: "Start writing your article here...";
    color: #999;
    font-style: italic;
}

.editor-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-btn:hover {
    background: #212C68;
    color: white;
    border-color: #212C68;
}

.editor-btn i {
    font-size: 0.8rem;
}

/* Reading count styles */
.writing-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.reading-count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Refresh button animation */
#refreshWritingsBtn:hover i {
    animation: spin 1s linear infinite;
}

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

/* Default Article Styles */
.default-article {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    opacity: 0.9;
}

.default-article .writing-header h4 {
    color: #666;
}

.default-article-note {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
}



.modal-body h3:first-child {
    margin-top: 0;
}

.modal-description p {
    line-height: 1.8;
    color: #555;
    margin: 0;
    white-space: pre-line;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background: #f0f8ff;
    color: #212C68;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e1f0ff;
}

.modal-outcomes ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-outcomes li {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}



/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 16px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px;
    }
}

/* Photography management styles */
.photos-list {
    display: grid;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.photo-item-admin {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #212C68;
}

.photo-preview {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.photo-details {
    flex-grow: 1;
}

.photo-details h4 {
    margin: 0 0 0.5rem 0;
    color: #212C68;
    font-size: 1.1rem;
}

.photo-details p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.photo-category, .photo-date {
    display: inline-block;
    background: #d7b265;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.categories-management {
    max-height: 60vh;
    overflow-y: auto;
}

.categories-list {
    margin-top: 2rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 500;
    color: #212C68;
    text-transform: capitalize;
}

.category-badge {
    background: #d7b265;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex-grow: 1;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.no-content {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-photos-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.no-photos-message h3 {
    color: #212C68;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-photos-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.no-photos-message h3 {
    color: #212C68;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-photos-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.storage-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.storage-info p {
    margin: 0.25rem 0;
}

.storage-warning {
    color: #dc3545;
    font-weight: 500;
}

/* Photo Modal Styles */
.photo-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 5vh auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.photo-modal .modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #212C68, #d7b265);
    color: white;
    border-radius: 12px 12px 0 0;
}

.photo-modal .modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.photo-modal .modal-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.photo-modal .modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.photo-modal-image {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
}

.photo-modal-image img {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.photo-modal-details {
    padding: 1.5rem 2rem 2rem 2rem;
    background: white;
}

.photo-modal-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 1rem 0;
}

.photo-modal-details .photo-date {
    display: inline-block;
    background: #212C68;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal close button */
.photo-modal .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.photo-modal .close:hover {
    opacity: 0.7;
}

/* Responsive photo modal */
@media (max-width: 768px) {
    .photo-modal .modal-content {
        max-width: 95vw;
        margin: 2.5vh auto;
    }
    
    .photo-modal .modal-header {
        padding: 1rem 1.5rem 0.5rem 1.5rem;
    }
    
    .photo-modal .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .photo-modal-image {
        padding: 1rem;
    }
    
    .photo-modal-image img {
        max-height: 50vh;
    }
    
    .photo-modal-details {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}

/* Responsive design for photo gallery */
@media (max-width: 1024px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.5rem;
    }
}

/* Enhanced Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Larger touch targets */
    .nav-menu a {
        padding: 1rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .hero-btn {
        padding: 1.2rem 2rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .overview-card {
        padding: 2.5rem 2rem;
    }
    
    .project-card {
        margin: 1rem 0;
    }
    
    .view-project-btn {
        padding: 1rem 1.5rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Enhanced touch feedback */
    .nav-menu a:active,
    .hero-btn:active,
    .overview-card:active,
    .project-card:active,
    .view-project-btn:active {
        transform: scale(0.95);
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Improved dropdown for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.05);
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
        margin: 0.2rem 0.5rem;
    }
    
    .dropdown-menu a:active {
        background: rgba(215, 178, 101, 0.2);
        transform: scale(0.98);
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-btn,
    .view-project-btn,
    .overview-card,
    .project-card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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

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

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

/* Apply animations to elements */
.overview-card {
    animation: fadeInUp 0.6s ease-out;
}

.overview-card:nth-child(2) {
    animation-delay: 0.1s;
}

.overview-card:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item {
    animation: slideInLeft 0.6s ease-out;
}

.timeline-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) {
    animation: slideInLeft 0.6s ease-out;
}

/* Subtle pulse animation for interactive elements */
.hero-btn:hover,
.view-project-btn:hover {
    animation: pulse 2s infinite;
}

/* Enhanced focus states for accessibility */
.hero-btn:focus,
.view-project-btn:focus,
.nav-menu a:focus {
    outline: 3px solid rgba(215, 178, 101, 0.5);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, a, .project-card, .overview-card, .timeline-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
