@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

  
.navbar {
    margin-left:240px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: transparent;
    /* border-bottom: 1px solid lightgray; */
}

.navbar h4 {
    margin: 0;
    color : #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    scrollbar-color: #383838 #21212100;
}

body {
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
}

body a {
    text-decoration: none;
    color: inherit;
}


.sidebar {
    width: 240px;
    background: #0A0A0A;
    border-right: 1px solid #1A1A1A;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: 0.3s;
    z-index: 100;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    width: 120px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #A0A0A0;
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size:13px;
}

.nav-item:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.nav-item.active {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.nav-item svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.main-content {
    margin-left: 240px;
    padding: 10px;
    max-width: auto;
    margin-left: 240px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1A1A1A;
}

.title {
    font-size: 24px;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin: 20px;
}

.tool-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #333;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    background: #333;
    border-radius: 8px;
    padding: 8px;
}

.tool-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-description {
    color: #A0A0A0;
    font-size: 14px;
    line-height: 1.5;
}

.user-menu {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 192px;
    padding: 12px;
    background: #1A1A1A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu:hover {
    background: #252525;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    background: #333;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.user-menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 8px;
    width: 200px;
    padding: 8px;
    display: none;
    margin-bottom: 10px;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.menu-item:hover {
    background: #2A2A2A;
    border-radius: 4px;
}


.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
}
.btn-primary {
    background: #ffffff;
    color: #000000;
}
.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333;
}


.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.close-sidebar {
    display: none;
    position: fixed;
    top: 20px;
    left: 260px; /* Adjust based on sidebar width */
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0px;
        flex-direction: column;
        padding : 40px 10px 10px 10px;
    }
    #navbar {
        left: 60px;
    }
    .editor-section, .preview-section {
        margin-top: 20px;
        width: 100%;
        resize: none;
        overflow: visible;
    }
    
    .hamburger {
        display: block;
    }
    .generate-btn {
        display: none;
    }
}

.generate-btn {
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

.hamburger div:first-child {
    margin-top: 0;
}

.hamburger div:last-child {
    margin-bottom: 0;
}


.notification {
    position: fixed;
    top: 10px;
    right: -100%; /* Start off-screen */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 10px; /* Some padding */
    z-index: 10000; /* Sit on top */
    transition: right 0.5s; /* Slide in effect */
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}





/* Rest of the styles remain unchanged until work-section related styles */

.work-section {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    max-width: 100%;
}
.work-grid-container {
    overflow-x: hidden;
    margin: 0 auto;
}
.work-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 20px;
    padding: 10px;
}
.work-block {
    background: #2A2A2A;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.work-block:hover {
    background: #3A3A3A;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.work-block:nth-child(n+5) {
    display: none; /* Hide blocks after the first 4 */
}
.image-container {
    height: 180px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 10px;
}
.image-container img {
   
    height: 100%;
    
}
.view-assets-section {
    display: none;
}

@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .work-section {
        display: none;
    }
    .view-assets-section {
        display: block;
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .navbar {
        display:none;
    }
}

.welcome-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.welcome-text {
    flex: 1;
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.welcome-animation {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 300px;
    background: #1A1A1A;
    border-radius: 12px;
    padding: 12px;
}

.animation-block {
    flex: 1;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.welcome-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.welcome-image.active, .welcome-video.active {
    display: block !important;
}

@media (max-width: 1200px) {
    .welcome-content {
        gap: 20px;
    }
    
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .welcome-animation {
        min-height: 250px;
    }
}

@media (max-width: 992px) {
    .welcome-content {
        flex-direction: column;
    }

    .welcome-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .welcome-animation {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        margin-top: 20px;
        padding: 20px !important;
    }

    .welcome-text h1 {
        font-size: 1.75rem;
    }

    .welcome-animation {
        display: none;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        margin-top: 20px;
        padding: 16px !important;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .welcome-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
