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

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --bg: #030712;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.brand {
    display: flex;
    align-items: center;
}

.text-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .text-logo {
        font-size: 0.7rem;
    }
}

nav:hover .text-logo {
    transform: scale(1.02);
    transition: var(--transition);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Navbar */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 90%, 800px);
    z-index: 1000;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted); /* Changed to muted to let the moving part stand out */
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.glide-item {
    display: inline-block;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    animation: glide 5s ease-in-out infinite;
}

.glide-item:nth-child(2) {
    animation-delay: 1.5s;
    color: var(--secondary);
}

.glide-item:nth-child(3) {
    animation-delay: 3s;
    color: var(--accent);
}

@keyframes glide {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-5px) translateX(3px); }
    66% { transform: translateY(3px) translateX(-2px); }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.2s forwards, floatHero 6s ease-in-out 1s infinite;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    padding: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.bento-1 { grid-column: span 2; }
.bento-2 { grid-column: span 1; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 2; }

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

/* About Me Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    padding: 1.5rem;
}

.about-id-card {
    padding: 3rem;
    text-align: center;
}

.avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

.avatar-circle:hover {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Brands Marquee */
.brands-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 1rem 0;
}

.brands-track {
    display: flex;
    gap: 6rem;
    width: max-content;
    animation: scrollBrands 40s linear infinite;
    opacity: 0.4;
}

.brand-name {
    font-weight: 800;
    font-family: 'Outfit';
    font-size: 1.4rem;
    white-space: nowrap;
    color: var(--text-muted);
    transition: var(--transition);
}

.brand-name:hover {
    opacity: 1;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes scrollBrands {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brands-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.1);
}

.tech-item:hover i {
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.tech-label {
    font-weight: 700;
    font-family: 'Outfit';
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.95); }
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-glow);
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.15s ease-out;
    transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-1, .bento-4 { grid-column: span 1; }
    nav {
        width: 95%;
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    .nav-logo {
        height: 35px;
    }
    .nav-links {
        display: flex;
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    padding: 4rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.4s ease forwards;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-inner-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    text-align: left;
}

.logo-showcase {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2.5rem 1.5rem;
    }
    .modal-inner-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .logo-showcase {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Hide Google Translate Bar */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame,
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-te-menu-value {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}
