:root {
    --border-radius: 42px;
    --border-radius-header: 0px;
    --title-font: 'titlefont';
    --light-color-background: #fff;
    --dark-color-background: #F9FAFB;
    --notch-background-color: #ffffff9f;
    --notch-shadow-color: rgba(0, 0, 0, 0.15);
    --black: #000;
    --light-lblue: #EEF4FF;
    --dark-lblue: #BFDBFE;
    --blue-font-bg: #CDE3FC;
    --project-image-background-color: #DDEAFF;
    --project-design-image-background-color: #ddffe7;
    --social-yt-border-color: #febfbf;
    --social-yt-bg-color: #fcdfdf;
    --social-ttv-border-color: #b483ff;
    --social-ttv-bg-color: #e9ddfc;
    --social-mr-border-color: #1BD96A;
    --social-mr-bg-color: #b9ffd6;
    --mr-bg-color: #e4ffef;
    --contact-dm-background-color: rgba(255, 255, 255, 0.24);
    --contact-dm-border-color: rgba(255,255,255,0.2);
    --blue: #0015ff;
    --yt-red: #ff0000;
    --yt-light-orange: #fc8556;
    --yt-orange: #ff7f7f;
}

:root.darkmode {
    --light-color-background: #131A29;
    --dark-color-background: #1F2937;
    --notch-background-color: #1f1f1f9f;
    --notch-shadow-color: rgba(0, 0, 0, 0.15);
    --black: #fff;
    --light-lblue: #1D1D1E;
    --dark-lblue: #1677ec;
    --blue-font-bg: #23272c;
    --project-image-background-color: #272A2D;
    --project-design-image-background-color: #272A2D;
    --social-yt-border-color: #ff0000;
    --social-yt-bg-color: #262323;
    --social-ttv-border-color: #9146FF;
    --social-ttv-bg-color: #232126;
    --social-mr-border-color: #0fcc5e;
    --social-mr-bg-color: #212623;
    --mr-bg-color: #252726;
    --contact-dm-background-color: rgba(0, 0, 0, 0.24);
    --contact-dm-border-color: rgba(0, 0, 0, 0.2);
    --blue: #727dfd;
}


@font-face {
  font-family: 'titlefont';
  src:  url("opensans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: atlafont;
  src:  url("atlafont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
    transition: 
        background-color 0.24s ease,
        color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        fill 0.24s ease;
}

* a {
    color: var(--blue);
    text-decoration: none;
}

html,body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-color-background);
    scroll-behavior: smooth;
}

section {
    position: relative;
    color: var(--black);
    padding: 4px;
    text-align: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out,transform 0.4s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.underline {
    width: 20px;
    height: 1px;
    background-color: var(--black);
}

#notch-wrapper {
    background-color: var(--light-color-background);
    position: relative;
    height: auto;
    transition: height 0.3s ease;
    transition: background-color 0.24s ease, fill 0.24s ease;
}

#notch {
    position: relative;
    top: 0;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    background: var(--notch-background-color);
    backdrop-filter: blur(6px);
    border-radius: 0px;
    border-start-start-radius: 0;   
    border-start-end-radius: 0;
    border-end-start-radius: 24px;
    border-end-end-radius: 24px;
    padding: 8px 20px;
    box-shadow: 0 2px 10px var(--notch-shadow-color);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition:
        border-radius 0.3s ease,
        transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        top 0.4s ease,
        opacity 0.5s ease;
}

#notch.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

#notch.detached {
    transform: translateX(-50%) translateY(-8px);
    border-start-start-radius: 24px;
    border-start-end-radius: 24px;
    box-shadow: 0 6px 30px var(--notch-shadow-color);
}

#notch .notch-content {
    display: flex;
    gap: 24px;
}

#notch a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2 ease;
}

#notch a:hover {
    color: #0f32a6;
}

#notch img {
    height: 21px;
}

.rotate {
    animation: rotateAnim 0.6 ease;
}

@keyframes rotateAnim {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: var(--title-font);
    font-size: clamp(18px, 5vw, 48px);
    text-align: center;
    margin: 60px auto 40px;
}

.section-title::after {
    content: "";
    display: block;
    height: 4px;
    margin: 8px auto 0;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 2px;
    background: linear-gradient(90deg, #184dfa, #9ac2e7, #184dfa);
    background-size: 400% 100%;
    animation: smoothGradient 6s ease-in-out infinite;
}

.section-title.show::after {
    opacity: 1;
    transform: scaleX(1.1);
    animation: lineStretch 0.5s ease-out forwards, smoothGradient 6s ease-in-out infinite;
}

@keyframes lineStretch {
    0%   { transform: scaleX(0); }
    60%  { transform: scaleX(1.1); }
    100% { transform: scaleX(1); }
}

@keyframes smoothGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#header {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

#header .video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: var(--border-radius-header);
    border-bottom-right-radius: var(--border-radius-header);
    transition: border-radius 0.2s ease-out;
    background-clip: url("footage/cloudtrans.mp4");
}

