:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-tertiary: #ff00e5;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --transition-slow: 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-medium: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-fast: 0.2s cubic-bezier(0.77, 0, 0.175, 1);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

/* Mobile cursor handling */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* Background - Fixed positioning */
.background {
    position: fixed;
    width: 100%;
    height: 700px;
    z-index: -1;
    pointer-events: none;
    transform: scale(1.2);
    top: 0;
    left: 0;
}

/* Section z-index management */
/* .about, */
.skills,
.projects,
.contact {
    position: relative;
    z-index: 2;
}

.cks {
    position: relative;
    z-index: 0;
}

@media (min-height: 800px) {
    body {
        background-color: var(--bg-primary);
    }
}

.about {
    margin-top: 50vh;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background-color: var(--accent-tertiary);
    mix-blend-mode: difference;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1px;
    position: relative;
    z-index: 2;
}


/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

#preloader.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Logo Container */
.preloader-logo {
    position: relative;
    margin-bottom: 0rem;
}

/* Animated Logo */
.logo-text {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #00f2fe, #ff00e5, #00f2fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite, glitch 2s ease-in-out infinite;
    text-transform: uppercase;
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Glitch Effect */
@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, -2px);
    }

    98% {
        transform: translate(2px, 2px);
    }
}

/* Progress Bar Container */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #ff00e5);
    background-size: 200% auto;
    border-radius: 10px;
    width: 0%;
    animation: progressGradient 2s ease infinite;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

@keyframes progressGradient {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Loading Text */
.loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.loading-percentage {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00f2fe, #ff00e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 1rem;
}

/* Animated Particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00f2fe;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes float {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
    }
}

/* Create multiple particles with different delays */
.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 2s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 2.5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 3.5s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 4s;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .progress-container {
        width: 250px;
    }

    .loading-text {
        font-size: 0.9rem;
    }

    .circle-loader {
        width: 100px;
        height: 100px;
    }
}

/* Demo page content styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.main-content {
    display: none;
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
}

.main-content.show {
    display: block;
    animation: fadeInContent 1s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: 3rem;
    background: linear-gradient(90deg, #00f2fe, #ff00e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.main-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}


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

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 1rem;
    }
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }
}

.nav-toggle {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

@media (max-width: 768px) {
    .nav-toggle {
        width: 40px;
        height: 40px;
    }
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition-medium);
}

@media (max-width: 768px) {
    .nav-toggle span {
        width: 25px;
    }
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-link {
    margin: 1.5rem 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-link {
        margin: 1rem 0;
    }
}

.nav-link a {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: transform var(--transition-medium);
}

.nav-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* cks Section */
.cks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .cks {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
}

.cks-content {
    grid-column: 2 / 12;
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 768px) {
    .cks-content {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
    }
}

.cks-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .cks-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.cks-text {
    grid-column: 1;
}

.cks-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: alternateSlideIn 1s forwards;
}

@media (max-width: 768px) {
    .cks-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1.5rem;
    }
}

.cks-title .line {
    display: block;
    transform: translateY(100%);
    animation: revealText 1s forwards;
}

.cks-title .line:nth-child(2) {
    animation-delay: 0.3s;
}

.cks-title .gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(90deg, #9d4edd, #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cks-tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

@media (max-width: 768px) {
    .cks-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

.cks-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
}

@media (max-width: 768px) {
    .cks-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
}

.cks-btn-sec {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cks-btn-sec {
        gap: 1rem;
        margin-bottom: 2rem;
        flex-direction: column;
    }
}

.cks-cta {
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
}

.cks-gif {
    color: #000000;
    height: 100%;
    width: 100%;
    grid-column: 2;
    display: flex;
    justify-content: right;
    align-items: right;
    z-index: -1;
}

@media (max-width: 992px) {
    .cks-gif {
        grid-column: 1;
        order: -1;
        justify-content: center;
        align-items: center;
    }
}

.gif-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    transform: scale(1.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 1200px) {
    .gif-image {
        max-width: 450px;
    }
}

@media (max-width: 992px) {
    .gif-image {
        max-width: 80%;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .gif-image {
        max-width: 100%;
    }
}

.gif-image:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .gif-image:hover {
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cks-gif {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cks-gif {
        animation: none;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--transition-medium);
    text-align: center;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: width var(--transition-medium);
}

.btn:hover::before {
    width: 100%;
}

.cks-scroll {
    position: absolute;
    bottom: 2rem;
    left: 48%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

@media (max-width: 768px) {
    .cks-scroll {
        display: none;
    }
}

.cks-scroll-text {
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cks-scroll-line {
    width: 1px;
    height: 50px;
    background-color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.cks-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-primary);
    animation: scrollLine 2s infinite;
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 10rem 0;
    position: relative;
    margin-bottom: 100px;
    z-index: -5;
}

@media (max-width: 768px) {
    .about {
        padding: 5rem 0;
        min-height: auto;
    }
}

.about-container {
    grid-column: 2 / 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
}

@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
        gap: 2rem;
    }
}

.about-content {
    grid-column: 1 / 8;
}

@media (max-width: 1200px) {
    .about-content {
        grid-column: 1 / 13;
    }
}

.about-image {
    grid-column: 8 / 13;
    position: relative;
    padding: 10px;
    z-index: -5;
}

@media (max-width: 1200px) {
    .about-image {
        grid-column: 1 / 13;
        max-width: 600px;
        margin: 0 auto;
    }
}

.image-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#about_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3rem;
    position: relative;
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
}

.about-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .about-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-text {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stat-text {
        font-size: 0.9rem;
    }
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111111, #222222);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 254, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.image-placeholder svg {
    width: 100px;
    height: 100px;
    fill: var(--accent-primary);
    opacity: 0.5;
}

.image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-primary);
    transform: translate(20px, 20px);
    z-index: -1;
}

