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

:root {
    --primary-cyan: #00f3ff;
    --secondary-purple: #b537ff;
    --dark-bg: #0a0e27;
    --darker-bg: #050815;
    --card-bg: rgba(15, 23, 42, 0.7);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(0, 243, 255, 0.3);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
#canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 8, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-text h3 {
    font-size: 1.1rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: slideRight 1s ease-out 0.2s both;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: slideRight 1s ease-out 0.4s both;
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: slideRight 1s ease-out 0.6s both;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: slideRight 1s ease-out 0.8s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideRight 1s ease-out 1s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    color: white;
    border: none;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: var(--darker-bg);
    transform: translateY(-3px);
}

/* 3D Cube Visualization */
.hero-visual {
    perspective: 1000px;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cube-container {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
    margin: 0 auto;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-cyan);
    background: rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.cube-face.front  { transform: translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(150px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(150px); }

/* Sections */
section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--primary-cyan);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3::before {
    content: '▸';
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li:hover {
    color: var(--primary-cyan);
    padding-left: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.project-header {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(181, 55, 255, 0.1));
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.project-body {
    padding: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 1rem;
    color: var(--secondary-purple);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-cyan);
    margin-bottom: 0.3rem;
    font-family: 'Orbitron', sans-serif;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-cyan);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

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

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-cyan);
    color: var(--darker-bg);
    transform: translateY(-5px);
}

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

    .hero-text h1 {
        font-size: 3rem;
    }

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

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

    .nav-links {
        gap: 1.5rem;
    }

    .cube-container {
        width: 250px;
        height: 250px;
    }

    .cube-face {
        width: 250px;
        height: 250px;
        font-size: 1.5rem;
    }

    .cube-face.front,
    .cube-face.back,
    .cube-face.right,
    .cube-face.left,
    .cube-face.top,
    .cube-face.bottom {
        transform: translateZ(125px);
    }

    .cube-face.back { transform: rotateY(180deg) translateZ(125px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(125px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(125px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(125px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}