#header .img {
    position: absolute;
    max-width: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#about {
    background-color: var(--light-color-background);
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding-bottom: 100px;
}

.about-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 100%;
    justify-content: center;
}

.about-card {
    position: relative;
    background: var(--light-lblue);
    width: clamp(420px, 30vw, 540px);
    height: auto;
    border: 2px solid var(--dark-lblue);
    box-shadow: 9px 9px 18px rgba(0,0,0,0.06);
    border-radius: 30px;
    padding: 12px;
    text-align: left;
    overflow: hidden;
}

.about-card h1,
.about-card h2,
.about-card h3 {
    margin: 0;
    margin-bottom: 8px;
}

.about-card h3 {
    font-family: var(--title-font);
    font-size: xx-large;
    font-weight: 200;
}

.about-card b {
    display: block;
    margin-bottom: 8px;
}

.about-card p {
    margin: 0;
}

.about-card img {
    float: right;
    max-width: 35%;
    height: auto;
    margin: 0 0 12px 12px;
    border-radius: 8px;
    object-fit: cover;
    shape-outside: margin-box;
}

.about-card::after {
    content: "";
    display: table;
    clear: both;
}

#socials {
    background-color: var(--dark-color-background);
    padding-bottom: 100px;
}

.title-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.title-row img {
    height: 3em;
    width: auto;
}

.title-row :hover {
    cursor: pointer;
}

.social-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 100%;
    justify-content: center;
}

.social-card {
    position: relative;
    background: var(--light-lblue);
    width: clamp(420px, 30vw, 540px);
    box-shadow: 9px 9px 18px rgba(0,0,0,0.06);
    height: auto;
    border: 2px solid var(--dark-lblue);
    border-radius: 30px;
    padding: 12px;
    text-align: left;
    overflow: hidden;
}

.social-card img {
    max-width: 4vw;
}

.social-card h1,
.social-card h2,
.social-card h3 {
    margin: 0;
    margin-bottom: 8px;
}

.social-card h3 {
    font-family: var(--title-font);
    font-size: xx-large;
    font-weight: 200;
}

.social-card b {
    display: block;
}

.social-card p {
    margin: 0;
    margin-bottom: 8px;
}

.scl-yt {
    border: none;
    background: linear-gradient(
        145deg,
        var(--social-yt-bg-color),
        rgba(255,255,255,0.04)
    );
    width: clamp(420px, 30vw, 480px);
}

.scl-yt::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(
        180deg,
        var(--yt-red),
        var(--yt-light-orange),
        var(--yt-orange)
    );
    clip-path: ellipse(60% 70% at 30% 50%);
}


.scl-yt a {
    color: #ff0000;
}

.scl-ttv {
    border: none;
    background: linear-gradient(
        145deg,
        var(--social-ttv-bg-color),
        rgba(255,255,255,0.04)
    );
    width: clamp(420px, 36vw, 540px);
}

.scl-ttv a {
    color: #9146FF;
}

.scl-ttv::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(
        180deg,
        #d0b1ff,
        #7c24ff,
        #c197ff
    );
    clip-path: ellipse(60% 70% at 30% 50%);
}

.scl-mr {
    border: none;
    background: linear-gradient(
        145deg,
        var(--social-mr-bg-color),
        rgba(255,255,255,0.04)
    );
}

.scl-mr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(
        180deg,
        #1BD96A,
        #00a846,
        #71f7a9
    );
    clip-path: ellipse(60% 70% at 30% 50%);
}

:root.darkmode .scl-yt::before,
:root.darkmode .scl-ttv::before,
:root.darkmode .scl-mr::before {
    background: none;
}

.social-card-yt,
.social-card-ttv {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.social-card-yt img,
.social-card-ttv img {
    max-width: 42%;
    max-height: 42%;
    height: auto;
    margin: 18px;
    border-radius: 20px;
    transition: scale 0.18s ease;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.08));
}

.social-card-yt img:hover,
.social-card-ttv img:hover {
    cursor: pointer;
    scale: 112%;
}

.social-card-yt a,
.social-card-ttv a {
    color: #000;
    flex: 1;
    display: block;
}

.social-card-yt.short img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    max-height: auto;
    max-width: 18%;
}

.social-card-yt.mr img {
    max-height: auto;
    max-width: 30%;
}

#projects {
    background-color: var(--light-color-background);
    padding-bottom: 100px;
}

