/* Custom styles for Kadence Left Sidebar theme */

/* Global Styles */
:root {
    --sidebar-width: 300px;
    --content-width: calc(100% - var(--sidebar-width));
    --primary-color: #c5a47e;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #1a1a1a;
    --bg-darker: #222222;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 30px;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #000000 transparent;
}

.left-sidebar::-webkit-scrollbar {
    width: 3px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background-color: #000000;
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #333333;
}

.sidebar-logo {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
}

.sidebar-menu {
    margin-top: 100px;
    margin-bottom: 40px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    border-bottom: 1px solid #323232;
    margin: 15px 0 10px 0;
    padding: 0 0 10px 0;
}

.sidebar-menu ul li a {
    transition: all 0.3s ease;
    display: block;
    position: relative;
    border-radius: 5px;
    font-family: 'Teko', sans-serif;
    font-weight: 400;
    color: #999;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-decoration: none;
}

.sidebar-menu ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #c5a47e;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu ul li a:hover:before,
.sidebar-menu ul li a.active:before {
    transform: scaleY(1);
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
    color: #c5a47e;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

.sidebar-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.sidebar-info h4 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sidebar-info p i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

/* Main Content Area */
main {
    display: block;
    min-width: 0;
    margin-left: var(--sidebar-width);
    width: var(--content-width);
    position: relative;
    min-height: 100vh;
}

/* Update site-content to use main */
.site-content {
    margin-left: 0;
    width: 100%;
}

/* Particle background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
    line-height: 1.2;
}

.typed-cursor {
    color: var(--primary-color);
    font-weight: 600;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero-social li a:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.02);
}

.about-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
}

.about-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-info {
    margin-top: 40px;
}

.about-info ul {
    list-style: none;
    padding: 0;
}

.about-info ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.about-info ul li strong {
    color: var(--text-color);
    margin-right: 10px;
    font-weight: 600;
}

/* Resume Section */
.resume-section {
    padding: 100px 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.resume-block {
    margin-bottom: 50px;
}

.resume-block h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

.resume-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    position: relative;
}

.resume-item:before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
}

.resume-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.resume-item h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.resume-item .date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.resume-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Skills */
.skill-item {
    margin-bottom: 30px;
}

.skill-item h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
}

.progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-color);
    height: 100%;
    border-radius: 3px;
    position: relative;
}

.progress-bar:after {
    content: attr(data-progress);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Services Section */
.services-section {
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.02);
}

.service-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 50px;
}

.portfolio-filters {
    margin-bottom: 40px;
}

.portfolio-filters ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.portfolio-filters ul li a {
    color: var(--text-color);
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.portfolio-filters ul li a:hover,
.portfolio-filters ul li a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Reviews Section */
.reviews-section {
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.02);
}

.review-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
}

.review-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.review-author h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.review-author p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 50px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-info {
    padding: 40px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-info p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details p i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
}

/* Custom buttons */
.btn-custom {
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--bg-dark);
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.mobile-logo {
    max-width: 120px;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-logo .site-title {
    font-size: 20px;
    margin: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 1002;
    transition: transform 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
}

.mobile-drawer.active {
    transform: translateX(280px);
    visibility: visible;
}

/* Add overlay when drawer is active */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.drawer-logo img {
    max-height: 50px;
    width: auto;
}

.drawer-menu {
    flex: 1;
}

.drawer-menu .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu .nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.drawer-menu .nav-menu a:hover,
.drawer-menu .nav-menu a.active {
    color: #c5a47e;
    background: rgba(197, 164, 126, 0.1);
    border-left-color: #c5a47e;
}

.drawer-info {
    margin: 30px 0;
}

.drawer-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.drawer-info .info-item i {
    margin-right: 10px;
    color: #c5a47e;
}

.drawer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.drawer-social a:hover {
    background: #c5a47e;
    color: var(--text-color);
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .mobile-header {
        display: block;
    }

    .left-sidebar {
        display: none;
    }

    #main {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }

    body.drawer-open {
        overflow: hidden;
    }
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .hero-section,
    .about-section,
    .resume-section,
    .services-section,
    .portfolio-section,
    .reviews-section,
    .contact-section {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .portfolio-filters ul {
        justify-content: center;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    
    .hero-social {
        gap: 10px;
    }
    
    .hero-social li a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
#main.loading {
    position: relative;
    min-height: 200px;
}

#main.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    margin: 20px 0;
}

/* Active Menu Item */
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Left Sidebar Menu */
.left-sidebar .main-navigation {
    margin-top: 2rem;
}

.left-sidebar .main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar .main-navigation li {
    margin-bottom: 0.5rem;
}

.left-sidebar .main-navigation a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.left-sidebar .main-navigation a:hover,
.left-sidebar .main-navigation a:focus,
.left-sidebar .main-navigation .current-menu-item > a,
.left-sidebar .main-navigation .current_page_item > a,
.left-sidebar .main-navigation a.active {
    color: #c5a47e;
    background: rgba(197, 164, 126, 0.1);
    border-left-color: #c5a47e;
}

/* Mobile Menu Styles */
.mobile-drawer .main-navigation {
    margin-top: 2rem;
}

.mobile-drawer .main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-drawer .main-navigation li {
    margin-bottom: 0.5rem;
}

.mobile-drawer .main-navigation a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-drawer .main-navigation a:hover,
.mobile-drawer .main-navigation a:focus,
.mobile-drawer .main-navigation .current-menu-item > a,
.mobile-drawer .main-navigation .current_page_item > a,
.mobile-drawer .main-navigation a.active {
    color: #c5a47e;
    background: rgba(197, 164, 126, 0.1);
    border-left-color: #c5a47e;
}

/* Site Footer */
.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    background-color: var(--bg-darker);
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.site-info {
    text-align: center;
    font-size: 14px;
}

.site-info .sep {
    margin: 0 10px;
    color: var(--text-muted);
}

/* Update main content area to accommodate footer */
#main {
    min-height: calc(100vh - 200px); /* Adjust based on footer height */
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}

/* Mobile Responsive Footer */
@media (max-width: 991px) {
    .site-footer {
        margin-top: 40px;
        padding: 20px 0;
    }

    .site-info {
        font-size: 12px;
    }
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #c5a47e;
}

.footer-widget p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
} 