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

:root {
    --primary: #4a7c8f;
    --secondary: #2d5a6b;
    --accent: #6b5b95;
    --dark: #1a1a1f;
    --darker: #0f0f13;
    --text-light: #d4d4d8;
    --text-muted: #a1a1a6;
    --gradient: linear-gradient(135deg, #4a7c8f, #6b5b95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo-icon {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(131, 56, 236, 0.1));
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
}

.terminal-window {
    background: var(--darker);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    overflow: hidden;
    flex: 1;
    animation: slideInLeft 0.8s ease;
}

.terminal-header {
    background: var(--primary);
    color: var(--dark);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 0.9rem;
}

.close-btn {
    cursor: pointer;
}

.terminal-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    min-height: 300px;
}

.terminal-text {
    color: var(--primary);
    margin-bottom: 5px;
}

.terminal-response {
    color: var(--text-light);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid var(--accent);
}

.typing {
    animation: typing 1s steps(20, end) infinite;
}

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

.hero-text {
    flex: 1;
    animation: slideInRight 0.8s ease;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

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

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.float-item {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.float-item:nth-child(1) {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.float-item:nth-child(3) {
    top: 40%;
    right: 5%;
    animation-delay: 2s;
}

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

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

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

/* About Section */
.about {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(131, 56, 236, 0.05) 100%);
}

.about h2, .experience h2, .skills h2, .achievements h2, .interests h2, .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.lang-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(131, 56, 236, 0.1);
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(131, 56, 236, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

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

/* Experience Section */
.experience {
    padding: 80px 20px;
}

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

.exp-card {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.exp-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.exp-date {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.exp-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.exp-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.exp-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Projects Section */
.projects {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 212, 255, 0.05) 100%);
}

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

.project-card {
    background: rgba(131, 56, 236, 0.05);
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(131, 56, 236, 0.2);
}

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

.project-header h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    flex: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.project-link:hover {
    background: var(--primary);
    color: var(--dark);
}

.project-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(131, 56, 236, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}

/* Achievements Section */
.achievements {
    padding: 80px 20px;
}

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

.achievement-card {
    background: rgba(255, 0, 110, 0.05);
    border: 2px solid var(--secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.achievement-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interests Section */
.interests {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(131, 56, 236, 0.05) 100%);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.interest-card {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.interest-label {
    font-size: 1.1rem;
    display: block;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.contact-btn i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(74, 124, 143, 0.3);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

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

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .terminal-window {
        width: 100%;
    }

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

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

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

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

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

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

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

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

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem !important;
    }

    .terminal-body {
        font-size: 0.85rem;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
