/* ===================================
   Modern CSS Variables
   =================================== */
:root {
    /* Gradient Colors */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(266,87%,58%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsla(340,89%,66%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsla(198,100%,68%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, hsla(285,100%,75%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, hsla(219,100%,74%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 100%, hsla(329,89%,66%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 0%, hsla(189,100%,71%,1) 0px, transparent 50%);
    
    /* Colors */
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f5576c;
    --dark: #0f0f1e;
    --darker: #05050a;
    --light: #ffffff;
    --gray: #8b92a8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Effects */
    --blur: 20px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--light);
}

/* ===================================
   Animated Background
   =================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--darker);
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-2);
    bottom: -300px;
    right: -300px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ===================================
   Glass Morphism Effect
   =================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 30, 0.8);
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.nav-menu ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 16px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    border-radius: 30px;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light);
    box-shadow: var(--shadow-glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

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

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: slideDown 1s ease;
}

.hero-badge i {
    color: #ffd700;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideUp 1s ease;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--gray);
    margin-bottom: 20px;
    min-height: 40px;
    animation: slideUp 1s ease 0.2s both;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: slideUp 1s ease 0.4s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: slideUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    border: 2px solid transparent;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 30px;
    animation: slideUp 1s ease 0.8s both;
}

.stat-box {
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--gray);
    font-size: 14px;
}

/* Hero Image */
.image-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 5px;
    animation: rotate 20s linear infinite;
    position: relative;
}

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

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--primary);
}

.floating-card {
    position: absolute;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-1 {
    top: 50px;
    left: -50px;
    animation-delay: 0s;
}

.card-2 {
    top: 50px;
    right: -50px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
    animation: scroll 2s infinite;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scrollDot {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ===================================
   Section Header
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 20px;
    color: var(--light);
}

.section-badge i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: rgba(0, 0, 0, 0.2);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-main {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--light);
}

.skill-orbit {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: orbit 10s linear infinite;
}

.orbit-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    color: #e34c26;
}

.orbit-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2.5s;
    color: #264de4;
}

.orbit-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 5s;
    color: #f0db4f;
}

.orbit-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 7.5s;
    color: #61dafb;
}

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

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.skill-tag {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--light);
}

.gradient-bg {
    background: var(--gradient-primary);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card > p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary);
}

.service-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 72px;
    font-weight: 900;
    opacity: 0.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    background: rgba(0, 0, 0, 0.2);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    background: transparent;
    color: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

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

.project-card {
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card.hide {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }
.gradient-6 { background: var(--gradient-6); }

.project-icon {
    font-size: 80px;
    color: var(--light);
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    padding: 15px 30px;
    background: var(--light);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.project-info {
    padding: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-category {
    padding: 6px 15px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.project-like {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.project-like:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info > p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary);
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Project Modal
   =================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 30px;
    animation: modalSlideUp 0.5s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-image {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-icon {
    font-size: 100px;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.modal-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.modal-description {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.detail-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 5px;
}

.detail-item span {
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 16px;
    margin-top: 5px;
}

.modal-features {
    margin-bottom: 30px;
}

.modal-features h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-features-list {
    list-style: none;
}

.modal-features-list li {
    padding: 10px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-features-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--light);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-card p {
    color: var(--gray);
}

.social-links-contact {
    margin-top: 20px;
}

.social-links-contact h4 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    padding: 40px;
    border-radius: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray);
    line-height: 1.8;
}

.footer-newsletter {
    padding: 30px;
    border-radius: 20px;
}

.footer-newsletter h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: var(--gray);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.footer-bottom i {
    color: var(--accent);
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image {
        order: -1;
    }

    .image-container {
        height: 400px;
    }

    .profile-ring {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

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

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

    .image-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: calc(100% - 40px);
        margin: 0 20px;
        background: rgba(15, 15, 30, 0.95);
        backdrop-filter: blur(var(--blur));
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .profile-ring {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        padding: 10px 15px;
        font-size: 12px;
    }

    .floating-card i {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-box {
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .service-card,
    .contact-form {
        padding: 25px;
    }

    .project-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}