/* General Body and Font Styles */
body {
    background: linear-gradient(to right, #17273e, #00050e);
    color: #ffffff;
    margin: 0;
    padding: 0;
    padding-top: 100px; 
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}

/* =================
   HEADER & NAVBAR
   ================= */
/* =================
   HEADER & NAVBAR
   ================= */

/* This is the main, full-width bar */
.navbar {
    background: linear-gradient(to right, #17273e, #010e23);
    border-bottom: 1px solid #101d30;
    position: fixed; /* Changed from sticky for consistency */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* High z-index */
    padding: 20px 0; /* Vertical padding only */
}

/* This container holds the content and aligns it */
/* This container holds the content and aligns it */
.nav-container {
    width: 100%;
    margin: 0 auto;
    /* MODIFICATION #2: Use specific padding for left and right */
    padding: 0 2%; /* 5% padding on the left and right edges */
    
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* This is the group for all right-side items */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between nav-links and the button */
}

/* Hide menu toggle by default on desktop */
.menu-toggle {
    display: none;
}


.logo {
    font-family: 'calibri', sans-serif;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffffff; /* Make sure logo text is visible */
    
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px; 
    font-size: 18px;
    transition: color 0.3s;
    font-family: 'Times New Roman', Times, serif;
}
    
.nav-links a:hover, .nav-links a.active {
    color: #007bff;
}

.cta-button {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    font-family: 'Times New Roman', Times, serif;
    border-color: blueviolet;
}
.cta-button:hover {
    background-color:transparent;
    color: #ffffff;
}

/* =================
   HOME SECTION
   ================= */
.main-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* padding: 50px 5% 0px 7% ; */ 
    padding: 50px 5% 0px 0%; 
    
}


.home-container {
    display: flex;
    /* MODIFIED: Pushes the text and image to opposite ends */
    justify-content: space-between; 
    /* The 'gap' property is no longer needed but can be kept as a fallback */
    gap: 70px; /* Changed from -30px to a positive value for better control */
    max-width: 1200px;
    width: 100%; /* Add this to ensure the container uses the full available width */
    margin: 0 auto; /* Center the container */
}

.home-text {
    flex: 1;
    max-width: 2000px;
}

.intro-tag {
    background-color: #102a43;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block; 
    margin-bottom: 15px;
    margin-top: -10px;
    font-family: Calibri, Arial, sans-serif;
}

.home-text h1 { font-size: 38px; margin: 0 0 5px 0;  font-family: 'Arial'; }
.job-title { font-size: 35px; color: #0073ef; margin-bottom: 5px;  font-family: 'Arial';}
.home-text p { font-size: 16px; line-height: 1.7; color: #f5f5f5; margin-bottom: 20px; }

.home-image { flex-shrink: 0; }
.home-image img {
    width: 250px;
    height: 300px;
    object-fit: cover; /* Keeps the image filling the square without distortion */
    object-position: top; /* MODIFIED: Aligns the image from the top, preserving the head */
    border-radius: 20px;
    
    /* MODIFIED: Removed the properties causing the "border" effect */
    background-color: transparent; 
    padding: 20%;
    margin-top: 40px;
    
}
/* =================
   SOCIAL ICONS (ALWAYS COLORFUL)
   ================= */
   .social-icons { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff; /* Icon color is always white */
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.3s ease; /* Add a little effect for hover */
}

/* --- Individual Icon Background Colors --- */

.icon-circle.whatsapp {
    background-color: #8BC34A; /* Instagram Pink */
    border: 2px solid #8BC34A;
}

.icon-circle.email {
    background-color: #cf0101; /* Facebook Blue */
    border: 2px solid #ca0000cf;
}

.icon-circle.linkedin {
    background-color: #0A66C2; /* LinkedIn Blue */
    border: 2px solid #0A66C2;
}

.icon-circle.github {
    background-color: #181717; /* GitHub Black */
    border: 2px solid #ffffff; /* Keep the white border for GitHub as in the image */
}

/* Optional: Add a slight zoom effect on hover */
.icon-circle:hover {
    transform: scale(1.1);
}




/* =================
   GENERAL SECTION STYLING
   ================= */
.section-container {
    padding: 80px 0%;
    text-align: center;
    scroll-margin-top: 40px; 
}

.section-title {
    font-size: 36px;
    margin-bottom: 2px; /* tightened spacing below title */
    line-height: 1.05;
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: #bdc4d3;
    margin-top: 2px; /* pull subtitle closer to title */
    margin-bottom: 12px;
    line-height: 1.25;
}



/* =================
    ABOUT ME SECTION
   ================= */
   #about-details {
    padding-top: 60px; /* slightly reduced top space */
    padding-bottom: 10px; /* further reduced bottom space to bring projects section closer */
}

/* Projects section - different background to separate it from About
   and give the heading some breathing room from the top of the band */
#projects.section-container {
    background: linear-gradient(180deg, #0b3a5a 0%, #071826 100%);
    /* restore a small top padding so the title isn't flush at the top */
    padding-top: 48px;
    padding-bottom: 40px;
}

/* Header wrapper for projects title/subtitle — center vertically between top of band and the grid */
.projects-header {
    height: 86px; /* slightly smaller so content sits higher */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* move content toward the top */
    align-items: center; /* horizontal center */
    max-width: 1200px;
    margin: -22px auto 0 auto; /* reduced bottom gap */
    padding: 2px 20px 0 20px; /* removed bottom padding */
    transform: translateY(-8px); /* small upward nudge for finer control */
}

/* reduce gap between projects heading block and grid for a compact look */
.projects-grid {
    margin-top: 500px;
}

/* reduce gap between projects heading and grid */
.projects-grid {
    margin-top: 800px;
}

.about-details-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Increased gap for better spacing */
    max-width: 1300px;
    margin: 0 auto;
}

/* Left Side Image */
.about-details-image {
    flex-basis: 35%; /* MODIFIED: Reduced the space for the image container */
    flex-shrink: 0;
    margin-top: -30px;
}

/* This styles the actual image tag */
.about-details-image img {
    width: 90%; /* MODIFIED: Makes the image fill its container */
    height: auto; /* MODIFIED: Maintains the aspect ratio */
    object-fit: cover; /* Ensures it covers the area nicely if you set a height */
    object-position: top; /* Keeps the head from being cut off */
    border-radius: 10px;
    
    /* MODIFIED: Removed padding that was making the image small */
    padding: 100px 10% 100px 0%; 
    background-color: transparent;
}

/* Circular graphic positioning (move slightly down) */
.circular-graphic img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: translateY(250px) scale(1.08); /* slightly larger */
}

