/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

/* Custom cursor - hide default */
*, *::before, *::after {
    cursor: none !important;
}

/* Base font setup */
body {
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

/* Text selection */
::selection {
    background: #22c55e;
    color: #000;
}

::-moz-selection {
    background: #22c55e;
    color: #000;
}

/* ==========================================================================
   SCROLLBAR STYLES
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==========================================================================
   CUSTOM CURSOR STYLES
   ========================================================================== */

.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

.hero-content {
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.greeting {
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.7s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* Hero title aesthetic improvements */
.hero-title .text-green-400 {
    position: relative;
    font-style: italic;
    font-weight: 900;
}

.hero-title .underline {
    position: relative;
    text-decoration: none;
    font-weight: 800;
}

.hero-title .underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #22c55e;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineExpand 1s ease 2s forwards;
}

.hero-title .font-light {
    font-weight: 300;
    font-style: italic;
}

.hero-title .bg-gradient-to-r {
    font-weight: 700;
    background: linear-gradient(45deg, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title svg {
    animation: sparkle 2s ease-in-out infinite;
}

/* Wave emoji animation */
.wave-emoji {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Section headers */
.section-header {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PROJECT CARD STYLES
   ========================================================================== */

.project-card {
    width: 900px;
    background-color: black;
    padding: 40px;
    border-radius: 20px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
}

.project-card:hover {
    box-shadow: 0 8px 40px rgba(34, 197, 94, 0.2);
    transform: translateY(-5px);
}

.project-card.shrink {
    transform: scale(0.9);
    opacity: 0.5;
    z-index: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Image wrapper */
.image-wrapper {
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

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

/* Tags */
.tags-head {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-box {
    background-color: #fff;
    color: black;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ==========================================================================
   CTA SECTION STYLES
   ========================================================================== */

.cta-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.cta-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.cta-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SOCIAL LINKS STYLES
   ========================================================================== */

.social-links {
    opacity: 1;
    transform: none;
    transition: none;
}

.social-link {
    opacity: 1;
    transform: scale(1);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover {
    transform: scale(1.2);
    background: #22c55e;
}

.social-link:hover span {
    color: black;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Magnetic effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #ffffff, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flow underline */
.flow-underline {
    position: relative;
    overflow: hidden;
}

.flow-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    transform: translateX(-100%);
    animation: flowUnderline 2s ease-in-out infinite;
}

/* Red stripe patterns */
.bg-red-stripe {
    background: repeating-linear-gradient(
        45deg,
        #dc2626,
        #dc2626 10px,
        #b91c1c 10px,
        #b91c1c 20px
    );
}

.bg-red-stripe-pattern {
    background: repeating-linear-gradient(
        45deg,
        #dc2626,
        #dc2626 15px,
        #b91c1c 15px,
        #b91c1c 30px
    );
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
    }
}

@keyframes sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes flowUnderline {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Extra Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .project-card {
        width: 1000px;
        padding: 50px;
    }
    
    .image-wrapper {
        height: 600px;
    }
    
    .tags-head {
        font-size: 3rem;
    }
}

/* Large Desktop (1200px to 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .project-card {
        width: 850px;
        padding: 35px;
    }
    
    .image-wrapper {
        height: 520px;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .project-card {
        width: 750px;
        padding: 30px;
    }
    
    .image-wrapper {
        height: 480px;
    }
    
    .tags-head {
        font-size: 2.2rem;
    }
}

/* Small Desktop / Large Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .project-card {
        width: 90%;
        max-width: 650px;
        padding: 25px;
        top: 80px;
    }
    
    .image-wrapper {
        height: 400px;
    }
    
    .tags-head {
        font-size: 2rem;
    }
    
    .tags-box {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
}

/* Tablet (576px to 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .cta-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .project-card {
        width: 95%;
        max-width: none;
        padding: 20px;
        top: 60px;
        border-radius: 15px;
    }
    
    .image-wrapper {
        height: 350px;
        border-radius: 0.75rem;
    }
    
    .tags-head {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .tags {
        gap: 8px;
    }
    
    .tags-box {
        font-size: 0.6rem;
        padding: 6px 10px;
        letter-spacing: 1px;
    }
    
    .project-info {
        gap: 15px;
    }
}

/* Mobile Large (480px to 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .project-card {
        width: 98%;
        padding: 18px;
        top: 50px;
    }
    
    .image-wrapper {
        height: 300px;
    }
    
    .tags-head {
        font-size: 1.6rem;
    }
    
    .tags {
        gap: 6px;
    }
    
    .tags-box {
        font-size: 0.55rem;
        padding: 5px 8px;
    }
}

/* Mobile Medium (375px to 479px) */
@media (max-width: 479px) and (min-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .project-card {
        width: 100%;
        padding: 15px;
        top: 40px;
        border-radius: 10px;
    }
    
    .image-wrapper {
        height: 250px;
    }
    
    .tags-head {
        font-size: 1.4rem;
    }
    
    .tags {
        gap: 5px;
    }
    
    .tags-box {
        font-size: 0.5rem;
        padding: 4px 6px;
    }
    
    .project-info {
        gap: 12px;
    }
}

/* Mobile Small (320px to 374px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .project-card {
        width: 100%;
        padding: 12px;
        top: 30px;
        border-radius: 8px;
    }
    
    .image-wrapper {
        height: 200px;
    }
    
    .tags-head {
        font-size: 1.2rem;
    }
    
    .tags {
        gap: 4px;
    }
    
    .tags-box {
        font-size: 0.45rem;
        padding: 3px 5px;
        letter-spacing: 0.5px;
    }
    
    .project-info {
        gap: 10px;
    }
}

/* ==========================================================================
   RESPONSIVE CURSOR ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .cursor {
        width: 8px;
        height: 8px;
    }
    
    .cursor-follower {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .cursor {
        width: 6px;
        height: 6px;
    }
    
    .cursor-follower {
        width: 25px;
        height: 25px;
    }
}

/* ==========================================================================
   RESPONSIVE SECTION ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    section {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Lazy loading support */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content,
    .greeting,
    .hero-title,
    .section-header,
    .section-title,
    .cta-content,
    .cta-title {
        animation: none;
        opacity: 1;
        transform: none;
    }
}