/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Refined Futuristic Palette */
    --bg-primary: hsl(220, 25%, 8%);
    --bg-secondary: hsl(220, 20%, 12%);
    --bg-card: hsl(220, 20%, 12%);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 70%);
    --text-muted: hsl(215, 20%, 65%);
    --color-primary: hsl(250, 80%, 65%);
    --color-accent: hsl(190, 85%, 55%);
    --color-neon: hsl(280, 90%, 60%);
    --color-cyber: hsl(170, 80%, 50%);
    --border-color: hsl(220, 15%, 18%);

    /* Refined Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(250, 80%, 65%) 0%, hsl(190, 85%, 55%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(220, 20%, 12%) 0%, hsl(220, 15%, 18%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(250, 80%, 65%) 0%, hsl(220, 90%, 65%) 50%, hsl(190, 85%, 55%) 100%);
    --gradient-neon: linear-gradient(45deg, hsl(280, 90%, 60%), hsl(250, 80%, 65%));
    --gradient-cyber: linear-gradient(90deg, hsl(170, 80%, 50%), hsl(190, 85%, 55%));

    /* Refined Shadows and Glows */
    --shadow-glow: 0 0 40px hsl(250 80% 65% / 0.3), 0 0 80px hsl(190 85% 55% / 0.2);
    --shadow-neon: 0 0 20px hsl(280 90% 60% / 0.4), 0 0 40px hsl(280 90% 60% / 0.2);
    --shadow-cyber: 0 0 20px hsl(170 80% 50% / 0.4), 0 0 40px hsl(170 80% 50% / 0.2);
    --shadow-card: 0 10px 30px -10px hsl(220 25% 8% / 0.5);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(100, 80, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.01) 50%),
        linear-gradient(0deg, transparent 50%, rgba(255, 255, 255, 0.01) 50%);
    background-size: 120px 120px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(25, 30, 40, 0.7);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-button:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.06;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.particle::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.particle-1 {
    top: 5rem;
    left: 5rem;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    box-shadow: 0 0 10px currentColor;
    animation-delay: 0s;
}

.particle-2 {
    top: 10rem;
    right: 8rem;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    box-shadow: 0 0 8px currentColor;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 8rem;
    left: 25%;
    width: 7px;
    height: 7px;
    background: var(--color-neon);
    box-shadow: 0 0 12px currentColor;
    animation-delay: 0.5s;
}

.particle-4 {
    bottom: 5rem;
    right: 5rem;
    width: 9px;
    height: 9px;
    background: var(--color-cyber);
    box-shadow: 0 0 10px currentColor;
    animation-delay: 0.7s;
}

.particle-5 {
    top: 50%;
    left: 10%;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    box-shadow: 0 0 8px currentColor;
    animation-delay: 2s;
}

.particle-6 {
    top: 30%;
    right: 15%;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    box-shadow: 0 0 10px currentColor;
    animation-delay: 1.5s;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: 4rem;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title .gradient-text {
    text-shadow: 0 0 10px rgba(100, 80, 255, 0.3), 0 0 20px rgba(0, 200, 255, 0.2);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-arrow {
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-arrow svg {
    width: 2rem;
    height: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.hero-arrow:hover svg {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn * {
    position: relative;
    z-index: 2;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(250, 70%, 55%) 0%, hsl(220, 80%, 60%) 100%);
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, hsl(250, 80%, 65%) 0%, hsl(220, 90%, 70%) 100%);
    box-shadow: 0 0 30px rgba(100, 80, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.btn-outline {
    border: 2px solid transparent;
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-cyber);
    border-radius: var(--radius);
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.btn-outline:hover {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    box-shadow: var(--shadow-cyber);
    transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
    color: var(--text-primary);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--color-primary);
}

.btn-primary-sm,
.btn-outline-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary-sm {
    background: linear-gradient(135deg, hsl(250, 70%, 55%) 0%, hsl(220, 80%, 60%) 100%);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-sm:hover {
    background: linear-gradient(135deg, hsl(250, 80%, 65%) 0%, hsl(220, 90%, 70%) 100%);
    box-shadow: 0 0 20px rgba(100, 80, 255, 0.4);
    transform: translateY(-1px) scale(1.02);
}

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

.btn-outline-sm:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

/* Text utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.primary-text {
    color: var(--color-primary);
    font-weight: 600;
}

.accent-text {
    color: var(--color-accent);
    font-weight: 600;
}

/* Ensure button text is always visible */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.btn-primary *,
.btn-primary:hover *,
.btn-primary:focus *,
.btn-primary:active * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Section styles */
.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(100, 80, 255, 0.3);
}

.section-description {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.specialties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.specialty-card:hover {
    box-shadow: var(--shadow-card), 0 0 30px rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.specialty-card:hover::before {
    left: 100%;
}

.specialty-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.specialty-icon.accent {
    color: var(--color-accent);
}

.specialty-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.specialty-card p {
    color: var(--text-muted);
}

.about-journey {
    text-align: center;
}

.about-journey h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-journey p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: rgba(29, 33, 41, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-card);
}

.skill-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.skill-category-title.primary {
    color: var(--color-primary);
}

.skill-category-title.accent {
    color: var(--color-accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-primary);
}

.skill-tag:hover::before {
    left: 0;
    opacity: 0.1;
}

.skills-highlight {
    background: var(--gradient-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.skills-highlight h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skills-highlight p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-card), 0 0 40px var(--color-primary), 0 0 80px rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) scale(1.03);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.project-card:hover::before {
    left: 100%;
}

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

.project-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px currentColor);
}

.project-icon.accent {
    color: var(--color-accent);
}

.project-card:hover .project-icon {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 20px currentColor);
}

.project-badge {
    background: rgba(46, 51, 64, 0.8);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background: rgba(46, 51, 64, 0.8);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 0.75rem;
}

.projects-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: rgba(29, 33, 41, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: rgba(46, 51, 64, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(29, 33, 41, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(29, 33, 41, 0.5);
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-icon.accent {
    color: var(--color-accent);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

.social-links h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(29, 33, 41, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(29, 33, 41, 0.5);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.availability {
    background: var(--gradient-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.availability h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.availability p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: rgba(29, 33, 41, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(46, 51, 64, 0.5);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: rgba(46, 51, 64, 1);
    color: var(--color-primary);
}

.footer-social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 1rem;
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.toast h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Enhanced Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -1rem, 0);
    }
    70% {
        transform: translate3d(0, -0.5rem, 0);
    }
    90% {
        transform: translate3d(0, -0.25rem, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        box-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neonBlink {
    0%, 100% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
    50% {
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: var(--color-primary);
        box-shadow: 0 0 20px var(--color-primary);
    }
    25% {
        border-color: var(--color-accent);
        box-shadow: 0 0 20px var(--color-accent);
    }
    50% {
        border-color: var(--color-neon);
        box-shadow: 0 0 20px var(--color-neon);
    }
    75% {
        border-color: var(--color-cyber);
        box-shadow: 0 0 20px var(--color-cyber);
    }
}


/* Mobile menu styles */
.nav-menu.active {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(29, 33, 41, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-menu.active.show {
    transform: translateY(0);
    opacity: 1;
}

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

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

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


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

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .specialties {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-social {
        gap: 1rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.125rem;
    }

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

    .project-card {
        padding: 1rem;
    }

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