/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --bg-color: #111111;
    --primary-color: #00ddff;
    --secondary-color: #e84989;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

/* Basic Reset & Custom Scrollbar */
* { 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);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
body.cursor-active { cursor: none; }
a, button { cursor: inherit; }

/* Blend Mode Cursor (by default hidden) */
.blend-cursor {
    position: fixed;
    width: 30px; height: 30px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}
.blend-cursor.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Animated Gradient Background */
body::before {
    content: ''; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 20%, var(--primary-color), transparent 30%),
                radial-gradient(circle at 80% 70%, var(--secondary-color), transparent 30%);
    opacity: 0.15; z-index: -1;
    animation: gradient-flow 20s ease-in-out infinite;
}
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 120px 0; opacity: 0; transform: translateY(50px) scale(0.98); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
section.visible { opacity: 1; transform: translateY(0) scale(1); }
.section-title { text-align: center; font-size: 2.8rem; font-weight: 900; margin-bottom: 4rem; }
.section-title::after { content: '.'; color: var(--primary-color); }

.header { position: fixed; width: 100%; top: 0; z-index: 100; background: rgba(17, 17, 17, 0.8); backdrop-filter: blur(10px); padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.nav-logo svg { display: block; }
.nav-menu { list-style: none; display: flex; gap: 2.5rem; }
.nav-link { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero-content { max-width: 650px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.hero-role { font-size: 1.5rem; color: var(--primary-color); font-weight: 500; min-height: 2.2rem; }
.hero-buttons { margin-top: 2.5rem; display: flex; gap: 1rem; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.btn-primary { background: var(--primary-color); color: #000; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 221, 255, 0.3); }
.btn-secondary { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: #000; }
.hero-image { position: relative; }

/* --- Naya Circular Glow Effect --- */
.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    animation: subtle-glow 5s infinite alternate; /* Naya animation */
}

/* Naya glow animation */
@keyframes subtle-glow {
    from {
        box-shadow: 0 0 15px -5px rgba(0, 221, 255, 0.4), 
                    0 0 30px -10px rgba(232, 73, 137, 0.4);
    }
    to {
        box-shadow: 0 0 25px 0px rgba(0, 221, 255, 0.6), 
                    0 0 50px -5px rgba(232, 73, 137, 0.6);
    }
}


.about-content, .skills-grid { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; }
.skills { padding-top: 0; }
.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.skill-link { text-decoration: none; }
.skill-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 1rem 1.5rem; border-radius: 8px; display: flex; align-items: center; gap: 10px; color: var(--text-color); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); border-color: var(--primary-color); }
.skill-card i { font-size: 2rem; color: var(--primary-color); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.project-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-color); }
.project-info p { margin-bottom: 1rem; flex-grow: 1; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-stack span { background: rgba(0, 221, 255, 0.1); color: var(--primary-color); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.project-links a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.project-links a:hover { color: var(--primary-color); }

.contact { text-align: center; }
.contact-text { max-width: 500px; margin: 1rem auto 2.5rem; }
.footer { padding: 2rem 0; text-align: center; border-top: 1px solid var(--border-color); }
.footer .social-links { margin-bottom: 1rem; }
.footer .social-links a { font-size: 1.5rem; color: var(--text-color); margin: 0 1rem; transition: color 0.3s, transform 0.3s; }
.footer .social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }

@media (max-width: 768px) {
    .blend-cursor { display: none; }
    body.cursor-active { cursor: default; }
    .hamburger { display: block; }
    .nav-menu { position: fixed; top: 65px; right: -100%; width: 70%; height: 100vh; background: var(--bg-color); flex-direction: column; align-items: center; padding-top: 2rem; gap: 2rem; transition: right 0.4s ease-in-out; }
    .nav-menu.active { right: 0; }
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-image img { width: 250px; height: 250px; }
    .hero-buttons { justify-content: center; }
}

/* ---------- Contact Background Blobs ---------- */
.contact-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: #00ddff;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: #e84989;
    bottom: -100px;
    right: -50px;
    animation-delay: 5s;
}

.blob3 {
    width: 350px;
    height: 350px;
    background: #ffdd00;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50px) translateX(50px); }
}

/* ---------- Contact Container ---------- */
.contact-container {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Above blobs */
}

.contact-text {
    margin: 1rem auto 3rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ---------- Contact Cards ---------- */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(224,224,224,0.8);
}

/* Hover Effect */
.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,221,255,0.4);
    border-color: var(--primary-color);
}
.contact-card:hover i {
    color: #fff;
    transform: rotate(10deg) scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- About Section --- */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about-text {
    max-width: 500px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text .btn {
    margin-top: 0.5rem;
}

/* About Image */
.about-image {
    position: relative;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    animation: subtle-glow 5s infinite alternate;
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,221,255,0.2), transparent 70%);
    z-index: -1;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- Skills Section --- */
.skills-container {
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.skill-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 221, 255, 0.3);
    border-color: var(--primary-color);
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden; /* ensures cutout shape */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #0ff 20%, #e84989 80%); /* subtle gradient inside */
    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.2), /* inner soft glow */
        inset 0 -10px 30px rgba(0,0,0,0.3), /* depth shadow at bottom */
        0 0 15px rgba(0,0,0,0.2); /* subtle outer depth shadow */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* The image itself */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.hero-image:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 0 25px rgba(255,255,255,0.3),
        inset 0 -15px 35px rgba(0,0,0,0.35),
        0 0 20px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        width: 250px;
        height: 250px;
    }
}

/* --- Updated About Section Styles --- */

/* Naya Layout */
.about-container { max-width: 1100px; }
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem; /* Image aur text ke beech space */
}
.about-image {
    flex-basis: 40%; /* Image ke liye 40% width */
    max-width: 350px;
}
.about-image img {
    width: 100%;
    border-radius: 50%; /* Image ko gol rakha hai */
    border: 5px solid var(--border-color);
}
.about-text {
    flex-basis: 60%; /* Text ke liye 60% width */
}
.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Naye Highlights ka Style */
.about-highlights {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}
.highlight-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.highlight-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Resume Button mein Icon ke liye Style */
.btn i {
    margin-right: 0.5rem;
}

/* Mobile ke liye Layout ko theek karna */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Mobile par upar-neeche */
        text-align: center;
    }
    .about-highlights {
        flex-direction: column;
        align-items: center;
    }
    .highlight-item {
        text-align: center;
        align-items: center;
        flex-direction: column;
    }
}
