:root {
    /* Color Palette */
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --calc-accent: #f472b6;
    /* Pinkish */
    --calc-accent-fade: rgba(244, 114, 182, 0.2);

    --pomo-accent: #38bdf8;
    /* Blueish */
    --pomo-accent-fade: rgba(56, 189, 248, 0.2);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Blobs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate linear;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--calc-accent-fade);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--pomo-accent-fade);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 150px) scale(0.9);
    }
}

/* Typography & Layout Setup */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(135deg, var(--calc-accent), var(--pomo-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

/* App Showcase Section */
.app-section {
    padding: 150px 0;
    position: relative;
}

.app-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.app-container.reverse {
    flex-direction: row-reverse;
}

.app-content {
    flex: 1;
}

.app-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.calculator-section .app-badge {
    color: var(--calc-accent);
}

.pomodoro-section .app-badge {
    color: var(--pomo-accent);
}

.app-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.app-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.app-features {
    list-style: none;
}

.app-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-features li span {
    font-size: 1.2rem;
}

.calculator-section .app-features li span {
    color: var(--calc-accent);
}

.pomodoro-section .app-features li span {
    color: var(--pomo-accent);
}

.app-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pomodoro-section .app-link {
    color: var(--pomo-accent);
}

.pomodoro-section .app-link:hover {
    background: var(--pomo-accent-fade);
    transform: translateY(-2px);
}

/* Image Gallery Layouts */
.image-gallery {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.img-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border);
    transition: var(--transition-slow);
    background: var(--bg-dark);
    /* Fallback */
}

.img-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Specific Galleries */
.calc-gallery {
    height: 600px;
}

.calc-gallery .img-card {
    position: absolute;
    width: 280px;
}

.calc-gallery .card-1 {
    transform: translateX(-40%) translateZ(-100px) rotateY(15deg);
    z-index: 1;
    opacity: 0.8;
}

.calc-gallery .card-2 {
    transform: translateZ(50px);
    z-index: 3;
    width: 300px;
}

.calc-gallery .card-3 {
    transform: translateX(40%) translateZ(-100px) rotateY(-15deg);
    z-index: 2;
    opacity: 0.8;
}

.calc-gallery:hover .card-1 {
    transform: translateX(-55%) translateZ(-50px) rotateY(10deg);
    opacity: 0.9;
}

.calc-gallery:hover .card-3 {
    transform: translateX(55%) translateZ(-50px) rotateY(-10deg);
    opacity: 0.9;
}

.single-image .img-card {
    width: 100%;
    max-width: 500px;
    transform: rotateY(-5deg) rotateX(5deg);
}

.single-image:hover .img-card {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

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

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-3deg) rotateX(3deg);
    }

    100% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--calc-accent);
}

/* Scroll Animation System */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: var(--transition-slow);
}

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

/* Responsive adjustments */
@media (max-width: 992px) {

    .app-container,
    .app-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .app-features li {
        justify-content: center;
    }

    .calc-gallery {
        height: 500px;
        width: 100%;
    }

    .calc-gallery .img-card {
        width: 220px;
    }

    .calc-gallery .card-2 {
        width: 240px;
    }
}

@media (max-width: 576px) {
    .calc-gallery {
        height: 400px;
    }

    .calc-gallery .img-card {
        width: 160px;
    }

    .calc-gallery .card-2 {
        width: 180px;
    }

    .calc-gallery .card-1 {
        transform: translateX(-30%) translateZ(-100px);
    }

    .calc-gallery .card-3 {
        transform: translateX(30%) translateZ(-100px);
    }
}