@media (max-width: 768px) {
    .image-frame::after {
        transform: translate(10px, 10px);
    }
}

/* Skills Section */
.skills {
    min-height: 100vh;
    padding: 10rem 0;
    position: relative;
    background-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    .skills {
        padding: 5rem 0;
        min-height: auto;
    }
}

.skills-container {
    grid-column: 2 / 12;
}

@media (max-width: 768px) {
    .skills-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        gap: 1.5rem;
    }
}

.skill-card {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .skill-card {
        padding: 1.5rem;
    }
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .skill-card:hover {
        transform: translateY(-5px);
    }
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .skill-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .skill-title {
        font-size: 1.3rem;
    }
}

.skill-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .skill-description {
        font-size: 0.95rem;
    }
}

.skill-level {
    margin-top: 1.5rem;
}

.skill-progress {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.skill-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .skill-progress-text {
        font-size: 0.75rem;
    }
}

/* Projects Section */
.projects {
    min-height: 100vh;
    padding: 10rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .projects {
        padding: 5rem 0;
        min-height: auto;
    }
}

.projects-container {
    grid-column: 2 / 12;
}

@media (max-width: 768px) {
    .projects-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
    }
}

.projects-grid {
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .projects-grid {
        margin-top: 2rem;
    }
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 10rem;
    position: relative;
}

@media (max-width: 992px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }
}

@media (max-width: 768px) {
    .project-item {
        gap: 1.5rem;
        margin-bottom: 4rem;
    }
}

.project-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
    .project-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
}

.project-item:nth-child(even) .project-image {
    order: -1;
}

@media (max-width: 992px) {
    .project-item:nth-child(even) .project-image {
        order: 0;
    }
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 992px) {
    .project-content {
        order: 1;
    }
}

.project-number {
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.project-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .project-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
        margin-bottom: 1rem;
    }
}

.project-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

@media (max-width: 992px) {
    .project-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .project-tags {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

.project-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
}

@media (max-width: 768px) {
    .project-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.project-link svg {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-tertiary);
}

.project-link:hover svg {
    transform: translateX(5px);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #111111, #222222);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .project-img-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .project-img-placeholder {
        height: 250px;
    }
}

.project-img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 254, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.project-link-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
}

#view-code {
    margin-left: 1rem;
}

.cks-btn-project-sec {
    margin-top: 4rem;
    display: flex;

}

@media (max-width: 768px) {
    .cks-btn-project-sec {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }
}

/* Photography Section */
.photography {
    min-height: 100vh;
    padding: 10rem 0;
    position: relative;
    background-color: var(--bg-primary);
}

@media (max-width: 768px) {
    .photography {
        padding: 5rem 0;
        min-height: auto;
    }
}

.photography-container {
    grid-column: 2 / 12;
}

@media (max-width: 768px) {
    .photography-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
    }
}

.photography-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

@media (max-width: 768px) {
    .photography-intro {
        margin-bottom: 2rem;
    }
}

.photography-intro p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .photography-intro p {
        font-size: 1rem;
    }
}

.photography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .photography-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .photo-card:hover {
        transform: translateY(-5px);
    }
}

.photo-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .photo-image {
        height: 250px;
    }
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-content {
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.photo-card:hover .photo-content {
    transform: translateY(0);
}

.photo-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .photo-title {
        font-size: 1.3rem;
    }
}

.photo-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .photo-description {
        font-size: 0.9rem;
    }
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.photo-location,
.photo-date {
    display: flex;
    align-items: center;
}