/* Right Side Text */

.about-details-text {
    flex-basis: 70%; /* Take up 60% of the width */
    text-align: justify;
    margin-top: 40px;
    
}

.about-details-text .intro-tag {
    background-color: #102a43;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
    margin-top: -10px;
    font-family: Calibri, Arial, sans-serif;
}

.about-details-text h2 {
    font-size: 32px;
    margin: 0 0 4px 0;
    font-weight: 400; /* make it unbold */
}

.job-title-secondary {
    font-size: 24px;
    color: #007bff; /* Blue color for the title */
    margin: 2px 0 8px 0; /* reduce top spacing and keep small bottom spacing */
    font-family: Calibri, Arial, sans-serif;
    /* text-align: justify; */

}

.about-details-text p {
    color: #ffffff; /* pure white */
    line-height: 1.7;
    margin-bottom: 12px;
    font-family: Calibri, Arial, sans-serif;
    font-size: 17px; /* increased by 2px */
    font-weight: 400;
}

.about-details-text p strong {
    font-weight: 400; /* ensure <strong> doesn't render bold */
    color: #ffffff;
}

/* Skills List */
.about-details-text .skills-list {
    list-style: disc;
    padding-left: 36px; /* moved bullets slightly to the right */
    margin-top: 12px;
    margin-bottom: 20px;
    color: #ffffff; /* pure white */
}

