:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #232526 0%, #414345 100%);
    --light-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    font-family: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-20px) translateY(-10px);
    }

    50% {
        transform: translateX(20px) translateY(10px);
    }

    75% {
        transform: translateX(-10px) translateY(20px);
    }
}

body.light-mode {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffecd2 100%);
}

body.light-mode::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
}

body.light-mode .one h1,
body.light-mode .one h2 {
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .two h1 {
    background: var(--primary-gradient);
    color: white;
}

body.light-mode .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .card h2,
body.light-mode .card p {
    color: #2c3e50;
}

body.light-mode .card .status {
    color: #7f8c8d;
}

body.light-mode footer {
    background: var(--primary-gradient);
}

.one {
    text-align: center;
    font-size: 25px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.one::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(120, 119, 198, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.light-mode .one h1 {
    background: linear-gradient(45deg, #764ba2, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.one h1 {
    color: #ffffff;
    margin: 1px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, ghostwhite, whitesmoke, silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(247, 247, 247, 0.582);
}

.one h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, white, #764ba2);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        width: 100px;
        opacity: 1;
    }

    50% {
        width: 150px;
        opacity: 0.7;
    }
}

.one h2 {
    color: #e8e8e8;
    margin: 1rem 0;
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-style: italic;
    position: relative;
}

.two {
    margin: 20px auto;
    color: whitesmoke;
    font-size: 13px;
    text-align: center;
    width: 80%;
    position: relative;
}

/* .two::before { */
/* content: ''; */
/* position: absolute; */
/* top: -20px; */
/* left: -20px; */
/* right: -20px; */
/* bottom: -20px; */
/* background: var(--glass-bg); */
/* backdrop-filter: blur(10px); */
/* border-radius: 20px; */
/* border: 1px solid var(--glass-border); */
/* z-index: -1; */
/* } */

.two h1 {
    background: var(--secondary-gradient);
    display: inline-block;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.two h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.two h1:hover::before {
    left: 100%;
}

.two span button {
    background: var(--success-gradient);
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    font-family: 'Source Sans Pro', sans-serif;
    margin-left: 10px;
}

.two span button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.two span button:hover::before {
    width: 300px;
    height: 300px;
}

body.light-mode .two span button {
    background: var(--primary-gradient);
}

.two span button a {
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
}

.two span button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.6);
}

.main-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    min-height: 500px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    width: 380px;
    height: fit-content;
    padding-top: 35px;
    padding-bottom: 35px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: cardRotate 10s linear infinite;
}

@keyframes cardRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.card p {
    font-size: 16px;
    color: #b8b8b8;
    margin: 8px 0;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 2;
}

.card .status {
    font-style: italic;
    color: #888;
    font-family: 'Crimson Text', serif;
    position: relative;
    z-index: 2;
}

.card .status::before {
    content: '●';
    color: #f39c12;
    margin-right: 8px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.start-btn {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
    z-index: 2;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn a {
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.4);
}

footer {
    background: var(--dark-gradient);
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.this-project {
    margin-left: 10px;
    margin-top: -5px;
    transition: all ease-in-out 0.3s;
    position: relative;
}

.this-project::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}

.this-project p {
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
}

.this-project p:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.this-project p a {
    text-decoration: none;
    color: white;
}

.about {
    margin-top: -5px;
    display: flex;
    gap: 15px;
    margin-right: 10px;
    transition: all ease-in-out 0.3s;
}

.about p {
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 18px;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.about p:hover::before {
    left: 100%;
}

.about p:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about p a {
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
}

.toggle {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .one {
        padding: 2rem 1rem;
    }

    .one h1 {
        font-size: 2rem;
    }

    .two {
        width: 95%;
        margin: 15px auto;
    }

    .main-cards {
        width: 95%;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .this-project::before {
        display: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}