* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0e27;
    --gray: #1a1f3a;
    --dark-card: #13182e;
    --white: #f8f8f2;
    --blue: #00d9ff;
    --accent: #50fa7b;
    --purple: #bd93f9;
    --orange: #ffb86c;
    --pink: #ff79c6;
    --cyan: #8be9fd;
    --border-gradient: linear-gradient(135deg, #00d9ff 0%, #bd93f9 50%, #50fa7b 100%);

    --font-96: clamp(56px, 8vw, 96px);
    --font-40: clamp(24px, 6vw, 40px);
    --font-32: clamp(24px, 4vw, 32px);
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--white);
    overflow-x: hidden;
}

body {
    background: #0a0e27;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 217, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 3px
        ),
        radial-gradient(circle at 20% 50%, rgba(189, 147, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(80, 250, 123, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* TYPOGRAPHY */
h1 {
    font-style: normal;
    font-weight: 400;
    font-size: var(--font-96);
    line-height: 116px;
}

h2 {
    font-weight: 600;
    font-size: var(--font-32);
    line-height: 150%;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

p,
a {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-decoration: none;
}

p {
    opacity: 0.85;
}

/* LAYOUTS */

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* === UNIVERSAL STYLES === */

/* List */

.flex-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.flex-list li {
    margin: 12px;
    transition: 250ms ease all;
}

.flex-list li a {
    color: var(--white);
    text-decoration: none;
    opacity: 1;

    display: block;
    transition: 250ms ease all;
}

.list-items-circle li a {
    border: 2px solid var(--black);
    border-radius: 50%;
}

.list-items-circle li a:hover {
    background-color: var(--white);
    border: 2px solid var(--white);
}

.list-items-circle li a .fab {
    width: 80px;
    height: 80px;
    font-size: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;

    transition: 250ms ease all;
}

.list-items-circle li a:hover .fab {
    color: var(--black);
}

.contact .list-items-circle li a {
    border: 2px solid var(--white);
}

.contact .list-items-circle li a:hover {
    background-color: var(--white);
    border: 2px solid var(--white);
}

.flex-list hr {
    height: 30px;
    margin: 0 50px;
}

/* Profile Image */

.profile-container {
    min-width: 88px;
    width: 88px;
    height: 88px;
    margin: 12px;
    position: relative;
}

.profile-container .profile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.profile-container .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header,
.section {
    min-height: 400px;
    padding: 110px;
}

/* HEADER */

.header {
    background-image: url('../img/Background.png');
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.header .header-links,
.contact .contact-links,
.header h1 {
    color: var(--black);
    margin-bottom: 45px;
}

.header .flex-list {
    color: var(--black);
}

.header .flex-list li a {
    color: var(--black);
}

.header .flex-list li:hover,
.header .flex-list li a:hover {
    color: var(--white);
}

.header .flex-list hr {
    border: 1px solid var(--black);
}

/* === ABOUT === */

.about {
    background-image: url('../img/Vector.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.about h2 {
    max-width: 900px;
    font-weight: 400;
    font-size: var(--font-40);
    line-height: 150%;

    margin-bottom: 180px;
}

.about .achievements {
    list-style: none;

}

.about .achievements li {
    margin: 15px 0;
}

/* === PROJECTS === */

.projects .projects-link {
    color: var(--white);
    margin-bottom: 30px;

    opacity: 0.85;
    transition: 250ms ease all;
}

.projects .projects-link:hover {
    opacity: 1;
}

.projects .cards {
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.projects .card {
    border: 2px solid rgba(0, 217, 255, 0.3);
    background: rgba(19, 24, 46, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;

    height: 510px;
    max-width: 390px;
    padding: 30px;
    margin: 20px auto;
}

.projects .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--accent));
    opacity: 0;
    transition: opacity 300ms ease;
}

.projects .card:hover::before {
    opacity: 1;
}

.projects .card img {
    width: 100%;
    max-width: 325px;
    height: auto;
    margin: 0 auto 16px;
}

.projects .card .card-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 8px;
    color: var(--cyan);
}

.projects .card .card-description {
    margin-bottom: 60px;
}

.projects .card .card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.projects .card .card-buttons .card-button--site,
.projects .card .card-buttons .card-button--code {
    flex: 1;
    max-width: 160px;
    height: 50px;
    border-radius: 8px;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 1;
    color: var(--white);

    transition: 250ms ease all;
}

.projects .card .card-buttons .card-button--site {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    border: none;
    font-weight: 600;
    color: #0a0e27;
    font-size: 15px;
}

.projects .card .card-buttons .card-button--code {
    border: 2px solid var(--purple);
    background: rgba(189, 147, 249, 0.1);
    font-weight: 600;
    color: var(--purple);
    font-size: 15px;
}

.projects .card .card-buttons .card-button--site:hover {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 60px rgba(80, 250, 123, 0.3);
    transform: translateY(-3px) scale(1.02);
    color: #0a0e27;
}

.projects .card .card-buttons .card-button--code:hover {
    background: rgba(189, 147, 249, 0.25);
    border-color: var(--purple);
    color: var(--white);
    box-shadow: 0 0 30px rgba(189, 147, 249, 0.6);
    transform: translateY(-3px) scale(1.02);
}

/* === EXPERIENCE === */

.experience-description {
    max-width: 900px;
    margin-bottom: 125px;

    font-weight: 400;
    font-size: var(--font-32);
    line-height: 150%;

    opacity: 1;
    position: relative;
}

.experience-description img {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translate(-50%, -50%);

    pointer-events: none;
}

.experience h2 {
    border-left: 4px solid var(--cyan);
    padding-left: 24px;
}

.experience .experience-cards {
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.experience .experience-card {
    width: 370px;
    padding: 0 30px 30px 0;
}

.experience .experience-card .card-title {
    font-size: 18px;
    line-height: 150%;
}

.experience .experience-card .card-title .highlight {
    opacity: 0.85;
    font-weight: 400;
}

.experience .experience-card .card-years {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    line-height: 150%;
    margin-bottom: 24px;
    opacity: 1;
}

.experience .experience-card .card-list .card-list-item {
    margin: 0 0 16px 16px;
    opacity: 0.85;
}

/* === SKILLS === */

.skills {
    background-image: url('../img/Vector.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.skills .skill-cards {
    flex-wrap: wrap;
}

.skills .skill-card {
    /* transparent card — no bg image/tint */
    background: transparent;
    width: 170px;
    height: 170px;
    margin: 0 30px 30px 0;
    border: 2px solid rgba(0, 217, 255, 0.3);
    position: relative;
    cursor: pointer;

    /* eliminate jitter: only animate what changes */
    transition:
        transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 320ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 320ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    contain: paint;
}

.skills .skill-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyan), var(--purple), var(--accent), var(--pink));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skills .skill-card:hover::after {
    opacity: 0.3;
}

/* Font Awesome (.fab) AND Iconify <iconify-icon> */
.skills .skill-card .fab,
.skills .skill-card iconify-icon {
    display: block;         /* prevent inline layout shifts */
    line-height: 1;         /* lock icon box height */
    font-size: 80px;
    opacity: 0.85;

    /* only animate paint props on the icon */
    transition:
        opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
        color 320ms cubic-bezier(0.4, 0, 0.2, 1),
        filter 320ms cubic-bezier(0.4, 0, 0.2, 1);

    /* crisper rendering; avoid subpixel wobble */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skills .skill-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5), 0 0 80px rgba(80, 250, 123, 0.2);
    transform: scale(1.06); /* smoother than rotate(2deg) */
    /* If you still want tilt: add ' rotate(1deg)' after scale */
}

.skills .skill-card:hover .fab,
.skills .skill-card:hover iconify-icon {
    opacity: 1;
    color: var(--cyan);
    filter: drop-shadow(0 0 10px var(--cyan));
}

/* keep list helpers */
.skills .skill-list { list-style: none; flex-wrap: wrap; }
.skills .skill-list li { display: flex; justify-content: center; align-items: center; }
.skills .skill-list li img { margin: 10px; }

/* responsive sizing */
@media all and (max-width: 992px) {
    .skills .skill-card {
        width: 125px;
        height: 125px;
    }
}


/* === CONTACT === */

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.contact h1,
.contact p {
    max-width: 750px;
    margin-bottom: 45px;
}

.contact .flex-list li:hover,
.contact .flex-list li a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

/* === FOOTER === */

.footer {
    min-height: 88px;
    background: rgba(19, 24, 46, 0.5);
    border-top: 2px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* === MEDIA STYLES === */

@media all and (max-width: 1200px) {
    .contact-details {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-details li {
        margin: 10px;
    }

    .contact-details li a {
        margin: 0;
    }

    .contact-details hr {
        display: none;
    }
}

@media all and (max-width: 992px) {
    .skills .skill-card {
        width: 125px;
        height: 125px;
    }
}

@media all and (max-width: 767px) {

    .header,
    .section {
        padding: 40px;
    }
}
/* minimal hover cues */
.projects .card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.3), 0 0 100px rgba(189, 147, 249, 0.2);
}
.projects .card {
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
a, .projects .card .card-buttons a {
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover { opacity: 0.9; }

/* Subtle glow effects */
h1 {
    text-shadow: 0 0 40px rgba(88, 166, 255, 0.1);
}

.header h1 {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

h2 {
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.experience .experience-card .card-years {
    text-shadow: 0 0 20px rgba(80, 250, 123, 0.5);
}

.projects .projects-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.video-section {
    padding: 80px 110px;
    background: var(--black);
    position: relative;
}

.video-header {
    text-align: center;
    margin-bottom: 50px;
}

.video-header h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.video-header p {
    font-size: 20px;
    color: var(--white);
    opacity: 0.7;
    max-width: 700px;
    margin: 0 auto;
}

/* === ULTRAWIDE CONTAINER WITH "COVER"ED 16:9 IFRAME === */
.video-container {

    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    padding-bottom: 0; /* 16:9 aspect ratio for 900px width */
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    
    border: 3px solid transparent;
    background: linear-gradient(var(--dark-card), var(--dark-card))
    padding-box, linear-gradient(135deg, var(--cyan), var(--purple), var(--accent))
    border-box; box-shadow: 0 25px 70px rgba(0, 217, 255, 0.25), 0 0 100px rgba(189, 147, 249, 0.15),
    inset 0 0 60px rgba(0, 217, 255, 0.05); transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect kept */
.video-container:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 35px 90px rgba(0, 217, 255, 0.4),
        0 0 140px rgba(189, 147, 249, 0.25),
        inset 0 0 80px rgba(0, 217, 255, 0.08);
}

/* Make the 16:9 player "cover" the wider box */
.video-container iframe {
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 102%;
    border: none;
}

/* Mobile: revert to 16:9 to avoid over-cropping on narrow screens */
@media (max-width: 767px) {
    .video-section {
        padding: 60px 40px;
    }

    .video-header h2 {
        font-size: 28px;
    }

    .video-header p {
        font-size: 16px;
    }

    .video-container {
        max-width: 100%;
        border-radius: 12px;
    }
}




