/*--------------------------------------------------------------
  Theme Name: Tech Portfolio - New Codebase
  Description:  Modern, dynamic tech-themed portfolio for developers.
  Author: Your Name/AI Assistant
--------------------------------------------------------------*/

/*--------------------------------------------------------------
  Table of Contents:
  1.  General Styles
  2.  Header & Navigation
  3.  Hero Section
  4.  About Section
  5.  Skills Section
  6.  Projects Section
  7.  Experience Section
  8.  Contact Section
  9.  Footer Section
  10. Responsive Design
--------------------------------------------------------------*/

/*--------------------------------------------------------------
  1. General Styles
--------------------------------------------------------------*/
body {
    font-family: 'Fira Code', monospace;
    margin: auto;
    padding: 0;
    background-color: #0A192F; /* Deep Navy Background */
    color: #CCD6F6; /* Light Grayish Blue Text */
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 120px;
    margin: 0 auto;
    padding: 0 30px;
    
}

.section-padding {
    padding: 120px 0;
}

.section-title {
    text-align: center; /* Left align section titles */
    margin-bottom: 60px;
    font-size: 2.8em; /* Slightly smaller titles */
    color: #fcfcfc; /* Lightest Blue Title Color */
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::before {
    content: "0"; /* Number prefix for sections */
    color: #64FFDA; /* Teal Accent */
    font-size: 0.8em;
    font-family: 'Arial', sans-serif; /* Non-monospace font for prefix */
    font-weight: normal;
    position: absolute;
    left: -70px; /* Position to the left */
    top: 5px; /* Adjust vertical alignment */
}
/* Update section-title::before content using JS or CSS counters for each section */
/* See JavaScript for dynamic section number updating */


.section-title span { /* For angle brackets in titles */
    color: #64FFDA; /* Teal Accent Color */
    font-size: 1em;
}

.highlight {
    color: #64FFDA;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    border: 2px solid transparent; /* Transparent border for hover effect */
}

.primary-btn {
    background-color: #64FFDA;
    color: #0A192F; /* Dark navy text on primary */
}

.primary-btn:hover {
    background-color: rgba(100, 255, 218, 0.8); /* Slightly transparent teal hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    border-color: #64FFDA; /* Teal border on hover */
    color: #0A192F; /* Ensure text color remains dark navy */
}


.secondary-btn {
    background-color: transparent;
    color: #64FFDA; /* Teal secondary button text */
    border: 2px solid #64FFDA; /* Teal border */
}

.secondary-btn:hover {
    background-color: rgba(100, 255, 218, 0.1); /* Subtle teal background on hover */
    color: #64FFDA; /* Ensure text color remains teal */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    border-color: #64FFDA; /* Teal border remains */
}


/*--------------------------------------------------------------
  2. Header & Navigation
--------------------------------------------------------------*/
header {
    background-color: rgba(10, 25, 47, 0.85); /* Slightly transparent header */
    backdrop-filter: blur(10px); /* Apply blur for glassmorphism effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: 600;
    color: #64FFDA;
}

.logo span { /* For angle brackets in logo */
    color: #CCD6F6; /* Light Grayish Blue Color */
}


.nav-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    color: #64FFDA;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping to multiple rows if needed */
}

.nav-link a {
    text-decoration: none;
    color: #CCD6F6;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-link a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #64FFDA;
    transition: width 0.3s ease;
}

.nav-link a:hover::after {
    width: 100%;
}

/* Responsive Styles for Smaller Screens */
@media (max-width: 768px) {
    .nav-container {
        gap: 10px; /* reduced gap */
    }

    .nav-link a {
        font-size: 0.9em; /* Reduced font size */
        padding: 5px 10px; /* Reduced padding */
    }
}