.about-details-text .skills-list li {
    margin-bottom: 8px;
    font-family: Calibri, Arial, sans-serif;
    font-size: 16px; /* increased by 2px */
    font-weight: 400; /* not bold */
}

.about-details-text .skills-list li strong {
    font-weight: 400; /* make bold tags render as normal */
    color: #ffffff;
}

/* Summary Boxes */
.summary-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-box {
    position: relative;
        flex: 1 1 0;
        min-width: 160px;
        padding: 8px 14px; /* further reduced padding to lower overall height */
        min-height: 64px; /* smaller minimum height for more compact boxes */
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(8,20,30,0.9), rgba(6,14,22,0.85));
    border: 1px solid rgba(254, 253, 253, 0.06);
    box-shadow: 0 5px 10px rgba(224, 227, 246, 0.6);
    text-align: left;
    overflow: hidden;
}

/* subtle inner edge on right/bottom like the design */
.summary-box:after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 9px;
    box-shadow: inset -1px -1px 0 rgba(245, 226, 226, 0.03);
    pointer-events: none;
}

.summary-number {
    font-size: 24px; /* smaller number to match reduced height */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: Calibri, Arial, sans-serif;
    /* blinking animation */
    animation: blink-number 1.6s infinite;
}

.summary-label {
    font-size: 14px; /* slightly smaller label to fit compact box */
    color: #dbe9f8;
    font-family: Calibri, Arial, sans-serif;
}

@keyframes blink-number {
    0% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(0,123,255,0.35), 0 0 12px rgba(0,123,255,0.12);
        transform: translateY(0);
    }
    50% {
        opacity: 0.35;
        text-shadow: none;
        transform: translateY(-1px);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(0,123,255,0.35), 0 0 12px rgba(0,123,255,0.12);
        transform: translateY(0);
    }
}

/* Resume Button */
.resume-button {
    display: inline-block;
    background-color: #007bff;
    color: #fcfcfc;
    border: 2px solid #007bff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.resume-button:hover {
    background-color:transparent;
    color: #ffffff;
}

/* =================
   ANIMATED LOGO STYLES (Code Version)
   ================= */
/* =================
   CORRECTED ANIMATED LOGO STYLES
   ================= */

/* This is the main container for the logo, it rotates */
.animated-logo-container {
    position: relative;
    width: 250px;  /* The total size of the logo */
    height: 250px;
    margin-top: 180px;
    animation: rotate-logo 40s linear infinite; /* The slow rotation animation */
}

/* This is the style for each individual line we will create with JavaScript */
.animated-logo-container .line {
    position: absolute;
    left: 50%;
    top: 50%;
    
    /* FIX #1: REMOVED the margin-top. This was breaking the layout. */
    /* margin-top: 170px; */ 
    
    width: 1.5px; /* The thickness of each line */
    height: 125px; /* The length of each line (half the container's height) */
    
    /* The color of the lines - a nice teal */
    background-color: #2d4a3c; 
    
    /* This sets the rotation point to the center of the container */
    transform-origin: top center; 
}

/* The animation keyframes that define the rotation */
@keyframes rotate-logo {
    from {
        transform: rotate(0deg);
    }
    /* FIX #2: Changed 30deg to 360deg for a full, continuous rotation */
    to {
        transform: rotate(360deg);
    }
}


/* =================
   PROJECTS SECTION
   ================= */

.projects-grid {
    display: grid;
    /* MODIFIED: Allow 3 columns and let them take up available space */
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 15px;
    /* MODIFIED: Increased max-width to use more screen space */
    max-width: 1200px; /* Set a max-width for desktop */
    margin: 0 auto;
}


.project-card {
    background-color: #fbfbfc;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    
    /* MODIFIED: Explicitly remove any horizontal margin that might be causing the gap */
    margin: 30px 0 0 0; /* Keeps the top margin but removes left/right margin */
    padding: 0; /* Ensure there is no padding on the card itself */
}


