:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #0f172a;
    --text-color: #e2e8f0;
    --accent-color: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.logo {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #64ffda;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.logo-text:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover i {
    transform: translateY(-2px);
    color: #64ffda;
}

.nav-links a span {
    position: relative;
}

.nav-links a.active i,
.nav-links a.active span {
    color: #64ffda;
}

.nav-links a:hover {
    color: #64ffda;
}

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

.nav-links a.active {
    color: #64ffda;
}

.nav-links a.active::before {
    width: 100%;
}

.navbar.scrolled {
    padding: 1rem 2rem;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-links a::after {
    content: attr(data-number);
    color: #64ffda;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    display: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    background: #0a192f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text-container {
    text-align: left;
    margin-bottom: 3rem;
}

.greeting {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.5s;
}

.main-title {
    font-size: 5rem;
    line-height: 1.1;
    margin: 1rem 0;
    color: #ccd6f6;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.7s;
}

.main-title .highlight {
    display: block;
    color: #64ffda;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.typing-text {
    font-size: 2.5rem;
    color: #8892b0;
    margin: 1rem 0;
    min-height: 3.5rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.9s;
}

.tech-stack {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards calc(1.1s + var(--delay) * 0.1s);
}

.tech-item i {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.tech-item span {
    font-size: 0.9rem;
    color: #8892b0;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    box-shadow: 0 10px 30px -15px rgba(100, 255, 218, 0.3);
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.primary {
    background: #64ffda;
    color: #0a192f;
}

.primary:hover {
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

.secondary {
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
}

.secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.3s ease;
    }

    .nav-links a {
        justify-content: center;
        padding: 1rem;
    }

    .nav-links a i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    .nav-links a span {
        position: relative;
    }

    .nav-links a:hover {
        color: #64ffda;
        background: rgba(100, 255, 218, 0.05);
    }

    .nav-links a::after {
        content: attr(data-number);
        display: inline-block;
        color: #64ffda;
        font-size: 0.9rem;
        margin-left: 0.5rem;
        opacity: 0.7;
        display: none;
    }

    .nav-active {
        right: 0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-btn {
        display: block !important;
        transition: transform 0.3s ease;
    }

    .menu-active i {
        transform: rotate(90deg);
    }

    .hero-text-container {
        text-align: center;
    }

    .main-title {
        font-size: 3rem;
    }

    .typing-text {
        font-size: 1.8rem;
    }

    .tech-stack {
        gap: 1rem;
    }

    .tech-item {
        padding: 1rem;
    }

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

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

.contact {
    min-height: 100vh;
    background: #0a192f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    color: #5eead4;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(94, 234, 212, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #5eead4;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

.contact-desc {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #5eead4;
    padding: 2rem;
    background: rgba(94, 234, 212, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(94, 234, 212, 0.2);
    transition: all 0.3s ease;
    width: 200px;
    box-shadow: 0 4px 20px -10px rgba(94, 234, 212, 0.2);
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5eead4;
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
}

.contact-item span {
    font-size: 1.1rem;
    color: #94a3b8;
}

.contact-item:hover {
    background: rgba(94, 234, 212, 0.1);
    border-color: #5eead4;
    box-shadow: 0 10px 30px -15px rgba(94, 234, 212, 0.4);
    transform: translateY(-10px);
}

.contact-item:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contact-item:hover span {
    color: #5eead4;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

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

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.menu-icon {
    position: relative;
    width: 100%;
    height: 100%;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #64ffda;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon span:nth-child(3) {
    bottom: 0;
}

.menu-active .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

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

.menu-active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

.nav-active {
    right: 0;
}

.menu-active i {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .tech-stack {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .tech-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        margin: 0;
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
    }

    .hero-content {
        padding: 1rem;
        margin-top: 4rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

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

    .contact-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
    }

    .tech-stack {
        flex-wrap: wrap;
    }

    .hero-content {
        padding: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* About section styles */
.about {
    min-height: 100vh;
    background: #0a192f;
    padding: 100px 2rem;
    display: flex;
    align-items: center;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    color: #8892b0;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #8892b0;
    max-width: 700px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #8892b0;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
}

.skill-item i {
    color: #64ffda;
    font-size: 0.8rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .about {
        padding: 80px 1.5rem;
    }

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

    .about-description p {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 500px;
        margin: 2rem auto;
    }
}

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

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

    .skill-item {
        font-size: 0.9rem;
    }
}

.about-intro {
    margin-bottom: 3rem;
}

.highlight-text {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.expertise-areas {
    margin: 3rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.expertise-item {
    background: rgba(100, 255, 218, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
}

.expertise-item i {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.expertise-item h4 {
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.tech-category h4 {
    color: #64ffda;
    margin-bottom: 1rem;
}

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

.tech-category li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #8892b0;
}

.tech-category i {
    color: #64ffda;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .expertise-grid,
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Projects section styles */
.projects {
    padding: 100px 2rem;
    background: #0a192f;
    min-height: 100vh;
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-desc {
    color: #8892b0;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.project-card {
    background: rgba(2, 12, 27, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: #64ffda;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #ccd6f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: #8892b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-link {
    color: #64ffda;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #ccd6f6;
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

.project-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateY(-1px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .projects {
        padding: 60px 1rem;
    }

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

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.required {
    color: #64ffda;
    margin-left: 4px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #64ffda;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group textarea {
    padding-left: 2.8rem;
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #64ffda;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.1);
}

.input-group input:focus + i,
.input-group textarea:focus + i {
    color: #64ffda;
    transform: scale(1.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #64ffda 0%, #48cae4 100%);
    color: #0a192f;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

.form-title {
    color: #64ffda;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.tech-group {
    background: rgba(2, 12, 27, 0.7);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.tech-category-title {
    color: #64ffda;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.tech-category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #64ffda 0%, rgba(100, 255, 218, 0) 100%);
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #64ffda;
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.2);
}

.tech-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tech-icon i {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.tech-box:hover .tech-icon i {
    transform: scale(1.1);
}

.tech-box h5 {
    color: #ccd6f6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tech-box p {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .tech-box {
        padding: 1rem;
    }

    .tech-icon i {
        font-size: 2rem;
    }

    .tech-box h5 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-icon i {
        font-size: 1.5rem;
    }
} 