* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@font-face {
    font-family: 'ajob';
    src: url('../fonts/ajob2.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #FFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('../assets/abc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.dark-mode {
    color: #E0E0E0;
    background-image: url('../assets/abc.jpg');
}

@media (orientation: portrait) {
    body {
        background-image: url('../assets/def2.png');
    }
    body.dark-mode {
        background-image: url('../assets/def2.png');
    }
}

/* Glassmorphic Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    max-width: 100%;
}

body.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navigation */
.nav {
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav__logo-img {
    height: 40px;
}

.nav__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    color: white;
}

.nav__item {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    font-size: 1rem;
    color: white;
}

body.dark-mode .nav__item {
    color: #E0E0E0;
}

.nav__item:hover {
    color: #515151;
}

body.dark-mode .nav__item:hover {
    color: #1aa3f1;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: #0B0B0B;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .theme-toggle {
    color: #E0E0E0;
    background: rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta {
    backdrop-filter: blur(30px);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark-mode .cta {
    background: rgba(255, 255, 255, 0.2);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

body.dark-mode .cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cta.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark-mode .cta.outline {
    color: #E0E0E0;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .cta.outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    height: auto;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    padding: 60px 2rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 2.5rem;
    flex: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within itself */
    min-height: calc(100vh - 120px); /* Ensure content takes full height minus padding */
    margin-top: 20px;
}

.hero-image {
    width: 45%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    align-self: center;
    margin-left: auto;
    filter: drop-shadow(5px 5px 2px rgba(0, 0, 0, 0.3));
}

body.dark-mode .hero-image {
    filter: drop-shadow(5px 5px 2px rgba(255, 255, 255, 0.2));
}

.hand-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.hero-intro {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-title {
    font-family: ajob, Impact, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: white;
}

body.dark-mode .hero-title {
    color: #E0E0E0;
}

.hero-subtitle {
    font-family: ajob, Impact, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #FFF;
}

body.dark-mode .hero-subtitle {
    -webkit-text-stroke: 1px #E0E0E0;
}

.hero-location {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: white;
    font-weight: 300;
}

body.dark-mode .hero-location {
    color: #A0A0A0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Course Grid Styling */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.course-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.dark-mode .course-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .course-box:hover {
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.course-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

body.dark-mode .course-title {
    color: #E0E0E0;
}

.course-description {
    font-family: Ador-Noirrit, Impact, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: white;
    flex-grow: 1;
}

body.dark-mode .course-description {
    color: #B0B0B0;
}

.course-meta {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
    font-size: 13px;
    color: white;
}

body.dark-mode .course-meta {
    color: #A0A0A0;
}

.course-icon {
    margin-right: 5px;
    font-style: normal;
}

.course-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #0B0B0B;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-mode .course-button {
    background: rgba(0, 0, 0, 0.3);
    color: #E0E0E0;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.course-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .course-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 20px;
    text-align: center;
}

.about h2 {
    font-family: 'ajob', Impact, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

body.dark-mode .about h2 {
    color: #E0E0E0;
}

body.dark-mode .about h2::after {
    background: #1aa3f1;
}

.about h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: white;
    font-weight: 600;
}

body.dark-mode .about h3 {
    color: #E0E0E0;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: white;
    margin-bottom: 1rem;
}

body.dark-mode .about p {
    color: #B0B0B0;
}

.about-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    color: white;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-mode .about-features li {
    color: #E0E0E0;
    background: rgba(0, 0, 0, 0.2);
}

.about-features li::before {
    content: '✔';
    margin-right: 10px;
    font-size: 1.2rem;
    color: #3498db;
}

body.dark-mode .about-features li::before {
    color: #1aa3f1;
}

.about-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 90px;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: 'ajob', Impact, sans-serif;
    font-size: 2.5rem;
    text-decoration: none;
    color: #FFF;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .mobile-menu a {
    color: #E0E0E0;
}

.mobile-menu a svg {
    width: 40px;
    height: 40px;
}

.mobile-menu .contact-info {
    bottom: 3rem;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.mobile-menu .logo {
    margin-bottom: 1rem;
}

.mobile-menu .email,
.mobile-menu .phone {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

body.dark-mode .mobile-menu .email,
body.dark-mode .mobile-menu .phone {
    color: #A0A0A0;
}

.mobile-menu .cta {
    background: rgba(11, 11, 11, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

body.dark-mode .mobile-menu .cta {
    background: rgba(255, 255, 255, 0.2);
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-icons a {
    border: none;
    width: auto;
    padding: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFF;
    transition: all 0.3s ease;
}

body.dark-mode .hamburger span {
    background-color: #E0E0E0;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #11a6eb;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #1aa3f1;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #0a7cff;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #0a7cff;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1aa3f1 rgba(255, 255, 255, 0.1);
}

body.dark-mode * {
    scrollbar-color: #1aa3f1 rgba(0, 0, 0, 0.2);
}

/* Visitor stats container */
.visitor-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    font-size: 14px;
    max-width: 350px;
    flex-wrap: wrap;
    color: white;
    padding: 8px;
}

.count-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.count-icon {
    display: inline-flex;
    margin-right: 5px;
    align-items: center;
}

.count-label {
    margin-right: 5px;
}

.count-value {
    font-weight: bold;
}

.count-separator {
    color: #aaaaaa;
    margin: 0 5px;
}

.icon-users, .icon-calendar {
    vertical-align: middle;
}

/* Frosted Glass for Buttons */
.glass-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
    color: #fff;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

body.dark-mode .glass-button {
    background: rgba(50, 50, 50, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .glass-button:hover {
    background: rgba(50, 50, 50, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex;
    }

    .nav {
        padding: 0.5rem 1rem;
    }

    .nav__logo-img {
        height: 30px;
    }

    .theme-toggle {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        padding: 60px 1rem 2rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        min-height: auto; /* Override min-height for mobile */
    }

    .hero-image {
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-intro, .hero-location {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .about {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about h3 {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 1rem;
    }

    .about-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .about-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .menu-links {
        height: auto;
        flex-wrap: wrap;
    }

    .menu-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .ad-container {
        min-height: 50px;
    }

    .sticky-footer-close {
        padding: 12px 15px;
    }

    .sidebar-ad {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 20px 1rem;
        gap: 20px;
    }

    .course-box {
        min-width: 0;
    }

    .visitor-stats {
        flex-direction: column;
        gap: 5px;
    }

    .count-separator {
        display: none;
    }

    .about-features {
        gap: 0.75rem;
    }

    .about-features li {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .sidebar-ad {
        display: block;
    }
}