.project-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Container for the image and the hover link */
.project-image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    gap: 15px;
    
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
    transition: transform 0.4s ease;
}

/* The "View Details" link that appears on hover */
/* The "View Details" link that appears on hover */
.project-details-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 12, 24, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* MODIFIED: Add this new rule to style the button */
.project-details-link span {
    color: rgb(248, 245, 245);
    font-size: 14px;
    padding: 7px 20px; /* Adds space inside the button */
    border: 2px solid rgb(214, 210, 210); /* The white outline */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

/* Optional: Add a hover effect to the button itself */
.project-details-link:hover span {
    background-color: transparent;
    color: #f7f8f8; /* Dark blue text on hover */
}

.project-card:hover .project-details-link {
    opacity: 1; /* Show on hover */
}


.project-card:hover .project-details-link {
    opacity: 1; /* Show on hover */
}

/* Text content below the image */
.project-info {
    padding: 20px;
    color: #f5f5f5;
    height: 50px;
}

.project-title {
    font-size: 15px;
    color: #030303;
    margin: 0 0 -15px 0;
    padding: 5px 10px;
}

.project-tech {
    font-size: 12px;
    color: #00040c; /* Lighter text color for technologies */
    margin: 0;
    padding: 5px 10px;
}

/* Special styling for the larger middle card */
.project-card.large {
    grid-row: span 2; /* Make it take up two rows in height */
    grid-column: span 1;
}

.project-card.large .project-image-container {
    height: 400px; /* Taller image for the large card */
}


/* =================
   REVISED EXPERIENCE SECTION STYLES
   ================= */

#experience .section-header {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

#experience .section-title {
    text-align: left;
    margin: 0;
}

/* ===================================
   FINAL POLISHED EXPERIENCE STYLES
   =================================== */

#experience .section-header {
    /* MODIFIED: Use padding for alignment, not margin */
    max-width: none; /* Allow it to span wider */
    margin-bottom: 40px;
    padding: 0 7%; /* Use percentage-based padding for responsiveness */
}

/* Correct "EXPERIENCE" tag style */
#experience .intro-tag {
    background-color: #132f4c; /* MODIFIED: Correct darker blue */
    color: #d7d7d7; /* MODIFIED: Mint green text color */
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 16px; /* Slightly smaller */
    font-weight: bold;
}

/* Correct "MY WORK EXPERIENCE" title style */
#experience .section-title {
    margin: 0;
    text-align: left;
    font-family: 'Poppins', sans-serif; /* Explicitly set the font */
    font-size: 30px; /* Adjusted size */
    font-weight: 700; /* Bolder weight */
}

/* This adds the blue color to the word "EXPERIENCE" */
#experience .section-title::after {
    content: " EXPERIENCE"; /* The text to add */
    color: #007bff; /* The blue color */
}

.experience-list {
    display: flex;
    flex-direction: column;
    max-width: 1200px; /* Added max-width to control overall width */
    margin: 0 auto; /* Center the list */
    padding: 0 7%;
    gap: 30px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fcf8f8;
}