/* Responsive Styles for Very Small Screens (e.g., 320px) */
@media (max-width: 320px) {
    .nav-container {
        gap: 5px;
    }

    .nav-link a {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

/* Responsive Styles for Tablets and Larger Phones (e.g., 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        gap: 15px;
    }

    .nav-link a {
        font-size: 1em;
    }
}

/* Responsive Styles for very large screens */
@media (min-width: 1025px){
    .nav-container{
        gap: 30px;
    }
}

/*--------------------------------------------------------------
  3. Hero Section
--------------------------------------------------------------*/
.hero {
    background-color: #0A192F;
    padding: 180px 0 150px;
    text-align: left; /* Left align hero content */
    position: relative;
    overflow: hidden;
    display: flex; /* Flex container for layout */
    align-items: center; /* Vertically align hero content */
}

.hero-content {
    flex: 1; /* Take up available space */
    max-width: 600px; /* Limit content width */
    opacity: 0;
    transform: translateX(-50px); /* Slide in from left */
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #E6F1FF;
    font-weight: 700;
    line-height: 1.2;
}

.hero-title span { /* Angle brackets for hero title */
    color: #64FFDA;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #CCD6F6;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-terminal-window {
    flex: 0.8; /* Take slightly less space than content */
    background-color: #1E2D4A; /* Darker Terminal Background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-left: 50px; /* Space between text and terminal */
    opacity: 0;
    transform: translateY(50px); /* Slide in from bottom */
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero-terminal-window.animate {
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    background-color: #33415C; /* Lighter Terminal Header */
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.close { background-color: #FF6059; }
.terminal-button.minimize { background-color: #FFBF2F; }
.terminal-button.maximize { background-color: #29C940; }

.terminal-title {
    color: #E0F7FA; /* Light Terminal Title Text */
    font-size: 0.9em;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    font-size: 0.9em;
    color: #B2EBF2; /* Light Cyan Terminal Text */
    white-space: pre-wrap; /* Respect line breaks and spaces */
    overflow-x: auto; /* Enable horizontal scrolling if content overflows */
    max-height: 250px; /* Limit terminal height */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-prompt {
    color: #64FFDA; /* Teal Prompt Color */
}

.terminal-command {
    color: #B2EBF2; /* Light Cyan Command Color */
}

.terminal-output {
    color: #CCD6F6; /* Light Grayish Blue Output Color */
}

.terminal-cursor {
    display: inline-block;
    background-color: #B2EBF2; /* Light Cyan Cursor Color */
    width: 8px;
    height: 1em;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    50% { opacity: 0; }
}


/*--------------------------------------------------------------
  4. About Section
--------------------------------------------------------------*/
.about {
    background-color: #112240; /* Slightly darker navy */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    border-radius: 50%; /* Makes the image circular */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.about-image img { /* Target the image inside the container */
    filter: brightness(1.15); /* Increase brightness by 15% (adjust as needed) */
    width: 100%; /* Ensure image fills the circular container */
    height: 100%; /* Ensure image fills the circular container */
    object-fit: cover; /* Prevents image distortion */
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease-out;
}

.about-image:hover img {
    transform: scale(1.05);
}



/*--------------------------------------------------------------
  5. Skills Section
--------------------------------------------------------------*/
.skills {
    padding: 80px 0;
    background-color: #0A192F; /* Light background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
}

.skill-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.skill-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.skill-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0 0;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    .skill-image {
        width: 60px;
        height: 60px;
    }
    .skill-item h3 {
        font-size: 1rem;
    }
}

/*--------------------------------------------------------------
  6. Projects Section
--------------------------------------------------------------*/
.projects {
    background-color: #112240; /* Slightly darker navy Projects Section */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjust minmax for project item width */
    gap: 35px;
}

.project-item {
    background-color: #1E2D4A; /* Darker Blue Project Item */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.project-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.project-item img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #33415C; /* Darker Separator */
    transition: opacity 0.3s ease;
}

.project-item:hover img {
    opacity: 0.9;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 15px;
    color: #E6F1FF;
    font-weight: 600;
}

.project-info p {
    color: #CCD6F6;
    margin-bottom: 25px;
}

.project-links {
    display: flex;
    gap: 10px; /* Spacing between buttons */
    justify-content: flex-start; /* Align buttons to the start */
}


/*--------------------------------------------------------------
  7. Experience Section
--------------------------------------------------------------*/
.experience {
    background-color: #0A192F; /* Deep Navy Experience Section */
}

.experience-timeline {
    position: relative;
    padding: 30px 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px; /* Adjusted line position */
    width: 2px;
    background-color: #33415C; /* Darker Timeline Line */
    height: 100%;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding: 20px;
    background-color: #1E2D4A; /* Darker Blue Timeline Item */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover {
    transform: translateY(-3px);
}


.timeline-item::before { /* Timeline marker dot */
    content: '';
    position: absolute;
    left: 28px; /* Adjusted marker position */
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #64FFDA; /* Teal Marker Dot */
    border: 2px solid #1E2D4A; /* Matching item background */
}


.timeline-date {
    font-weight: 500;
    color: #CCD6F6;
    margin-bottom: 10px;
    margin-left: 20px; /* Indent date text */
    display: block; /* Ensure date takes full width */
}


.timeline-content h3 {
    margin-bottom: 10px;
    color: #E6F1FF;
    font-weight: 600;
}

.timeline-content p {
    color: #CCD6F6;
}


/*--------------------------------------------------------------
  8. Contact Section
--------------------------------------------------------------*/
.contact {
    background-color: #112240; /* Slightly darker navy Contact Section */
    text-align: center; /* Center align contact content */
}

.contact-info {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
}

.contact-info.animate {
    opacity: 1;
    transform: translateY(0);
}


.contact-info p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #CCD6F6;
}

.contact-info a {
    color: #64FFDA;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.contact-info a:hover {
    color: #7BFFEF; /* Slightly lighter teal hover */
    transform: translateY(-2px);
}

.contact-info i {
    margin-right: 10px;
    color: #64FFDA;
    font-size: 1.1em;
}


/*--------------------------------------------------------------
  9. Footer Section
--------------------------------------------------------------*/
footer {
    background-color: #0A192F; /* Deep Navy Footer */
    color: #A8B2D1; /* Light Steel Blue Footer Text */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #1E2D4A; /* Darker Footer Border */
    margin-top: 80px; /* Add margin above footer to separate from content */
}

footer span { /* Angle brackets for footer */
    color: #64FFDA;
}


/*--------------------------------------------------------------
  10. Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
        text-align: center; /* Center align titles on mobile */
    }

    .section-title::before {
        display: none; /* Hide section numbers on mobile for cleaner look */
    }

    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
        font-size: 1.5em;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .hero {
        padding: 150px 0 120px;
        text-align: center; /* Center hero content on mobile */
        flex-direction: column; /* Stack content and terminal */
    }

    .hero-content {
        max-width: 100%; /* Full width on mobile */
        text-align: center; /* Center align hero text */
        margin-bottom: 30px; /* Spacing below hero text */
    }

    .hero-terminal-window {
        margin-left: 0; /* Remove left margin */
        max-width: 90%; /* Adjust terminal width */
    }


    .hero-title {
        font-size: 2.5em;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Stack about content vertically */
        text-align: center;
    }

    .about-image {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
        max-width: 80%; /* Adjust image width */
        margin-left: auto;
        margin-right: auto;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 20px; /* Adjust timeline line on mobile */
    }

    .timeline-item::before {
        left: 18px; /* Adjusted marker position for mobile timeline */
    }

    .timeline-date {
        margin-left: 15px; /* Indent date text on mobile timeline */
    }

    .contact {
        text-align: center; /* Center align contact info on mobile */
    }
}
