:root {
    --bg-color: #0c0c0c;
    --text-color: #ffffff;
    --accent-color: #3b82f6;
    --secondary-accent: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --section-padding: 100px 10%;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    will-change: transform;
    opacity: 0.8;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s, opacity 0.3s;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
}

.cube {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
    backdrop-filter: blur(5px);
    animation: float 20s infinite linear;
}

.cube:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.cube:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-duration: 30s;
}

.cube:nth-child(3) {
    top: 80%;
    left: 20%;
    width: 100px;
    height: 100px;
}

.cube:nth-child(4) {
    top: 15%;
    left: 75%;
    width: 200px;
    height: 200px;
    animation-duration: 40s;
}

.cube:nth-child(5) {
    top: 40%;
    left: 40%;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.3;
    }
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

.hero-content p {
    font-size: 1.4rem;
    opacity: 0.8;
    margin: 0 auto 40px auto;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn.primary {
    background: var(--accent-color);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn.secondary {
    border: 1px solid var(--glass-border);
    color: white;
    background: var(--glass-bg);
}

.btn.secondary:hover {
    background: white;
    color: black;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: end;
}

.image-container {
    width: 450px;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

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

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

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

/* Sections Global */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding: 50px;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skill-card {
    padding: 50px 40px;
    text-align: left;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.skill-icon i {
    width: 24px;
    height: 24px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.skill-tags span {
    font-size: 0.85rem;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

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

.project-img {
    height: 200px;
    background: #1a1a1a;
    display: block;
    position: relative;
    overflow: hidden;
}

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

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


.project-info {
    padding: 25px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.project-info {
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0.9;
}

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

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.project-info p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 12px;
    color: #ccc;
}


.tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tags span {
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.tags span:hover {
    background: var(--accent-color);
    color: white;
}


/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    border-radius: 0;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: white;
    opacity: 0.6;
    transition: var(--transition);
}

.socials a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger Animation */
.menu-btn {
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
    display: none;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-btn.active .hamburger {
    background: transparent;
}

.menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Responsive Queries */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px 5%;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .about-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 0 5%;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(12, 12, 12, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10%;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .image-container {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }

    .about-text {
        padding: 30px 20px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    #home {
        padding-top: 120px;
    }

    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
    }

    .navbar {
        height: 60px;
    }
}

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

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