:root {
    --primary-color: #FF8C00;
    --primary-hover: #e67e00;
    --bg-dark: #121212;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 60%;
    background:
        radial-gradient(circle at center, rgba(255, 140, 0, 0.1) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 10px);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Services Section */
.services {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Individual Projects Section */
.individual-projects {
    padding: 5rem 5%;
    background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.05));
    display: flex;
    align-items: center;
    gap: 4rem;
}

.project-text {
    flex: 1;
    color: var(--text-muted);
}

.project-text p {
    font-size: 1.1rem;
}

.project-visual {
    flex: 1;
    height: 400px;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: monospace;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(-50%) translateY(0px);
    }

    50% {
        transform: translateY(-50%) translateY(-20px);
    }

    100% {
        transform: translateY(-50%) translateY(0px);
    }
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

.fade-in,
.slide-in-left,
.slide-in-right,
.zoom-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.85);
}

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.zoom-in.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* About Me Section */
.about-me {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.03), transparent);
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.1) 0%, transparent 60%);
}

.avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: spin-slow 15s linear infinite;
}

.avatar-icon-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    border: 3px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

/* Customizer Animations */
@keyframes customizer-scale {

    0%,
    20% {
        transform: scale(0.85);
    }

    30%,
    100% {
        transform: scale(1.15);
    }
}

@keyframes customizer-color-top {

    0%,
    65% {
        fill: rgba(255, 140, 0, 0.4);
        stroke: var(--primary-color);
    }

    75%,
    100% {
        fill: rgba(0, 190, 255, 0.4);
        stroke: #00BEFF;
    }
}

@keyframes customizer-color-left {

    0%,
    65% {
        fill: rgba(255, 140, 0, 0.2);
        stroke: var(--primary-color);
    }

    75%,
    100% {
        fill: rgba(0, 190, 255, 0.2);
        stroke: #00BEFF;
    }
}

@keyframes customizer-color-right {

    0%,
    65% {
        fill: rgba(255, 140, 0, 0.1);
        stroke: var(--primary-color);
    }

    75%,
    100% {
        fill: rgba(0, 190, 255, 0.1);
        stroke: #00BEFF;
    }
}

@keyframes customizer-cursor {

    0%,
    10% {
        transform: translate(250px, 250px);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: translate(250px, 250px);
    }

    /* Move to right edge to drag / scale */
    20% {
        transform: translate(210px, 150px);
    }

    22% {
        transform: translate(210px, 150px) scale(0.8);
    }

    /* click down */
    28% {
        transform: translate(230px, 170px) scale(0.8);
    }

    /* drag */
    32% {
        transform: translate(230px, 170px) scale(1);
    }

    /* release */

    /* wait */
    45% {
        transform: translate(230px, 170px);
    }

    /* move to center */
    55% {
        transform: translate(150px, 150px);
    }

    60% {
        transform: translate(150px, 150px) scale(0.8);
    }

    /* click to change color */
    65% {
        transform: translate(150px, 150px) scale(1);
    }

    /* release */

    /* Move away */
    80%,
    90% {
        transform: translate(250px, 250px);
        opacity: 1;
    }

    95%,
    100% {
        transform: translate(250px, 250px);
        opacity: 0;
    }
}

@keyframes customizer-ripple-1 {
    21% {
        opacity: 0;
        transform: scale(0.5);
    }

    22% {
        opacity: 1;
        transform: scale(1);
    }

    26% {
        opacity: 0;
        transform: scale(3);
    }

    100% {
        opacity: 0;
    }
}

@keyframes customizer-ripple-2 {
    59% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1);
    }

    64% {
        opacity: 0;
        transform: scale(3);
    }

    100% {
        opacity: 0;
    }
}

.customizer-obj {
    transform-origin: 150px 150px;
    animation: customizer-scale 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.customizer-top {
    animation: customizer-color-top 8s infinite;
}

.customizer-left {
    animation: customizer-color-left 8s infinite;
}

.customizer-right {
    animation: customizer-color-right 8s infinite;
}

.customizer-cursor {
    animation: customizer-cursor 8s infinite;
}

.customizer-ripple-1 {
    animation: customizer-ripple-1 8s infinite;
}

.customizer-ripple-2 {
    animation: customizer-ripple-2 8s infinite;
}

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decor-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.decor-left {
    top: 10%;
    left: -20%;
    background: radial-gradient(circle, rgba(255,140,0,0.1) 0%, transparent 70%);
    animation: drift 20s ease-in-out infinite alternate;
}

.decor-right {
    bottom: -10%;
    right: -20%;
    background: radial-gradient(circle, rgba(0,190,255,0.08) 0%, transparent 70%);
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

/* Floating tech shapes for the sides */
.decor-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.05);
}

.shape-1 {
    top: 20%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s ease-in-out infinite;
    background: rgba(255,255,255,0.01);
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 20s ease-in-out infinite reverse;
    background: rgba(255, 140, 0, 0.02);
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .decor-shape { display: none; }
}

/* Responsibility */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .individual-projects {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    /* TODO: Mobile Menu */
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.carousel-img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--primary-color);
}