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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8eef5 0%, #f5f7fa 100%);
    min-height: 100vh;
    color: #1a1a2e;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
    background: transparent;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, 
        rgb(255, 0, 0) 0%, 
        rgb(0, 255, 0) 50%, 
        rgb(0, 0, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rgbShift 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes rgbShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a.active {
    color: #4169ff;
}

nav a:hover {
    color: #4169ff;
}

/* TOGGLE SWITCH */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    --background: #28096b;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #fff000;
    background: var(--background);
    transition: .5s;
}

input:checked + .slider {
    background-color: #522ba7;
}

input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #fff000;
}

/* WORKS SECTION */
.works-section {
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.works-header {
    text-align: center;
    margin-bottom: 60px;
}

.works-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4169ff, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.works-header p {
    font-size: 18px;
    color: #4a5568;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.work-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(65, 105, 255, 0.3);
}

.work-image {
    height: 200px;
    background: linear-gradient(135deg, #4169ff, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image i {
    font-size: 80px;
    color: white;
}

.work-content {
    padding: 30px;
}

.work-content h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.work-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 14px;
    background: #e8eef5;
    color: #4169ff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.work-links {
    display: flex;
    gap: 15px;
}

.work-link {
    flex: 1;
    padding: 10px 20px;
    background: #4169ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.work-link:hover {
    background: #2d4fd9;
    transform: translateY(-2px);
}

.work-link i {
    margin-right: 5px;
}

/* ACHIEVEMENTS SECTION */
.achievements-section {
    margin-top: 80px;
}

.achievements-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #4169ff, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(65, 105, 255, 0.3);
}

.achievement-card i {
    font-size: 50px;
    color: #4169ff;
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar,
    .works-section {
        padding: 30px 40px;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .works-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
        width: 100%;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .works-header h1 {
        font-size: 32px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* DARK MODE */
body.dark-mode {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
    color: #e2e8f0;
}

body.dark-mode .logo,
body.dark-mode nav a,
body.dark-mode .work-content h3,
body.dark-mode .achievement-card h3 {
    color: #e2e8f0;
}

body.dark-mode nav a.active {
    color: #4169ff;
}

body.dark-mode .works-header p,
body.dark-mode .work-content p,
body.dark-mode .achievement-card p {
    color: #94a3b8;
}

body.dark-mode .work-card,
body.dark-mode .achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tag {
    background: rgba(65, 105, 255, 0.2);
    color: #4169ff;
}

/* ── FOOTER ── */
.footer {
    text-align: center;
    padding: 40px 6%;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #4a5568;
    font-size: 0.9rem;
}

.footer span {
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

body.dark-mode .footer {
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer span {
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
