/* Base Styles */
:root {
    --primary-color: #4cc9f0; /* Soft cyan */
    --secondary-color: #7ee8fa; /* Lighter cyan */
    --accent-color: #f72585; /* Vibrant pink for accents */
    --accent-secondary: #4361ee; /* Vibrant blue for more contrast */
    --dark-color: #0f172a; /* Dark blue-black */
    --light-color: #ffffff; /* Pure white */
    --gray-color: #cbd5e1; /* Light gray */
    --success-color: #38bdf8; /* Blue success */
    --danger-color: #ef4444; /* Red for errors */
    --border-radius: 4px; /* Terminal has sharper corners */
    --terminal-prompt: '$ '; /* Bash prompt symbol */
    --gradient: linear-gradient(120deg, var(--primary-color), var(--accent-color)); /* Colorful gradient */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace; /* Terminal font */
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--dark-color);
    font-weight: 500; /* Slightly heavier font */
    background-image: radial-gradient(circle at top right, rgba(76, 201, 240, 0.1), transparent 70%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--primary-color);
    padding: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px dashed var(--gray-color);
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600; /* Stronger font weight */
    margin-bottom: 0.5rem;
    color: var(--light-color);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5); /* Add shadow for contrast */
}

.section-header h2::before {
    content: var(--terminal-prompt);
    color: var(--secondary-color);
}

.underline {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.btn::before {
    content: var(--terminal-prompt);
}

.btn-primary {
    background-color: rgba(76, 201, 240, 0.2);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: var(--terminal-prompt);
    color: var(--primary-color);
}

.btn-primary:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 201, 240, 0.2);
    z-index: -2;
}

.btn-primary:hover {
    background-color: rgba(76, 201, 240, 0.3);
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: rgba(217, 217, 217, 0.1);
    color: var(--light-color);
    box-shadow: 0 0 10px var(--light-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--light-color);
}

.logo a::before {
    content: var(--terminal-prompt);
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-weight: normal;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn__burger {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: var(--dark-color);
    overflow: hidden;
    background-image: url('../img/terminal-code-bg.jpg'); /* Add your terminal code background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(76, 201, 240, 0.05) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold; /* Make title bolder */
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #e6e6e6; /* Slightly dimmer than pure white */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Reduced shadow intensity */
}

.hero h1::before {
    content: var(--terminal-prompt);
    color: var(--primary-color);
}

.hero h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.4);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero h1 span:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 600; /* Make subtitle stronger */
    margin-bottom: 1.5rem;
    color: var(--light-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Reduced shadow intensity */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color); /* Changed from gray to white for better visibility */
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Reduced shadow intensity */
    font-weight: 500; /* Slightly heavier font */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 1.5rem;
}

.social-icons a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--dark-color); /* Changed from light to dark */
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-color); /* Change from gray to white */
    font-weight: 500; /* Slightly heavier font */
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); /* Add shadow for contrast */
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color); /* Changed from dark to light */
}

.skills h3::before {
    content: var(--terminal-prompt);
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: rgba(76, 201, 240, 0.1); /* Updated for terminal theme */
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-color); /* Added terminal-style border */
}

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1); /* Terminal-style glow */
}

.image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.image-container img {
    border-radius: var(--border-radius);
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: var(--dark-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(76, 201, 240, 0.4);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var (--light-color);
}

.project-content h3::before {
    content: var(--terminal-prompt);
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 1rem;
    color: var(--light-color); /* Change from gray to white for better visibility */
    font-size: 0.95rem;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); /* Add shadow for contrast */
    font-weight: 500; /* Slightly heavier font */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--dark-color); /* Changed from light to dark */
    border-top: 1px solid var(--primary-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-color); /* Change from gray to white for better visibility */
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); /* Add shadow for contrast */
    font-weight: 500; /* Slightly heavier font */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--light-color); /* Changed from dark to light */
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .social-icons a {
    color: var(--light-color);
}

footer .social-icons a:hover {
    color: var(--primary-color);
}

/* Add a blinking cursor element to relevant sections */
.cursor-blink::after {
    content: '_';
    color: var(--accent-color);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Add some particles to the background for visual interest */
.particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle span {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: float 15s infinite linear;
    opacity: 0.4;
}

.particle span:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle span:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 2s;
}

.particle span:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.particle span:nth-child(4) {
    top: 70%;
    left: 30%;
    animation-delay: 6s;
}

.particle span:nth-child(5) {
    top: 80%;
    left: 60%;
    animation-delay: 8s;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25% { transform: translateY(-100px) translateX(100px); opacity: 0.7; }
    50% { transform: translateY(-200px) translateX(0px); opacity: 0.4; }
    75% { transform: translateY(-100px) translateX(-100px); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0); opacity: 0.4; }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at top right);
        transition: clip-path 0.5s ease;
        border-bottom: 1px solid var(--primary-color);
    }
    
    .nav-links.active {
        clip-path: circle(1500px at top right);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
