:root {
    --primary: #ff3366;
    --primary-dark: #e01f53;
    --secondary: #1a1a2e;
    --accent: #ffd700;
    --accent-dark: #e6c200;
    --accent2: #00ffcc;
    --accent2-dark: #00d9ad;
    --light: #f8f9fa;
    --dark: #0f0f1a;
    --darker: #080810;
    --card-shadow: 0 15px 30px rgba(0,0,0,0.3);
    --hover-shadow: 0 25px 50px rgba(0,0,0,0.5);
    --premium-gradient: linear-gradient(135deg, #ff3366, #ff8080);
    --premium-gradient-hover: linear-gradient(135deg, #ff4477, #ff9191);
    --premium-gradient2: linear-gradient(135deg, #ffd700, #ffa500);
    --blur-bg: rgba(255, 255, 255, 0.05);
    --card-radius: 16px;
    --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-medium: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
margin: 0;
padding: 0;
overflow-x: hidden;
}
body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 51, 102, 0.15), transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1), transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.05), transparent 50%);
    z-index: -1;
    animation: ambientGlow 15s infinite alternate ease-in-out;
}

@keyframes ambientGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Card symbols background animation */
.bg-cards {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.07;
    overflow: hidden;
}

.bg-card {
    position: absolute;
    width: 70px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    animation: floatCard 15s infinite linear;
}

@keyframes floatCard {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Card suit symbols */
.floating-symbol {
    position: absolute;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 15px) rotate(5deg); }
    50% { transform: translate(0, 30px) rotate(0deg); }
    75% { transform: translate(-20px, 15px) rotate(-5deg); }
}

/* Navbar styling */
/* Navbar styling */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 5%;
z-index: 1000;
transition: var(--transition-medium);
background: rgba(10, 10, 20, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar.scrolled {
padding: 1rem 5%;
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
background: rgba(8, 8, 16, 0.95);
}

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

.nav-link {
color: var(--light);
text-decoration: none;
font-weight: 500;
position: relative;
padding: 0.5rem 0;
transition: var(--transition-fast);
font-size: 1.05rem;
letter-spacing: 0.5px;
}

.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0%;
height: 2px;
background: var(--premium-gradient);
transition: var(--transition-medium);
border-radius: 2px;
}

.nav-link:hover {
color: var(--accent);
}

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

.mobile-menu-btn {
display: none;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 21px;
cursor: pointer;
z-index: 1001;
}

.bar {
height: 3px;
width: 100%;
background: var(--light);
border-radius: 3px;
transition: var(--transition-medium);
}

.mobile-menu {
position: fixed;
top: 0;
right: -100%;
width: 70%;
max-width: 300px;
height: 100vh;
background: rgba(15, 15, 26, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
display: flex;
flex-direction: column;
padding-top: 80px;
transition: right 0.3s ease;
border-left: 1px solid rgba(255,255,255,0.1);
box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.active {
right: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-link {
color: var(--light);
text-decoration: none;
font-size: 1.2rem;
padding: 1rem 2rem;
transition: var(--transition-fast);
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-link:hover {
background: rgba(255,255,255,0.05);
color: var(--accent);
padding-left: 2.5rem;
}

@media (max-width: 768px) {
.nav-links {
display: none;
}

.mobile-menu-btn {
display: flex;
}
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.logo-text {
    background: linear-gradient(to right, var(--light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    animation: glowText 3s infinite alternate ease-in-out;
}

@keyframes glowText {
    0% { filter: drop-shadow(0 0 1px rgba(255, 215, 0, 0.5)); }
    100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); }
}

.logo-text::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--premium-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text::before {
    transform: scaleX(1);
}

/* Projects Section */
.projects-section {
    position: relative;
    padding: 10rem 0 5rem;
    background: linear-gradient(to bottom, var(--dark) 0%, var(--darker) 100%);
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(255, 51, 102, 0.1), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(255, 215, 0, 0.05), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.03), transparent 40%);
    z-index: 0;
    animation: rotateBg 30s infinite alternate linear;
}

@keyframes rotateBg {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.projects-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--premium-gradient);
    border-radius: 4px;
}

.projects-title.show {
    opacity: 1;
    transform: translateY(0);
}

.projects-subtitle {
    max-width: 700px;
    margin: 1.5rem auto 3rem;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
    transition-delay: 0.2s;
    font-weight: 300;
}

.projects-subtitle.show {
    opacity: 1;
    transform: translateY(0);
}

.projects-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
    transition-delay: 0.4s;
}

.projects-grid.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    position: relative;
    height: 169px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateX(0) rotateY(0);
    transition: var(--transition-medium);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(20, 20, 35, 0.7);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
    opacity: 0.7;
    transition: var(--transition-medium);
}

.project-card:hover::before {
    opacity: 0.4;
}

.project-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 2;
    border-color: rgba(255, 51, 102, 0.3);
}

.project-number-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.project-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light);
    background: var(--premium-gradient);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.project-card:hover .project-number {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.5);
}

.project-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: saturate(1.2) contrast(1.1);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-medium);
}

.project-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
}

.overlay-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.project-card:hover .overlay-title::after {
    width: 100%;
}

.overlay-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--premium-gradient);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-top: 0.8rem;
}

.overlay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-medium);
}

.overlay-btn:hover::before {
    left: 100%;
}

.overlay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .glow-effect {
    opacity: 1;
}

.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    z-index: 3;
    animation: shine 3s infinite;
}

.project-card.featured {
    border: none;
    position: relative;
}

.project-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--accent2));
    border-radius: calc(var(--card-radius) + 2px);
    z-index: -1;
    animation: borderGlow 2s infinite alternate ease-in-out;
}

@keyframes borderGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    background: var(--premium-gradient2);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 50px;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-5px);
    opacity: 0;
    transition: var(--transition-medium);
    transition-delay: 0.2s;
}

.project-card:hover .featured-badge {
    transform: translateY(0);
    opacity: 1;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.projects-pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
    transition-delay: 0.6s;
}

.projects-pagination.show {
    opacity: 1;
    transform: translateY(0);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.page-btn.prev, .page-btn.next {
    width: auto;
    padding: 0 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.page-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--light);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

.page-btn.active {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
    border-color: transparent;
}

/* Footer */
footer {
    bottom: 0px;
    background: var(--darker);
    padding: 10rem 0 2rem;
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 51, 102, 0.1), transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05), transparent 20%);
    z-index: 0;
    opacity: 0.5;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-link:hover {
    background: var(--premium-gradient);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
    color: white;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--light);
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--premium-gradient);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 20px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    animation: spin 1.5s linear infinite;
    margin-bottom: 1.5rem;
    position: relative;
}

.preloader-spinner::before,
.preloader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.preloader-spinner::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: var(--accent2);
    animation: spin 2s linear infinite;
}

.preloader-spinner::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--light);
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 51, 102, 0.15);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s;
    opacity: 0;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

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

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .projects-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .projects-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .projects-title {
        font-size: 2.5rem;
    }
    
    .projects-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a::before {
        content: none;
    }
}

@media (max-width: 576px) {
    .projects-title {
        font-size: 2.2rem;
    }
    
    .projects-subtitle {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
}