.project-gallery {
    display: grid;
    flex-wrap: grid;
    /*grid-template-columns: repeat(2, 1fr);*/
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 40px;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    background: var(--light-lblue);
    width: 100%;
    border: 2px solid var(--dark-lblue);
    box-shadow: 9px 9px 18px rgba(0,0,0,0.06);
    border-radius: 30px;
    text-align: left;
    overflow: hidden;
    display: flex;
}

.project-design {
    background: var(--mr-bg-color);
    border: 2px solid var(--social-mr-border-color);
}

.project-image {
    background-color: var(--project-image-background-color);
    width: 36%;
    height: 100%;
    float: left;
    margin-right: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-design-image {
    background-color: var(--social-mr-bg-color);
}

.project-text {
    padding: 12px;
    flex: 1;
    padding-bottom: 64px;
}

.project-language-icons {
    position: absolute;
    bottom: 12px;
    left: calc(36% + 3vw + 12px);;
    right: 12px;
    display: flex;
    gap: 10px;
    height: 30px;
}

.project-image img {
    width: 100%;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.08));
}

.project-card h3 {
    font-family: var(--title-font);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 200;
    margin: 0;
    margin-top: 1vw;
    margin-bottom: 8px;
}

.project-card p,a {
    font-size: 17px;
    margin-bottom: 4px;
}

.project-card p {
    margin-bottom: 12px;
}

.project-card a {
    display: block;
    width: fit-content;
    text-decoration: none;
    color: var(--blue);
    background-color: var(--blue-font-bg);
    padding: 6px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 100px;
}

.zaheer {
    font-family: 'atlafont';
    vertical-align: middle;
}

#contact {
    background-color: var(--dark-color-background);
    padding-bottom: 100px;
}

.contact-fields { 
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 100%;
    justify-content: center;
}

.contact-dm {
    position: relative;
    background: var(--light-lblue);
    max-width: clamp(420px, 36vw, 780px);
    box-shadow: 9px 9px 18px rgba(0,0,0,0.06);
    max-height: 780px;
    width: auto;
    height: auto;
    border: 2px solid var(--dark-lblue);
    border-radius: 30px;
    padding: 12px;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

.contact-dm h3 {
    font-family: var(--title-font);
    font-size: xx-large;
    font-weight: 200;
}

.contact-dm input,
.contact-dm textarea {
    max-width: 540px;
    max-height: 320px;
    min-height: 24px;
    min-width: 360px;
    background: var(--contact-dm-background-color);
    border: 1px solid var(--contact-dm-border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    resize: both;
    color: var(--black);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.contact-dm button {
    background: var(--contact-dm-background-color);
    border: 1px solid var(--contact-dm-border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    color: var(--black);
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.contact-dm button:hover {
    background: rgba(255, 255, 255, 0.72);
}

.contact-dm button {
    margin-top: 24px;
}

.contact-dm p {
    display: block;
    margin-top: 24px;
    margin-bottom: 3px;
    text-align: left;
}

.contact-card {
    position: relative;
    background: var(--light-lblue);
    height: auto;
    border: 2px solid var(--dark-lblue);
    box-shadow: 9px 9px 18px rgba(0,0,0,0.06);
    border-radius: 30px;
    padding: 12px;
    text-align: left;
    overflow: hidden;
}

.contact-card h1,
.contact-card h2,
.contact-card h3 {
    margin: 0;
    margin-bottom: 8px;
}

.contact-card h3 {
    font-family: var(--title-font);
    font-size: xx-large;
    font-weight: 200;
}

.contact-card b {
    display: block;
    margin-bottom: 8px;
}

.contact-card p {
    margin: 0;
}

.contact-card a {
    display: block;
    color: var(--blue);
    text-decoration: none;
}

.contact-card::after {
    content: "";
    display: table;
    clear: both;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-links-link {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.contact-links-link img {
    height: 30px;
}

.contact-links-link a {
    font-size: 20px;
    color: var(--blue);
    text-decoration: none;
}


#footer {
    background-color: var(--dark-color-background);
}

.site-footer-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.site-footer-container p {
    margin: 0;
    line-height: 1.2;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
  
.site-footer-container a {
    color: #0084ff;
    text-decoration: none;
    margin: 0 4px;
}
  
.site-footer-container a:hover {
    color: #62a7f7;
}

@media (max-width: 1100px) {
    .project-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 660px) {
    #notch {
        display: none;
    }
}

@media (max-width: 780px) {
    #notch {
        display: none;
    }

    .project-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .project-card {
        display: flex;
        flex-direction: column;
    }

    .project-image {
        float: none;
        width: 100%;
        margin: 0;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .project-image img {
        width: 30%;
        height: auto;
        max-height: unset;
        padding: 12px;
        object-fit: contain;
    }

    .project-text {
        padding: 16px;
        margin-bottom: 64px
    }

    .project-language-icons {
        margin-top: 12px;
    }

    .project-language-icons img {
        width: 36px;
        height: 36px;
    }
}