/* ==================== CSS Variables ==================== */
:root {
    --bg-primary: #F5F5F5;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent-color: #080333;
    --accent-hover: #2C3E50;
    --accent-light: #5D6D7E;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-color: #E0E0E0;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

body.dark-theme {
    --bg-primary: #1E2022;
    --bg-secondary: #2D3032;
    --bg-card: #2D3032;
    --text-primary: #F1F1F1;
    --text-secondary: #C7C7C7;
    --text-muted: #999999;
    --accent-color: #E67E22;
    --accent-hover: #D35400;
    --accent-light: #F39C12;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --border-color: #3A3A3A;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(45, 48, 50, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Bootstrap Navbar Customization ==================== */
.navbar-custom {
    background-color: var(--nav-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-color) !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand.logo:hover {
    transform: scale(1.05);
}

.navbar-brand.logo i {
    font-size: 2rem;
}

/* Hamburger Menu Styling */
.navbar-toggler {
    border: 2px solid var(--accent-color);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 3, 51, 0.25);
}

body.dark-theme .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(8, 3, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

body.dark-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(230, 126, 34, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(8, 3, 51, 0.05);
}

body.dark-theme .navbar-nav .nav-link:hover,
body.dark-theme .navbar-nav .nav-link.active {
    background-color: rgba(230, 126, 34, 0.1);
}

/* Search Bar in Navbar */
.nav-search {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.nav-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-search-input:focus {
    border-color: var(--accent-color);
}

.nav-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Icon Buttons in Navbar */
.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1);
    color: #FFFFFF;
}

.github-btn-nav:hover {
    transform: scale(1.1) rotate(-15deg);
}

.theme-toggle-nav:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Mobile Menu Adjustments */
@media (max-width: 767px) {
    .navbar-collapse {
        background-color: var(--bg-card);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        gap: 8px;
    }
    
    .nav-search {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .nav-buttons {
        justify-content: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid var(--border-color);
    }
}

/* ==================== Hero Section ==================== */
.hero-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Responsive Hero Search Bar */
.hero-search-container {
    margin-bottom: 35px;
}

.hero-search-input {
    padding: 18px 25px;
    font-size: 1.05rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    border-radius: 15px;
}

.hero-search-btn {
    padding: 18px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    background: #FFFFFF;
    color: var(--accent-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
}

/* Mobile: Stack search input and button */
@media (max-width: 767px) {
    .hero-search-input {
        border-radius: 15px !important;
        margin-bottom: 10px;
    }
    
    .hero-search-btn {
        width: 100%;
        border-radius: 15px !important;
    }
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.stat-item i {
    font-size: 1.4rem;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hero-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.hero-image-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #FFFFFF;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Hero Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-images {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}

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

.section-alt {
    background-color: var(--bg-secondary);
}

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

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

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

.btn-refresh {
    padding: 12px 25px;
    background: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.btn-refresh:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== Categories Grid ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color);
}

.category-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-card img {
        width: 80px;
        height: 80px;
    }
}

/* ==================== Areas Grid ==================== */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.area-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--border-color);
}

.area-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.area-card .flag-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.area-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .area-card {
        padding: 20px 15px;
    }
}

/* ==================== Meals Grid ==================== */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.meal-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.meal-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.meal-card-content {
    padding: 20px;
}

.meal-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    min-height: 60px;
}

.meal-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meal-tag {
    background: var(--accent-color);
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.meal-card-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.meal-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
    .meals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .meals-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== No Results ==================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==================== Loading Overlay ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.loading-overlay.show {
    display: flex;
}

/* New Frying Pan Loader */
.loader {
    position: relative;
    width: 120px;
    height: 14px;
    border-radius: 0 0 15px 15px;
    background-color: #3e494d;
    box-shadow: 0 -1px 4px #5d6063 inset;
    animation: panex 0.5s linear alternate infinite;
    transform-origin: 170px 0;
    z-index: 10;
    perspective: 300px;
}

.loader::before {
    content: '';
    position: absolute;
    left: calc(100% - 2px);
    top: 0;
    z-index: -2;
    height: 10px;
    width: 70px;
    border-radius: 0 4px 4px 0;
    background-repeat: no-repeat;
    background-image: linear-gradient(#6c4924, #4b2d21), linear-gradient(#4d5457 24px, transparent 0), linear-gradient(#9f9e9e 24px, transparent 0);
    background-size: 50px 10px, 4px 8px, 24px 4px;
    background-position: right center, 17px center, 0px center;
}

.loader::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -2;
    transform: translate(-50%, -20px) rotate3d(75, -2, 3, 78deg);
    width: 55px;
    height: 53px;
    background: #fff;
    background-image: radial-gradient(circle 3px, #fff6 90%, transparent 10%), radial-gradient(circle 12px, #ffc400 90%, transparent 10%), radial-gradient(circle 12px, #ffae00 100%, transparent 0);
    background-repeat: no-repeat;
    background-position: -4px -6px, -2px -2px, -1px -1px;
    box-shadow: -2px -3px #0002 inset, 0 0 4px #0003 inset;
    border-radius: 47% 36% 50% 50% / 49% 45% 42% 44%;
    animation: eggRst 1s ease-out infinite;
}

@keyframes eggRst {
    0%, 100% {
        transform: translate(-50%, -20px) rotate3d(90, 0, 0, 90deg);
        opacity: 0;
    }
    10%, 90% {
        transform: translate(-50%, -30px) rotate3d(90, 0, 0, 90deg);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -40px) rotate3d(85, 17, 2, 70deg);
    }
    75% {
        transform: translate(-50%, -40px) rotate3d(75, -3, 2, 70deg);
    }
    50% {
        transform: translate(-55%, -50px) rotate3d(75, -8, 3, 50deg);
    }
}

@keyframes panex {
    0% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

.loading-overlay p {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
}

.modal-container {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: var(--bg-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.modal-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.modal-recipe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
}

.modal-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.modal-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    background-color: var(--bg-primary);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ingredients-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.instructions-text {
    line-height: 1.9;
    color: var(--text-secondary);
}

.instructions-text ol {
    padding-left: 25px;
}

.instructions-text ol li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    padding-left: 10px;
}

.instructions-text p {
    color: var(--text-secondary);
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

.youtube-btn:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 30px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border-color: var(--accent-color);
}

@media (max-width: 767px) {
    .modal-container {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-recipe-title {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* ==================== About Section ==================== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.about-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.about-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.about-card-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.about-card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.features-list strong {
    color: var(--accent-color);
}

.developer-content {
    text-align: center;
}

.developer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.developer-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.developer-role {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.developer-skills {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.social-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
}

@media (max-width: 991px) {
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-card {
        padding: 30px;
    }
}

@media (max-width: 575px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-card {
        padding: 25px;
    }
}

/* ==================== Contact Section ==================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(8, 3, 51, 0.1);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .contact-container {
        padding: 30px 25px;
        margin: 0 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

/* ==================== Utility Classes ==================== */
.hidden {
    display: none !important;
}

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

/* ==================== END OF STYLESHEET ==================== */