:root {
    --primary: #0ea5e9;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --accent1: #ef4444;
    --accent2: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rajdhani", sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron", sans-serif;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* Removed conflicting hover effects */
}

/* Optional: Add subtle glow effect to the entire card on hover instead */
.project-card:hover {
    filter: drop-shadow(0 10px 30px rgba(8, 112, 184, 0.3));
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-border {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gradient-border::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent1), var(--accent2));
    z-index: -1;
    border-radius: 18px;
    background-size: 300% 300%;
    animation: gradient-animation 5s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.progress-bar {
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: progress-animation 2s ease infinite;
}

@keyframes progress-animation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    background: rgba(2, 6, 23, 0.3);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-3d {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 5;
}

.btn-futuristic {
    background: rgba(14, 165, 233, 0.1);
    color: var(--light);
    border: 1px solid var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-futuristic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.2);
}

.btn-futuristic::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: left 0.7s ease;
    z-index: -1;
}

.btn-futuristic:hover::before {
    left: 100%;
}

.project-card {
    height: 280px;
    perspective: 1000px;
    position: relative;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-front,
.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.project-back {
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.reveal {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

.reveal.animate {
    opacity: 0;
    transform: translateY(50px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.1) 30%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.1) 30%, transparent 70%);
}

.glow-2 {
    bottom: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
}

.glow-3 {
    top: 60%;
    right: 20%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 30%, transparent 70%);
}

.skill-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 16px;
    margin: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.skill-pill:hover {
    transform: translateY(-3px);
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}

.typing-effect::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

section {
    position: relative;
    z-index: 1;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    /* Optional: limit width */
    margin: 0 auto;
    /* Center the button row */
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.download-btn {
    background-color: #007bff;
    color: #fff;
}

.hire-btn {
    background-color: #28a745;
    color: #fff;
}


/* Mobile Menu Styles */
#mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.95);
}

.mobile-nav-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-3d {
        opacity: 0.3;
        width: 100%;
    }

    .navbar {
        width: 90%;
        padding: 10px 20px;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-content {
        padding-top: 100px;
    }

    .glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 95%;
        padding: 8px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-link {
        margin: 0 8px;
        font-size: 14px;
    }

}:root {
    --primary: #0ea5e9;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --accent1: #ef4444;
    --accent2: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rajdhani", sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron", sans-serif;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* Removed conflicting hover effects */
}

/* Optional: Add subtle glow effect to the entire card on hover instead */
.project-card:hover {
    filter: drop-shadow(0 10px 30px rgba(8, 112, 184, 0.3));
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-border {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gradient-border::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent1), var(--accent2));
    z-index: -1;
    border-radius: 18px;
    background-size: 300% 300%;
    animation: gradient-animation 5s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.progress-bar {
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: progress-animation 2s ease infinite;
}

@keyframes progress-animation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    background: rgba(2, 6, 23, 0.3);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-3d {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 5;
}

.btn-futuristic {
    background: rgba(14, 165, 233, 0.1);
    color: var(--light);
    border: 1px solid var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-futuristic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.2);
}

.btn-futuristic::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: left 0.7s ease;
    z-index: -1;
}

.btn-futuristic:hover::before {
    left: 100%;
}

.project-card {
    height: 280px;
    perspective: 1000px;
    position: relative;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-front,
.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.project-back {
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.reveal {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

.reveal.animate {
    opacity: 0;
    transform: translateY(50px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.1) 30%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.1) 30%, transparent 70%);
}

.glow-2 {
    bottom: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
}

.glow-3 {
    top: 60%;
    right: 20%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 30%, transparent 70%);
}

.skill-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 16px;
    margin: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.skill-pill:hover {
    transform: translateY(-3px);
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}

.typing-effect::after {
    content: "|";
    animation: blink 1s infinite;
}



@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

section {
    position: relative;
    z-index: 1;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    /* Optional: limit width */
    margin: 0 auto;
    /* Center the button row */
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.download-btn {
    background-color: #007bff;
    color: #fff;
}

.hire-btn {
    background-color: #28a745;
    color: #fff;
}


/* Mobile Menu Styles */
#mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.95);
}

.mobile-nav-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-3d {
        opacity: 0.3;
        width: 100%;
    }

    .navbar {
        width: 90%;
        padding: 10px 20px;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-content {
        padding-top: 100px;
    }

    .glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 95%;
        padding: 8px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-link {
        margin: 0 8px;
        font-size: 14px;
    }
}


/* Photo Container Styles */
.photo-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.photo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent1));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 8s linear infinite;
    filter: blur(20px);
    opacity: 0.7;
}

.photo-frame {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.photo-inner {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(14, 165, 233, 0.3);
}

.photo-hover-effect {
    transition: all 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
}

.photo-container:hover .photo-hover-effect {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2);
}

.photo-container:hover .photo-glow {
    opacity: 1;
    filter: blur(25px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for photo */
@media (max-width: 768px) {
    .photo-container {
        width: 250px !important;
        height: 250px !important;
        margin: 0 auto;
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content>div:first-child {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .hero-content .photo-container {
        display: block !important;
    }
}
