:root {
    --bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --secondary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-duration: 15s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    top: 40%;
    left: 20%;
    animation-duration: 25s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-secondary {
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-container {
    width: 300px;
    height: 600px;
    position: relative;
    border-radius: 40px;
    background: #000;
    border: 8px solid #1e293b;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.carousel-slide {
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(250%);
    }
}

/* Apps Section */
.apps-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    transition: 0.3s;
}

.app-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Radio Player Styles */
.radio-player {
    text-align: center;
}

.pulse {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin: 1.5rem 0;
}

.bar {
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
}

.playing .bar {
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.playing .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.playing .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.playing .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.playing .bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        height: 10px;
    }

    to {
        height: 40px;
    }
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.control-btn:hover {
    transform: scale(1.1);
}

/* Calculator Styles */
.calculator {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 16px;
}

#calc-display {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    text-align: right;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.key {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.key.op {
    color: var(--primary);
}

.key.equal {
    background: var(--primary);
    grid-column: span 1;
}

.key.zero {
    grid-column: span 1;
}

.key:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Clock Card */
.clock-display {
    text-align: center;
    margin: 1rem 0;
}

#time {
    font-size: 2.5rem;
    font-weight: 800;
}

.weather-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    color: var(--primary);
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.project-img {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.project-info {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tags span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    color: var(--text-muted);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
}

.w-100 {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responseive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .nav-links {
        display: none;
    }
}