/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    overflow-x: hidden;
    background: radial-gradient(circle at top center, #1b2735 0%, #090a0f 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: background 0.3s;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    /* Remove specific background to share body's */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    padding-top: 120px;
    /* Prevent header overlap */
    /* Enable 3D space */
}

/* 3D Background Effect */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(transparent 0,
            transparent 50px,
            rgba(0, 212, 255, 0.05) 50px,
            rgba(0, 212, 255, 0.05) 51px),
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent 50px,
            rgba(0, 212, 255, 0.05) 50px,
            rgba(0, 212, 255, 0.05) 51px);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 50px;
    transform-style: preserve-3d;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: slideInRight 1s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.img-wrapper:hover {
    transform: rotateY(-10deg) rotateX(10deg);
}

.img-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #00ff88, #ff00cc, #00d4ff);
    background-size: 400%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    animation: glowing 20s linear infinite;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    /* Float animation is now handled by the wrapper hovering or we can keep it subtle */
    transition: transform 0.3s;
}

/* 3D Text Effects */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0, 212, 255, 0.2);
    /* Gradient Text */
    background: linear-gradient(to right, #fff, #b4b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.hero-text:hover h1 {
    transform: translateZ(20px);
}

.highlight {
    background: linear-gradient(to right, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    color: #ccc;
}

.cta-btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    border-color: #fff;
}

/* About */

/* About */
/* About */
.about {
    padding: 100px 0;
    /* Transparent or matching the body background */
    background: transparent;
    color: #fff;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.about-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    color: #ccc;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.skills-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #00d4ff;
    position: relative;
    z-index: 1;
}

.skills-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.card-content {
    text-align: center;
}

.icon-box {
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-size: 2rem;
    transition: transform 0.3s;
}

.skill-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: color 0.3s;
}

.skill-card:hover h3 {
    color: #00d4ff;
}

.skill-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

/* Remove old skills list styles as they are replaced */