.photo-location::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b0ba'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
}

.photo-date::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b0ba'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
}

.photography-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .photography-cta {
        text-align: center;
        margin-top: 2rem;
    }
}

.photography-cta .btn {
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 10rem 0;
    position: relative;
    background-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    .contact {
        padding: 5rem 0;
        min-height: auto;
    }
}

.contact-container {
    grid-column: 2 / 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
}

@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
        gap: 2rem;
    }
}

.contact-content {
    grid-column: 1 / 7;
}

@media (max-width: 1200px) {
    .contact-content {
        grid-column: 1 / 13;
    }
}

.contact-form {
    grid-column: 7 / 13;
}

@media (max-width: 1200px) {
    .contact-form {
        grid-column: 1 / 13;
    }
}

.contact-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 500px;
}

@media (max-width: 1200px) {
    .contact-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.contact-info {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact-info {
        margin-bottom: 2rem;
    }
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-info-item {
        margin-bottom: 1rem;
    }
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-info-icon {
        width: 35px;
        height: 35px;
    }
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-primary);
}

@media (max-width: 768px) {
    .contact-info-icon svg {
        width: 18px;
        height: 18px;
    }
}

.contact-info-text {
    font-size: 1rem;
    font-weight: 300;
    word-break: break-word;
}

@media (max-width: 768px) {
    .contact-info-text {
        font-size: 0.9rem;
    }
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .contact-social {
        gap: 1rem;
    }
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
}

@media (max-width: 768px) {
    .social-link {
        width: 45px;
        height: 45px;
    }
}

.insta-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .insta-img {
        width: 45px;
        height: 45px;
    }
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: fill var(--transition-medium);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .social-link:hover {
        transform: translateY(-3px);
    }
}

.social-link:hover svg {
    fill: var(--bg-primary);
}
/* Social Profile Picture Styles with Logo Overlay - Add this to your existing CSS */

.social-link-img {
    padding: 0;
    overflow: visible;
    border: 2px solid var(--accent-primary);
    position: relative;
}

.social-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium), filter var(--transition-medium);
    border-radius: 50%;
}

/* Logo overlay in top-left corner */
.social-icon-overlay {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 25px;
    height: 25px;
    fill: var(--text-primary);
    background-color: rgba(0, 0, 0, 1);
    border-radius: 50%;
    padding: 0px;
    opacity: 1;
    transition: all var(--transition-medium);
    z-index: 2;
    border: 2px solid var(--bg-secondary);
}

/* Hover effects */
.social-link-img:hover .social-profile-pic {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.social-link-img:hover .social-icon-overlay {
    background-color: var(--accent-primary);
    fill: var(--bg-primary);
    transform: scale(1.15);
    border-color: var(--accent-primary);
}

.social-link-img:hover {
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-icon-overlay {
        width: 18px;
        height: 18px;
        top: -1px;
        left: -1px;
    }
    
    .social-link-img:hover .social-profile-pic {
        transform: scale(1.02);
    }
    
    .social-link-img:hover .social-icon-overlay {
        transform: scale(1.1);
    }
}
.form-group {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: border-color var(--transition-medium);
}

@media (max-width: 768px) {

    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    padding: 1rem 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--transition-medium);
}

@media (max-width: 768px) {
    .form-submit {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        cursor: pointer;
    }
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: width var(--transition-medium);
}

.form-submit:hover::before {
    width: 100%;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    position: relative;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }
}

.footer-container {
    grid-column: 2 / 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-container {
        grid-column: 1 / 13;
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.footer-logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .footer-logo {
        font-size: 1rem;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
    }
}

.footer-link {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

@media (max-width: 768px) {
    .footer-link {
        font-size: 0.85rem;
    }
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes revealText {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Magnetic Effect */
.magnetic {
    position: relative;
    display: inline-block;
}

/* Disable magnetic effect on mobile */
@media (max-width: 768px) {
    .magnetic {
        transform: none !important;
    }
}

/* Reveal Animation */
.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Parallax Effect */
.parallax {
    transition: transform 0.1s ease;
}

/* Disable parallax on mobile */
@media (max-width: 768px) {
    .parallax {
        transform: none !important;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .cks-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix for overflow issues on mobile */
body {
    overflow-x: hidden;
    position: relative;
}

/* Ensure images don't overflow */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover::before {
        width: 0;
    }

    .btn:active::before {
        width: 100%;
    }

    .skill-card:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }
}

/* Landscape mobile optimization */
@media (max-width: 992px) and (orientation: landscape) {
    .cks {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 4rem 0;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .nav {
        padding: 1rem 0.8rem;
    }

    .cks-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container,
    .footer-container {
        padding: 0 1rem;
    }
}
