/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f0f1e;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252538;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b8a;
    --border-color: rgba(139, 92, 246, 0.2);
    --glow-color: rgba(99, 102, 241, 0.4);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--glow-color);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Particle Background ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #1a1a2e 0%, #0f0f1e 100%);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 30, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Main Content ===== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    min-height: 100vh;
}

.hero-section {
    padding: 2rem 0 4rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
}

/* ===== Profile Card ===== */
.profile-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
    height: fit-content;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: floatCard 6s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.4);
    animation-play-state: paused;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.6);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.profile-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.nav-btn.active {
    background: var(--gradient-1);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.nav-btn i {
    font-size: 1.3rem;
}

.nav-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Content Area ===== */
.content-area {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.content-area::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.name-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.role-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.bio-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-showcase {
    margin-top: 3rem;
}

.showcase-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(99, 102, 241, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    font-size: 2rem;
    color: white;
}

.skill-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-container {
        max-width: 1600px;
        grid-template-columns: 380px 1fr;
        gap: 4rem;
    }

    .content-area {
        padding: 3.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet & Small Desktop (1024px and below) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        position: relative;
        top: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .name-large {
        font-size: 1.5rem;
    }

    .showcase-title {
        font-size: 1.5rem;
    }

    /* Layout */
    .content-area {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }

    .profile-card {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .profile-glow {
        width: 180px;
        height: 180px;
    }

    /* Grids */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.75rem 0.5rem;
    }

    .nav-btn i {
        font-size: 1.1rem;
    }

    .nav-btn span {
        font-size: 0.75rem;
    }

    /* Skill Cards */
    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        width: 60px;
        height: 60px;
    }

    .skill-icon i {
        font-size: 1.5rem;
    }

    /* Contact Items */
    .contact-item {
        padding: 1rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }
}

/* Mobile Landscape & Small Tablets (640px and below) */
@media (max-width: 640px) {
    .main-content {
        padding-top: 80px;
    }

    .hero-section {
        padding: 1.5rem 0 3rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-title {
        font-size: 0.85rem;
    }

    .info-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .info-item i {
        font-size: 1rem;
    }

    .bio-text {
        font-size: 0.95rem;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {

    /* Navigation */
    .logo {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    /* Layout */
    .hero-container {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .profile-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }

    .name-large {
        font-size: 1.3rem;
    }

    .showcase-title {
        font-size: 1.3rem;
    }

    /* Profile */
    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .profile-glow {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    /* Navigation Buttons */
    .nav-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .nav-btn {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .nav-btn i {
        font-size: 1.2rem;
    }

    .nav-btn span {
        font-size: 0.9rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Skill Cards */
    .skill-card {
        padding: 1.25rem;
    }

    .skill-card h4 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.9rem;
    }

    /* Footer */
    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link i {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.4rem;
    }

    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .profile-glow {
        width: 140px;
        height: 140px;
    }

    .content-area {
        padding: 1.25rem 0.75rem;
    }

    .profile-card {
        padding: 1.25rem 0.75rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
    }

    .skill-icon i {
        font-size: 1.3rem;
    }
}

/* Disable 3D effects on mobile for better performance */
@media (max-width: 768px) {
    .profile-card {
        animation: none;
    }

    .skill-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .content-area::before {
        animation: none;
    }
}

/* Print Styles */
@media print {

    #particles-js,
    .navbar,
    .footer,
    .nav-buttons {
        display: none;
    }

    .profile-card {
        position: relative;
        top: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    body {
        background: white;
        color: black;
    }
}