/* Correct styling for the main container of each job */
.experience-item {
    display: flex;
    gap: 20px;
    /* MODIFIED: Subtle gradient and inner shadow for depth */
    background-image: linear-gradient(to right, #112240, #0A192F);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px; /* Softer radius */
    transition: transform 0.3s ease, background-image 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    background-image: linear-gradient(to right, #172a45, #112240);
}

/* Left Column: The bright blue card */
.experience-info-card {
    background-color: #007bff;
    color: #ffffff;
    padding: 30px;
    border-radius: 10px; /* Slightly sharper radius */
    flex-basis: 25%;
    flex-shrink: 0;
    text-align: left;
}

.experience-role {
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Slightly larger for impact */
    font-weight: 700; /* Bolder */
    letter-spacing: 0.5px; /* Add a little space between letters */
}

.experience-company {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500; /* Medium weight, not bold */
    opacity: 0.8; /* Softer look */
    margin: 0 0 20px 0; /* More space below company */
}


/* Right Column: The description text */
.experience-description {
    flex-basis: 70%;
    text-align: left;
    padding-top: 5px; /* Fine-tuned alignment */
    font-family: 'Poppins', sans-serif;
    color: #ffffff; /* Use the mint green color for keywords */
    font-size: 14px;
}



/* =================
   CONTACT SECTION
   ================= */

#contact {
    padding: 100px 5%; /* Add space above and below the section */
}

.contact-container {
    display: flex;
    max-width: 1200px;
    /* Removed max-height: 450px; to fix form overflow */
    margin: 0 auto;
    background-color: #1c3253; /* Dark blue background for the container */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Left Column: Contact Info --- */
.contact-info-left {
    flex-basis: 30%; /* Takes up 35% of the width */
    padding-right: 20px;
    border-right: 1px solid #00040b;
    border-width: 1px; /* Vertical separator line */
}

.contact-item {
    display: flex;
    text-align: left;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 20px;
    color: #007bff; /* Blue icon color */
    margin-right: 15px;
    margin-top: 5px;
}

.contact-text span {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
}

.contact-text p {
    font-size: 15px;
    color: #bdc4d3;
    margin: 5px 0 0 0;
}

.social-icons-contact {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

/* Re-using the colorful icon style from before */
.social-icons-contact .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

/* --- Right Column: Contact Form --- */
.contact-form-right {
    flex-basis: 65%; /* Takes up the remaining 65% */
    padding-left: 40px;
    /* Removed max-height: 450px; to fix form overflow */
}

.contact-form-right h2 {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 30px 0;
    max-height: 450px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #203149; /* Very dark blue for inputs */
    border: 1px solid #303c55;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    box-sizing: border-box; /* Important for padding and width */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c4c2c2;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 58px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}
/* --- Form Status Message Styles --- */
/* =================
   TOAST NOTIFICATION STYLES
   ================= */

    /* =================
   TOAST NOTIFICATION STYLES
   ================= */
#toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    
    /* MODIFIED: Increased z-index to ensure it's on top of everything */
    z-index: 9999; 
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s, visibility 0.4s;
}



/* Style for the success message */
#toast-notification.success {
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Style for the error message */
#toast-notification.error {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* This class will be added by JavaScript to show the toast */
#toast-notification.show {
    visibility: visible;
    opacity: 1;
}


/* =================
   FOOTER STYLES
   ================= */

.site-footer {
    padding: 40px 20px; /* Add space above and below the text */
    text-align: center; /* Center the text */
    border-top: 1px solid #303c55; /* The thin horizontal line */
    margin-top: 100px; /* Add space between the last section and the footer */
}

.site-footer p {
    color: #a8b2d1; /* Soft, light text color */
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace; /* Use a monospaced font for a techy feel */
    margin: 0; /* Remove any default paragraph margin */
}


/* =================
   TYPING ANIMATION & CURSOR
   ================= */
.job-title .typed-text {
    /* This will be the container for the text */
    content: '|'; /* The cursor character */
    display: inline-block;
    margin-left: 5px;
    color: #007bff; /* Cursor color */
    animation: blink 1s infinite;
    text-align: justify;
}

/* =================
   TYPING ANIMATION STYLES
   ================= */

/* This creates the cursor */
.typed-text {
    border-right: 2px solid #007bff; /* The cursor's color and size */
    padding-right: 3px;
    text-align: justify;
    /* This animation makes the cursor blink */
    /* animation: blink-cursor 0.75s step-end infinite; */
}

/* =================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ================================= */

/* Apply these styles for screens 992px wide or smaller (Tablets and Phones) */
@media (max-width: 992px) {

    /* --- Navbar --- */
    .nav-links {
        display: none; /* Hide the navigation links on screens <= 992px */
    }

    .menu-toggle {
        display: block; /* Show on mobile */
        font-size: 24px;
        color: #ffffff;
        cursor: pointer;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust as needed */
        right: 5%;
        background: #17273e;
        padding: 20px;
        border-radius: 10px;
        z-index: 999; /* Ensure it's above other content */
    }

    /* --- Home Section --- */
    .main-content {
        /* Remove fixed padding and let the container handle it */
        padding: 50px 5% 0px 5%;
    }
    .home-container {
        flex-direction: column; /* Stack text and image vertically */
        text-align: center;
        gap: 40px;
    }
    .home-text {
        order: 2; /* Text below image */
        max-width: 100%;
    }
    .home-text h1, .job-title, .home-text p {
        text-align: center;
    }
    .social-icons {
        justify-content: center; /* Center the social icons */
    }
    .home-image {
        order: 1; /* Image above text */
        display: flex;
        justify-content: center;
    }
    .home-image img {
        width: 200px;
        height: 250px;
        padding: 0; /* Remove excessive padding */
    }

    /* --- About Section --- */
    .about-details-container {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
        text-align: center;
    }
    .about-details-image {
        flex-basis: 100%;
        margin-top: 0;
        padding: 0;
    }
    .about-details-image img {
        width: 60%; /* Make the image a reasonable size on mobile */
        max-width: 300px;
        padding: 0;
    }
    .circular-graphic {
        display: none; /* Hide the large background graphic on mobile */
    }
    .about-details-text {
        flex-basis: 100%;
        text-align: center;
        margin-top: 20px;
        padding: 0 5%;
    }
    .about-details-text .intro-tag,
    .about-details-text h2,
    .job-title-secondary {
        text-align: center;
    }
    .about-details-text p {
        text-align: left; /* Keep paragraphs left-aligned for readability */
    }
    .summary-boxes {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* --- Projects Section --- */
    .projects-grid {
        grid-template-columns: 1fr; /* Stack project cards into a single column */
        max-width: 90%;
    }
    .project-card.large {
        grid-row: auto; /* Reset grid-row span for single column layout */
    }
    .project-card.large .project-image-container {
        height: 200px; /* Reduce height for mobile */
    }
    .project-card {
        margin: 15px auto;
        max-width: 400px;
    }
    .project-image-container {
        height: 180px;
    }

    /* --- Experience Section --- */
    .experience-item {
        flex-direction: column; /* Stack the blue card and description vertically */
        gap: 20px;
    }

    .experience-info-card {
        flex-basis: auto;
        width: 100%; /* Make the blue card take full width */
        max-width: none;
        box-sizing: border-box; /* Ensure padding is included in the width */
    }

    /* --- Contact Section --- */
    .contact-container {
        flex-direction: column; /* Stack the info and form vertically */
        gap: 40px;
        max-height: none; /* Allow height to adjust */
        padding: 20px;
    }

    .contact-info-left {
        border-right: none; /* Remove the vertical line */
        border-bottom: 1px solid #303c55; /* Add a horizontal line instead */
        padding-right: 0;
        padding-bottom: 30px;
        flex-basis: 100%;
    }

    .contact-form-right {
        padding-left: 0;
        flex-basis: 100%;
        max-height: none;
    }

    .form-row {
        flex-direction: column; /* Stack 'Name' and 'Email' fields */
        gap: 20px;
    }
}

    


/* Apply these styles for screens 768px wide or smaller (Mainly Phones) */
@media (max-width: 768px) {

    /* --- Home Section --- */
    .home-text h1 { font-size: 32px; }
    .job-title { font-size: 38px; }

/* --- Navbar --- */


    .nav-container {
        padding: 0 5%;
    }

    .logo {
        font-size: 20px; /* Make logo smaller */
    }

    /* --- Headings --- */
    .about-headline {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }
}

    /* --- Header / Navbar --- */
    /* --- Navbar --- */


    .nav-container {
        padding: 0 5%;
    }

    .logo {
        font-size: 24px; /* Make logo smaller */
    }
    
    /* (Note: For a real mobile menu, you would add a hamburger icon that toggles the nav-links visibility with JavaScript. 
       For now, hiding them is the simplest fix.) */

    /* --- Headings --- */
    .about-headline {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }






@media (max-width: 768px) {
    .experience-info-card {
        width: auto; /* Let the content define the width */
        max-width: 100%; /* Ensure it doesn't overflow */
    }
}

/* =================================
   PROJECTS SECTION - RESPONSIVE FIX
   ================================= */

/* This media query targets screens 768px wide or smaller (tablets and phones) */
@media (max-width: 768px) {

    /* 1. Change the grid to a single column */
    .projects-grid {
        grid-template-columns: 1fr; /* This is the key fix: 1 column only */
        padding: 0 5%; /* Add some side padding for mobile view */
    }

    /* 2. Reset the special "large" card styling on mobile */
    .project-card.large {
        grid-row: auto; /* Reset the row span */
        grid-column: auto; /* Reset the column span */
    }

    /* 3. Give all cards a consistent image height on mobile */
    .project-card .project-image-container {
        height: 200px; /* Adjust this value as you see fit */
    }

    /* 4. (Optional but recommended) Reset the margin on the cards for a cleaner look */
    .project-card {
        margin: 15px 0; /* Simpler vertical margin */
    }
}

/* =========================================
   STYLISH & RESPONSIVE EDUCATION SECTION
   This code is scoped to .education-section
   and will not affect other elements.
   ========================================= */
/* =============================================
   CREATIVE EDUCATION SECTION (with University Images)
   ============================================= */

/* Main Section Container */
.education-section {
    padding: 80px 7%;
    background-color: #0f172a;
    color: #cbd5e1;
    overflow: visible;
}

/* Left-Aligned Title */
.education-section .section-title {
    text-align: left;
    margin-bottom: 60px;
}

.education-section .section-title .tag {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

.education-section .section-title h2 {
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
}

/* Container for the cards */
.education-section .education-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- The Creative Education Card --- */
.education-section .education-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 30px; /* Gap between details and image */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* The floating icon on the left */
.education-section .education-icon {
    position: absolute;
    left: -30px; /* Positioned to overlap the edge */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(100, 102, 241, 0.3);
    transition: all 0.3s ease;
    z-index: 2; /* Ensure icon is on top */
}

/* Main text content area */
.education-section .education-details {
    flex: 1; /* Allows this section to take up available space */
    padding-left: 45px; /* Space for the icon */
    position: relative; /* For the separator line */
}

/* The separator line (as highlighted in yellow) */
.education-section .education-details::after {
    content: '';
    position: absolute;
    right: -15px; /* Position between details and image */
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #4f46e5, transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.education-section .education-item:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.education-section .education-item:hover .education-icon {
    transform: translateY(-50%) scale(1.1);
}

.education-section .education-item:hover .education-details::after {
    opacity: 1; /* Make the separator line glow on hover */
}

/* Typography */
.education-section .education-details h3 {
    font-size: 1.4rem;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.education-section .education-details .date {
    font-size: 0.9rem;
    color: #818cf8; /* Accent color for the date */
    font-weight: 600;
    margin-bottom: 15px;
}

.education-section .education-details .university,
.education-section .education-details .location {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* 1. The University Image Container */
.education-section .education-image {
    width: 280px; /* Fixed width for the image container */
    height: 180px; /* Fixed height */
    border-radius: 10px;
    overflow: hidden; /* Ensures image fits perfectly */
    flex-shrink: 0; /* Prevents the image from shrinking */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-section .education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.3s ease;
}

.education-section .education-item:hover .education-image img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .education-section .education-item {
        flex-direction: column;
        padding: 25px;
        padding-top: 50px; /* Extra top padding for the icon */
    }

    .education-section .education-icon {
        left: 50%;
        top: -30px; /* Position above the card */
        transform: translateX(-50%);
    }

    .education-section .education-details {
        padding-left: 0;
        width: 100%;
    }

    .education-section .education-details::after {
        display: none; /* Hide separator line on mobile */
    }

    .education-section .education-image {
        width: 100%; /* Full width on mobile */
        height: 150px; /* Adjust height as needed */
        margin-top: 20px;
    }
}
