/* Global Styles - Dark Theme with Neon Blue and Terminal Green */
:root {
    --primary-color: #00b7ff; /* Neon blue */
    --secondary-color: #1a1a2e; /* Dark navy */
    --accent-color: #4ade80; /* Terminal green */
    --text-color: #e2e8f0; /* Light gray for text */
    --light-text: #f8f9fa; /* Almost white text */
    --bg-color: #121212; /* Dark background */
    --bg-dark: #0a0a0a; /* Darker background */
    --bg-light: #1e1e24; /* Slightly lighter background */
    --border-color: #2d2d3a; /* Dark borders */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Darker shadow */
    --card-bg: #1a1a2e; /* Card background */
    --gradient-bg: linear-gradient(135deg, #121212 0%, #1a1a2e 100%); /* Dark gradient */
    --code-bg: #0d1117; /* Code background */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    color: var(--light-text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.4);
    position: relative;
    padding-left: 42px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.primary-btn:hover {
    background-color: #00a0e0;
    color: var(--light-text);
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 183, 255, 0.2);
}

.secondary-btn:hover {
    background-color: rgba(0, 183, 255, 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.4);
}

section {
    padding: 60px 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--bg-dark);
    width: auto;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.2);
    border: 1px solid rgba(0, 183, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    z-index: 0;
}

.code-bracket {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.code-text {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(0, 183, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section with Featured Projects */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 183, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(74, 222, 128, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-projects {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 183, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.hero-projects::-webkit-scrollbar {
    width: 6px;
}

.hero-projects::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 3px;
}

.hero-projects::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.hero-projects::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.hero-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--light-text);
    text-align: center;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.featured-projects {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-project-card {
    background-color: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.featured-project-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left-color: var(--accent-color);
}

.featured-project-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

.featured-project-card .project-tech {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.featured-project-card .project-description-short {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.featured-project-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.featured-project-link::after {
    content: ' →';
    opacity: 0;
    transition: var(--transition);
}

.featured-project-link:hover::after {
    opacity: 1;
    margin-left: 5px;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 183, 255, 0.6);
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

.profile-image:hover img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light-text);
    text-shadow: 0 0 10px rgba(0, 183, 255, 0.3);
    letter-spacing: -0.5px;
    font-weight: 700;
    white-space: nowrap;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 183, 255, 0.4);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.5;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* Media Queries for Hero Section */
@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-projects {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .featured-project-card {
        padding: 15px;
    }
    
    .featured-project-card h4 {
        font-size: 1rem;
    }
}

/* About Section */
.about {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* About Section Content */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.about-text p {
    margin-bottom: 20px;
}

.education, .additional-experience {
    margin-top: 30px;
}

.education h3, .additional-experience h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.education-item, .experience-item {
    margin-bottom: 15px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.education-item h4, .experience-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-text);
}

.experience-item ul {
    padding-left: 20px;
    list-style-type: disc;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 183, 255, 0.1);
    color: var(--text-color);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.skill-category {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 183, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 183, 255, 0.3);
}

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

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

.skill-item {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.skill-item:hover {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 183, 255, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--primary-color) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 183, 255, 0.3);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.project-tech {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.project-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.project-link i {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 183, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 183, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 183, 255, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--light-text);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 183, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--light-text);
}

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

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-link {
        flex: 1;
        min-width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-items {
        gap: 8px;
    }
    
    .skill-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}

/* Fix for very small screens */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .skill-category {
        padding: 15px;
    }
    
    .skill-item {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Sound toggle button - Apple inspired */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-toggle:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
}
