@theme {
    --font-sans: 'Inter', sans-serif;
    --color-bg: #0a0a0b;
    --color-text: #f5f5f4;
    --color-accent: #d4d4d8;
    --color-card: #18181b;
    --color-border: #27272a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0b 0%, #18181b 50%, #0a0a0b 100%);
    background-attachment: fixed;
    color: #f5f5f4;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 11, 0.7);
    border-bottom: 1px solid rgba(39, 39, 42, 0);
    transition: all 0.4s ease;
}

.nav-container.scrolled {
    padding: 1rem 2rem;
    background: rgba(10, 10, 11, 0.85);
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

.nav-link {
    position: relative;
    color: #a1a1aa;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f5f5f4;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #f5f5f4;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero section */
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #a1a1aa;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    
}

.subtitle{
    text-align: center;
    margin: 0 auto 30px;
    align-items: center;
}

.con-sub{
    text-align: center;
    margin: 0 auto 30px;
    align-items: center;
    margin-top: 5px;
}


.work-sub{
    text-align: center;
    margin: 0 auto 30px;
    align-items: center;
    margin-top: 5px;
}



.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
}

/* Scroll reveal animation base */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

/* 3D Card styles */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-3d-inner {
    transform-style: preserve-3d;
}

/* Project card - Modern Design */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    z-index: 1;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 80%, transparent 100%);
}

.project-image {
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-details {
    max-height: 300px;
    opacity: 1;
}

/* Hidden projects */
.hidden-project {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.hidden-project.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill tags */
.skill-tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag:hover {
    background: rgba(245, 245, 244, 0.1);
    transform: translateY(-2px);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, #52525b, #27272a);
    transition: height 1.5s ease;
}

.timeline-item {
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: #f5f5f4;
    border-radius: 50%;
    position: absolute;
    left: -4px;
    top: 0.5rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
}

/* Button styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: #f5f5f4;
    color: #0a0a0b;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #18181b;
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-primary:hover span {
    color: #f5f5f4;
}

.btn-secondary {
    position: relative;
    border: 1px solid #27272a;
    color: #f5f5f4;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #f5f5f4;
    background: rgba(245, 245, 244, 0.05);
}

/* Form styles */
.form-input {
    background: transparent;
    border: 1px solid #27272a;
    padding: 1rem 1.25rem;
    color: #f5f5f4;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f5f5f4;
    box-shadow: 0 0 0 3px rgba(245, 245, 244, 0.05);
}

.form-input::placeholder {
    color: #71717a;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: #f5f5f4;
}

/* Stats animation */
.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #27272a, transparent);
    margin: 0 auto;
    max-width: 200px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Parallax background */
.parallax-bg {
    will-change: transform;
}

/* Loading screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0b;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.98);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 300;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu a:nth-child(5) {
    transition-delay: 0.3s;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: #f5f5f4;
    transition: all 0.3s ease;
}

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

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

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

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

    .desktop-nav {
        display: none;
    }
}

/* Project preview modal */
.project-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #18181b;
    border-radius: 16px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-preview.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.project-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.project-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-preview {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

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

::-webkit-scrollbar-track {
    background: #0a0a0b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Tech stack icons hover */
.tech-icon {
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-4px);
    filter: brightness(1.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f5f5f4 0%, #a1a1aa 50%, #f5f5f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing border effect */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, transparent, rgba(245, 245, 244, 0.1), transparent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}
