@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Tokyo Night Palette */
    --bg-dark: #1a1b26;
    --bg-light: #24283b;
    --bg-highlight: #292e42;
    --fg: #a9b1d6;
    --fg-dim: #787c99;

    --blue: #7aa2f7;
    --cyan: #7dcfff;
    --magenta: #bb9af7;
    --red: #f7768e;
    --orange: #ff9e64;
    --yellow: #e0af68;
    --green: #9ece6a;
    --teal: #1abc9c;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-highlight);
    border-radius: 5px;
    border: 3px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-dim);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 100px 0;
}

nav.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass {
    background: rgba(36, 40, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.text-center {
    text-align: center;
}

.container-sm {
    max-width: 700px;
    margin: 0 auto;
}

/* About Styling */
.about-image .image-box {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--blue) 0%, var(--magenta) 100%);
    opacity: 0.3;
    filter: blur(50px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.2) rotate(45deg);
    }
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--fg-dim);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Skills Styling */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
}

.skill-icon.blue {
    background-image: url('assets/vscode.png');
    background-size: contain;
}

.skill-icon.magenta {
    background-image: url('assets/capcut.png');
    background-size: contain;
}

.skill-icon.cyan {
    background-image: url('assets/canva.webp');
    background-size: contain;
}

.skill-icon.yellow {
    background: var(--yellow);
}

/* Projects Styling */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition-base);
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-base);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--blue);
}

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

.project-img {
    width: 100%;
    height: 200px;
    background: var(--bg-highlight);
    position: relative;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--fg-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(122, 162, 247, 0.1);
    color: var(--blue);
    border-radius: 4px;
}

/* Contact Styling */
.contact-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-highlight);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.w-full {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1002;
    transition: var(--transition-base);
}

.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--blue);
    filter: blur(120px);
    opacity: 0.05;
    z-index: -1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--blue);
}

.project-card:hover .project-img::after {
    content: 'View Project';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(122, 162, 247, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(26, 27, 38, 0.9);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--fg-dim);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        flex: 1.2;
    }

    .hero-image {
        flex: 0.8;
    }
}

.hero-subtitle {
    color: var(--magenta);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
}

.hero-role {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--fg-dim);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--blue);
    color: #1a1b26;
    box-shadow: 0 4px 15px rgba(122, 162, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 162, 247, 0.4);
}

.btn-outline {
    border: 1px solid var(--blue);
    color: var(--blue);
}

.btn-outline:hover {
    background: rgba(122, 162, 247, 0.1);
    transform: translateY(-3px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Typing Cursor */
#typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--blue);
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1003;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition-base);
    transform-origin: left;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav.glass {
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }

    .mobile-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: -1;
    }

    .mobile-menu.active {
        right: 0;
    }
    
    .btn {
        padding: 10px 18px;
    }
}

/* Social Links - Global */
.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--blue);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue);
    box-shadow: 0 10px 20px rgba(122, 162, 247, 0.2);
}

.hero-social {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-social {
        justify-content: center;
    }
}

/* Hero Image & Abstract - Global */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

.abstract-shape {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    opacity: 0.2;
    top: -50%;
    left: -50%;
    filter: blur(40px);
}