/* Projects */
.projects {
    padding: 100px 0;
    background: transparent;
    /* Consitent dark theme */
    color: #fff;
    /* White text for dark bg */
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-stack span {
    background: #00d4ff;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    text-decoration: none;
    color: #00d4ff;
    font-weight: bold;
}

.update-note {
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
    opacity: 0.8;
}

/* Contact */
.contact {
    padding: 100px 0;
    /* Use a slightly different dark shade or gradient to separate from About */
    background: transparent;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #00d4ff;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

.section-title-3d {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #00d4ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.section-desc-3d {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    color: #ccc;
}

.contact-wrapper-3d {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* Glassmorphism Form */
.contact-form-3d {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.contact-form-3d:hover {
    transform: translateZ(20px);
    border-color: rgba(0, 212, 255, 0.3);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    text-align: left;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px 5px 0 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s;
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -20px;
    left: 0;
    color: #00d4ff;
    font-size: 0.9rem;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.highlight-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}

.input-group input:focus~.highlight-bar,
.input-group textarea:focus~.highlight-bar {
    width: 100%;
}

.submit-btn-3d {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #0077ff);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn-3d:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
}

/* Social Connect 3D */
.social-connect-3d {
    flex: 0 0 300px;
    /* Fixed width for social part */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.social-connect-3d:hover {
    transform: translateZ(20px) rotateY(-5deg);
    border-color: rgba(0, 212, 255, 0.3);
}

.social-connect-3d h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #fff;
}

.social-links-3d {
    display: flex;
    flex-direction: column;
    /* Stack vertically or Grid? Let's stack or grid for visual interest. Grid is better for 4 items */
    gap: 1.5rem;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hover colors specific to brand */
.social-btn.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 0 20px #0077b5;
    transform: translateY(-5px) scale(1.1);
}

.social-btn.github:hover {
    background: #333;
    box-shadow: 0 0 20px #555;
    transform: translateY(-5px) scale(1.1);
}

.social-btn.email:hover {
    background: #ea4335;
    box-shadow: 0 0 20px #ea4335;
    transform: translateY(-5px) scale(1.1);
}

.social-btn.phone:hover {
    background: #25d366;
    box-shadow: 0 0 20px #25d366;
    transform: translateY(-5px) scale(1.1);
}

/* Basic green for phone */

/* Footer */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    /* Stack hero content on mobile */
    .hero-content {
        flex-direction: column-reverse;
        /* Image on top? Or Text on top? Usually Image top on mobile or text top. Let's do column (Text top) */
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        /* Space for fixed header */
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }

    .description {
        margin: 0 auto 2rem auto;
    }

    .hero-image {
        justify-content: center;
    }

    .img-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* FINAL MODERN PREMIUM STYLES */

/* 1. Global Background (Dark 3D Mesh) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* 2. Hero Social Icons */
.hero-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.hero-socials a:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* 3. Skill Cards (Glassmorphism & 3D) */
.skill-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.skill-card-modern:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.skill-card-modern .skill-icon {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 20px;
    background: rgba(0, 255, 136, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.proficiency-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.skill-card-modern:hover .proficiency-overlay {
    opacity: 1;
}

.proficiency-overlay .percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00ff88;
}

/* 4. Navigation & Buttons (Modernized) */
.nav-links a {
    padding: 10px 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 5. WhatsApp Toggle Fix */
.whatsapp-float.hidden {
    display: none !important;
}


/* REFINED PROFESSIONAL STYLES */
.professional-intro {
    font-size: 1.25rem;
    color: #f0f0f0;
    line-height: 2.2;
    text-align: left;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 5px solid #00d4ff;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.whatsapp-cta {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3) !important;
    font-weight: 700 !important;
}

.whatsapp-cta:hover {
    background: linear-gradient(135deg, #2cfc7a 0%, #25d366 100%) !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.skill-card-modern p {
    font-size: 0.95rem;
    color: #bbb;
    margin-top: 10px;
    line-height: 1.5;
}

/* SKILL DETAIL OVERLAY STYLES */
.skill-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-detail-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    z-index: 11;
}

.overlay-close:hover {
    color: #ff0055;
    transform: rotate(90deg);
}

.detail-wrapper {
    flex-direction: row-reverse;
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    gap: 50px;
    align-items: center;
}

/* Left side - Energy Circle */
.detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.energy-circle {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.circle-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #00d4ff;
    border-bottom: 3px solid #00ff88;
    border-radius: 50%;
    animation: rotateCircle 4s linear infinite;
}

.energy-circle::before {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    filter: blur(20px);
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.skill-main-icon {
    font-size: 6rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    z-index: 1;
}

#detail-skill-title {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 20px;
}

/* Right side - Info Hub */
.detail-right {
    flex: 1.5;
}

.info-hub {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-detail-overlay.visible .info-hub {
    transform: translateX(0);
    opacity: 1;
}

.hub-header {
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#detail-skill-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-tag {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.tool-tag:hover {
    background: #00d4ff;
    color: #000;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .detail-wrapper {
        flex-direction: column;
        height: auto;
        padding-top: 80px;
    }

    .energy-circle {
        width: 150px;
        height: 150px;
    }

    .skill-main-icon {
        font-size: 3rem;
    }

    .info-hub {
        padding: 20px;
    }
}

/* 5. WhatsApp Floating Button (Icon Only) */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #2cfc7a 0%, #25d366 100%);
}

.whatsapp-float.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

/* TERMINAL / N8N STYLE PANEL */
.terminal-box {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    font-family: 'Fira Code', 'Courier New', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-header .title {
    color: #8b949e;
    font-size: 0.85rem;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    color: #7ee787;
    /* Green text - Matrix/Coding feel */
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.terminal-body .json-key {
    color: #d2a8ff;
}

.terminal-body .json-str {
    color: #a5d6ff;
}

.terminal-body .json-val {
    color: #ffab70;
}

/* FINAL UI POLISH */
.skill-card-modern {
    cursor: pointer;
}

.whatsapp-float {
    display: none !important;
}

#detail-json pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.services-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1000px;
}

.service-card-3d {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card-3d:hover {
    transform: translateY(-15px) rotateX(10deg);
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    color: #00ff88;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
    transition: transform 0.3s;
}

.service-card-3d:hover .service-icon {
    transform: translateZ(30px) scale(1.1);
}

.service-card-3d h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-3d p {
    color: #bbb;
    line-height: 1.7;
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

/* Education Section */
.education {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.education-grid-3d {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 50px auto 0;
    perspective: 1000px;
}

.education-card-3d {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    gap: 40px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.education-card-3d:hover {
    transform: translateZ(20px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.education-card-3d::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #00d4ff;
    opacity: 0.5;
}

.education-card-3d.highlight-edu {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.03);
}

.education-card-3d.highlight-edu::before {
    background: #00ff88;
}

.edu-date {
    flex: 0 0 180px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00d4ff;
    position: relative;
}

.highlight-edu .edu-date {
    color: #00ff88;
}

.edu-info h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.edu-info p {
    color: #ccc;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .education-card-3d {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }

    .edu-date {
        flex: none;
    }
}

/* Education Interaction */
.education-card-3d {
    cursor: pointer;
}

.education-card-3d:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.education-card-3d.highlight-edu:hover {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Floating Resume Button */
.resume-btn-float {
    position: absolute;
    top: 10px;
    right: -20px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-btn-float i {
    font-size: 1.2rem;
    color: #00d4ff;
    transition: transform 0.3s;
}

.resume-btn-float:hover {
    transform: translateX(10px) scale(1.05);
    background: #00d4ff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.resume-btn-float:hover i {
    color: #000;
    transform: translateY(3px);
}

/* Mobile adjust for resume btn */
@media (max-width: 900px) {
    .resume-btn-float {
        right: 0;
        top: -10px;
    }
}

/* Project Interactivity */
.project-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.project-image img {
    transition: transform 0.5s ease;
}

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

/* Success Message Styling */
.success-message-3d {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-content {
    text-align: center;
}

.success-content .check-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.success-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-content p {
    color: #ccc;
    margin-bottom: 2rem;
}

.back-btn-small {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn-small:hover {
    background: #00d4ff;
    color: #000;
    border-color: #fff;
}


/* New GitHub Button in Overlay */
.github-btn-overlay {
    display: none;
    /* JS toggles this */
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.github-btn-overlay:hover {
    background: #00d4ff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}