@font-face {
    font-family: 'Basement Grotesque';
    src: url('fonts/basementgrotesque/BasementGrotesque-Black_v1.202.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/spacegrotesk/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/ibmplexmono/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfairdisplay/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: #09090b;
    background-image: url('background/background.svg');
    background-size: cover;
    background-position: left fixed;
    background-repeat: no-repeat;
    color: #e4e4e7;
    height: 100vh;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 80px;
    position: relative;
    padding-bottom: 80px;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    padding-bottom: 30px;
    z-index: 100;
}

.logo {
    display: block;
    width: 35px;
    height: 35px;
    background-image: url('logo/zaail.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.desktop-icons {
    flex-direction: column;
}

.mobile-icons {
    display: none; 
    flex-direction: row;
    justify-content: center;
    margin-bottom: 15px;
}

.social-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* CHANGED: New top-nav wrapper to handle positioning for both desktop menu and mobile icon */
.top-nav {
    position: absolute;
    top: 35px;
    right: 50px;
    z-index: 105;
}

/* CHANGED: Desktop menu layout */
.desktop-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* CHANGED: Overriding .heading class specifically inside nav links so they sit inline and are clickable */
.desktop-menu .heading {
    display: inline-block;
    margin-bottom: 0;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-menu .heading:hover {
    color: #fff;
}

/* CHANGED: Hidden on desktop by default, removed old absolute positioning */
.menu-icon {
    display: none;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.menu-icon img {
    width: 30px;
    height: 30px;
}

.menu-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.icon-x { background-image: url('icons/xtwitter.svg'); }
.icon-ig { background-image: url('icons/instagram.svg'); }
.icon-in { background-image: url('icons/linkedin.svg'); }
.icon-git { background-image: url('icons/github.svg'); }
.icon-menu { background-image: url('icons/menu.svg'); }

header {
    width: 90%;
    max-width: 1200px;
    padding: 20px 30px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14.4px;
    transition: color 0.3s ease;
}

nav a:hover { 
    color: #fff; 
}

.heading {
    font-family: 'IBM Plex Mono';
    font-size: 19.2px;
    font-weight: 300;
    color: #ffffff;
    opacity: 0.6;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.hero {
    text-align: left; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    margin: auto; 
    width: 100%;
    max-width: 950px;
}

.hero h1 {
    font-family: 'Basement Grotesque';
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 3px;
    margin-top: 0px;
    background-color: #ffffff;
    /* text-transform: capitalize; */
    opacity: 0.6;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 19.2px;
    font-weight: 300;
    text-align: justify;
    color: #ffffff;
    opacity: 0.6;
    line-height: 1.6;
}

/* Vertical Email Styles */
.right-email {
    position: fixed;
    bottom: 0;
    right: 50px; /* Menu icon ki alignment ke hisaab se */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 100;
}

.right-email a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #a1a1aa;
    text-decoration: none;
    letter-spacing: 2px;
    /* Yeh property text ko vertical kar deti hai */
    writing-mode: vertical-rl; 
    transform: rotate(180deg);
    transition: color 0.3s ease, transform 0.3s ease;
}

.right-email a:hover {
    color: #fff;
    transform: rotate(180deg);
}

/* Yeh neechay aik clean decorative line banayega */
.right-email::after {
    content: "";
    width: 1px;
    height: 90px;
    background-color: #a1a1aa;
    opacity: 0.3;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px 20px;
    text-align: center;
    color: #52525b;
    font-size: 15px;
    width: 100%;
    z-index: 10;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: 4px;
    opacity: 0.6;
    font-size: 17.6px;
}

@media (max-width: 768px) {
    body {
        background-image: url('background/backgroundm.svg');
        background-position: center fixed;
        padding-left: 0;
        padding-top: 70px;
    }
    
    .sidebar {
        height: 56px;
        width: 100%;
        bottom: auto;
        flex-direction: row;
        padding: 0 16px;
    }

    .desktop-icons {
        display: none !important;
    }

    .mobile-icons {
       display: flex !important;
    }

    .social-icons {
       gap: 20px;
    }
    
    .social-icon {
       width: 22px;
       height: 22px;
    }

    /* CHANGED: Hide desktop menu links on mobile */
    .desktop-menu {
        display: none;
    }

    /* CHANGED: Show menu icon on mobile and lock it to the top right */
    .menu-icon {
        display: block;
        position: fixed; 
        top: 13px; 
        right: 20px;
        z-index: 105;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .heading {
        font-size: 16px;
    }

    .hero {
        padding: 0 35px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 38.4px;
    }

    .right-email {
        display: none;
    }

    footer {
        font-size: 12px;
    }

    .signature {
        font-size: 12px;
    }
}
