/* === Modern CSS Variables - Dark Theme === */
:root {
    --primary-dark: #0a0a0a;
    --primary-darker: #050505;
    --primary-light: #111111;
    --accent-purple: #8b5cf6;
    --accent-teal: #06d6a0;
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --text-white: #f8fafc;
    --text-bright: #ffffff;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #06d6a0 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-bright);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Animated Background - Dark Theme === */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--primary-darker);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, rgba(6, 214, 160, 0) 70%);
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
}

.shape-4 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 1;
    }
}

/* === Navigation - Dark Theme === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-bright);
    position: relative;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 0 0 10px var(--accent-teal);
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.8; 
        box-shadow: 0 0 20px var(--accent-teal);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--text-bright);
    margin: 5px;
    transition: var(--transition);
}

/* === Hero Section - Dark Theme === */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    position: relative;
    background: var(--gradient-hero);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-teal);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(6, 214, 160, 0.3);
    backdrop-filter: blur(10px);
}

.hero-greeting {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    min-height: 3rem;
}

.typed-text {
    font-weight: 600;
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(6, 214, 160, 0.3);
}

.cursor {
    display: inline-block;
    background-color: var(--accent-teal);
    margin-left: 0.1rem;
    width: 3px;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px var(--accent-teal);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 214, 160, 0.2);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-bright);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
}

.floating-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-teal);
    box-shadow: 0 0 30px rgba(6, 214, 160, 0.3);
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

/* === Projects Section - Dark Theme === */
.projects {
    padding: 6rem 0;
    background: var(--primary-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 214, 160, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 92, 246, 0.3);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 214, 160, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-badge {
    display: inline-block;
    background: rgba(6, 214, 160, 0.2);
    color: var(--accent-teal);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-bright);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.project-image .image-container {
    height: 200px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.project-image .image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.project-highlights {
    list-style: none;
    margin: 1rem 0;
}

.project-highlights li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.project-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.project-card.featured .tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-bright);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === About Section - Dark Theme === */
.about {
    padding: 6rem 0;
    background: var(--primary-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 214, 160, 0.1) 0%, transparent 50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-text strong {
    color: var(--text-bright);
}

.about-highlights {
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    border-color: rgba(6, 214, 160, 0.3);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.highlight-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-bright);
}

.highlight-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.visual-container {
    position: relative;
}

.main-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.main-photo:hover {
    transform: scale(1.02);
    border-color: var(--accent-teal);
    box-shadow: 0 0 40px rgba(6, 214, 160, 0.3);
}

.main-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.main-photo:hover img {
    transform: scale(1.05);
}

.visual-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.visual-element {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-teal);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(6, 214, 160, 0.3);
    animation: float 4s ease-in-out infinite;
    transition: var(--transition);
}

.visual-element:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(6, 214, 160, 0.5);
}

.element-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 25%;
    left: 5%;
    animation-delay: 1.5s;
}

.element-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

/* === Skills Section - Dark Theme === */
.skills {
    padding: 6rem 0;
    background: var(--primary-dark);
}

.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 92, 246, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--accent-teal);
}

.category-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-bright);
}

.skills-list {
    space-y: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
    z-index: 2;
}

/* === Contact Section - Dark Theme === */
.contact {
    padding: 6rem 0;
    background: var(--primary-light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    border-color: rgba(139, 92, 246, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.contact-details a, .contact-details span {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--accent-teal);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-bright);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.contact-visual {
    text-align: center;
}

.visual-message {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.visual-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.visual-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.visual-message h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.visual-message p {
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* === Footer - Dark Theme === */
footer {
    background: var(--primary-darker);
    color: var(--text-white);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-copyright {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 6rem 1rem 2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}