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

:root {
    --primary-color: #ffb400;
    --secondary-color: #1e1e1e;
    --text-color: #fff;
    --text-secondary: #d1d1d1;
    --bg-dark: #0a0a0a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Animated Background Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Gradient Orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: float-orb 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffb400 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4ecdc4 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -100px) scale(1.1);
    }

    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
}

/* Navigation Styles with Glassmorphism */
.nav-container {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.icon-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icon-box {
    position: relative;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b, #4ecdc4);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.icon-box:hover::before,
.icon-box.active::before {
    opacity: 1;
    animation: rotate-gradient 3s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.icon-box:hover,
.icon-box.active {
    background: rgba(255, 180, 0, 0.2);
    transform: scale(1.15);
}

.icon-box i {
    font-size: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.icon-box:hover i {
    transform: rotate(360deg) scale(1.1);
    color: var(--primary-color);
}

.icon-box a {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.icon-box h2 {
    position: absolute;
    right: 70px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid rgba(255, 180, 0, 0.3);
}

.icon-box:hover h2 {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    background: rgba(255, 180, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(255, 180, 0, 0.3);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bg-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 100px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 180, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.5s forwards;
}

.mobile-menu.active li {
    animation: slideIn 0.5s forwards;
}

.mobile-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu li:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu li:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu li:nth-child(5) {
    animation-delay: 0.5s;
}

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

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.mobile-menu a:hover::before,
.mobile-menu a.active::before {
    transform: scaleY(1);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(255, 180, 0, 0.1);
    padding-left: 25px;
}

/* Main Content */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.image-section {
    position: relative;
    perspective: 1000px;
}

.image-container {
    position: relative;
    transform-style: preserve-3d;
    animation: tilt 10s ease-in-out infinite;
}

@keyframes tilt {

    0%,
    100% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: rotateY(5deg) rotateX(-5deg);
    }

    50% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    75% {
        transform: rotateY(-5deg) rotateX(5deg);
    }
}

.profile-image {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(255, 180, 0, 0.3),
        0 0 0 10px rgba(255, 180, 0, 0.1),
        0 0 0 20px rgba(255, 180, 0, 0.05);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.image-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(0) translateX(20px);
    }

    75% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Decorative Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-element 8s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.element-2 {
    bottom: 15%;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

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

.text-section {
    animation: fadeInUp 1s ease-out;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.text-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #d1d1d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-text {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 10px;
    min-height: 60px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.animated-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.text-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 30px 0;
    line-height: 1.8;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    animation: fadeIn 2s ease-out 1s both;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    opacity: 0;
    transition: var(--transition);
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a i {
    position: relative;
    z-index: 1;
}

.social-icons a:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 180, 0, 0.5);
}

/* Visitor Badge */
.visitor-badge {
    margin: 20px 0;
    animation: fadeIn 2.5s ease-out 1.5s both;
}

.visitor-badge img {
    border-radius: 8px;
    transition: var(--transition);
}

.visitor-badge img:hover {
    transform: scale(1.05);
}

/* Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--bg-dark);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 180, 0, 0.4);
    animation: fadeIn 3s ease-out 2s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(255, 180, 0, 0.6),
        0 0 30px rgba(255, 180, 0, 0.3);
}

.cta-button i {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover i {
    transform: translateX(8px);
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    animation: fadeIn 2s ease-out 1.2s both;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(255, 180, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 180, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .skills-tags {
        justify-content: center;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }

    .text-section h1 {
        font-size: 2rem;
    }

    .animated-text {
        font-size: 1.5rem;
    }

    .text-section p {
        font-size: 16px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        opacity: 0.2;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 180, 0, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}