 /* =========================================================================
   1. CSS Reset & Base Variables (Enhanced)
   ========================================================================= */

/* Use a more robust reset for better cross-browser consistency */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reduced Motion for Accessibility - MUST come before :root colors */
@media (prefers-reduced-motion: reduce) {
    :root {
        /* Set transition duration to 0 for users who prefer reduced motion */
        --transition: none !important; 
    }
}

:root {
    /* Color Palette */
    --primary-color: #3498db;     /* Blue */
    --secondary-color: #2c3e50;   /* Dark Navy/Charcoal */
    --accent-color: #f39c12;      /* Orange/Yellow */
    --light-color: #ecf0f1;       /* Light Gray */
    
    /* Global Backgrounds & Text (Easier for Dark Mode Toggle) */
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa; /* Light Section Background */
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --dark: #2c3e50;
    
    /* State Colors */
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #f39c12;
    
    /* Effects & Utilities */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15); /* Slightly stronger hover shadow */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition curve */
    --border-radius: 10px;
    
    /* Focus State Improvement for Accessibility */
    --focus-outline-color: var(--accent-color);
    --nav-height: 70px; /* Define nav height as variable */
}

/* Dark Mode Foundation (Uses System Preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121212;
        --bg-secondary: #1e1e1e;
        --text-color: #f1f1f1;
        --text-light: #b0b0b0;
        --white: #121212; /* In dark mode, 'white' refers to the default card/body color */
        --dark: #ecf0f1;
        --secondary-color: #ecf0f1; /* Dark mode headings should be light */
        --shadow: 0 4px 6px rgba(255, 255, 255, 0.05);
        --shadow-hover: 0 10px 30px rgba(255, 255, 255, 0.1);
    }
}


/* =========================================================================
   2. Base Styles
   ========================================================================= */

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-primary); /* Use a more semantic variable */
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease; /* Only transition color for links, faster/less expensive */
}

/* Universal Focus State for Accessibility (Enhanced) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.project-card:focus-visible,
.skill-card:focus-visible,
.internship-card:focus-visible,
.cv-preview:focus-visible {
    /* Use outline-offset to keep the outline clearly outside the element */
    outline: 2px dashed var(--focus-outline-color);
    outline-offset: 6px; 
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Optimization: prevent content shifting (requires width/height in HTML) */
    /* aspect-ratio: attr(width) / attr(height); */ 
}

/* =========================================================================
   3. Utility Classes & Section Titles
   ========================================================================= */

.container {
    /* Use min and max for responsive padding */
    padding-inline: clamp(1rem, 5vw, 2rem); 
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Section padding variable for consistency */
section {
    padding-block: 6rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem); /* More robust responsive sizing */
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--secondary-color);
}

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

/* =========================================================================
   4. Header & Navigation
   ========================================================================= */

.navbar {
    /* Using position: sticky is generally better for performance than fixed */
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    /* Use variable and color-mix for background + blur effect */
    background-color: color-mix(in srgb, var(--bg-primary) 95%, transparent); 
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: var(--nav-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Use the container padding for consistency */
    padding-block: 1rem; 
    height: 100%;
}

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1; 
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    /* Added transition property to :hover for smoother color change */
    transition: var(--transition); 
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px; /* Larger hit area */
    z-index: 1001; /* Ensure it's above the mobile menu */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* =========================================================================
   5. Hero Section
   ========================================================================= */

.hero {
    min-height: 80vh; /* Increased height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--dark));
    color: var(--white);
    text-align: center;
    /* Use logical properties for padding */
    padding-block-start: var(--nav-height); 
    padding-block-end: 4rem; 
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Optimized background image usage by removing the data URI if possible, 
       but keeping it if it's necessary for the pattern. */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    mix-blend-mode: soft-light; /* Enhances visual blending */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Slightly larger max size */
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards; /* Added forwards to keep state after animation */
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    opacity: 0.9;
}

.cta-button {
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    /* For better accessibility, always use focus: */
    
}

.cta-button:hover,
.cta-button:focus {
    background-color: #e67e22;
    transform: translateY(-4px) scale(1.02); /* Reduced scale for subtler effect */
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.5);
}

/* =========================================================================
   6. About Section
   ========================================================================= */

.about {
    /* Used semantic background variable */
    background: linear-gradient(135deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--bg-secondary), #fff 90%) 100%); 
    padding-block: 6rem;
}

.about-content {
    display: grid;
    /* Changed grid for better flow on smaller desktops, allowing the image to shrink gracefully */
    grid-template-columns: minmax(300px, 2fr) minmax(200px, 1fr); 
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.profile-img {
    width: 100%;
    max-width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    /* Added filter for subtle depth */
    filter: saturate(1.1); 
}

.profile-img:hover {
    transform: scale(1.05) rotate(1deg); /* Added slight rotation */
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
}

/* =========================================================================
   7. Skills Section
   ========================================================================= */

.skills {
    background: var(--bg-primary);
    padding-block: 6rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Slightly reduced min size */
    gap: 2rem;
}

.skill-card {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid color-mix(in srgb, var(--text-color) 5%, transparent); /* Dynamic border color */
    position: relative;
    overflow: hidden;
    cursor: default; /* Indicates non-interactive card */
}

/* Shimmer effect enhancement */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start further left */
    width: 100%;
    height: 100%;
    /* Stronger, more noticeable gradient */
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent); 
    transition: transform 0.6s ease; /* Faster, more distinct transition */
}

.skill-card:hover::before {
    transform: translateX(250%); /* Swipe across the whole card */
    left: auto; /* Required for transform to work correctly for the effect */
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

/* Custom icons for C/C++ */
.fa-cuttlefish:before, .fa-c-plus-plus:before {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: normal; /* Override default italic font */
    line-height: 1;
}

.fa-cuttlefish:before {
    content: "C";
}

.fa-c-plus-plus:before {
    content: "C++";
    font-size: 3rem; /* Adjusted for better alignment if needed */
}

/* =========================================================================
   8. Experience/Internship Section
   ========================================================================= */

.internship {
    background: var(--bg-primary); /* Ensures consistent light background */
    padding-block: 6rem;
    position: relative;
}

.internship .section-title {
    color: var(--secondary-color);
    margin-bottom: 4rem;
}

.internship-card {
    background: var(--card-bg); /* Use variable for card background */
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-color); /* Use variable */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #2980b9);
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
}

.internship-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.company {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.duration {
    background: var(--light-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.internship-logo {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--light-color);
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0; /* Prevents logo from shrinking on flex layout */
}

.internship-card:hover .internship-logo {
    transform: scale(1.05);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.internship-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.responsibilities h4, .tech-used h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.responsibilities li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.5;
    color: var(--text-color);
}

.responsibilities li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5; /* Vertical alignment fix */
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-tags span {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    color: var(--dark);
    transition: var(--transition);
}

.tech-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================================================
   9. CV Section
   ========================================================================= */

.cv-section {
    padding-block: 6rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--bg-secondary), #fff 90%) 100%);
}

.cv-content {
    display: grid;
    /* Use clamp for gap for better responsiveness */
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem); 
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cv-preview {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cv-preview::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    inset-inline-end: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.cv-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.preview-btn:hover,
.preview-btn:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, var(--primary-color));
}

/* =========================================================================
   10. Projects Section
   ========================================================================= */

.projects {
    padding-block: 6rem;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted min-width for better fit */
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid color-mix(in srgb, var(--text-color) 5%, transparent);
    position: relative;
    display: flex;
    flex-direction: column; /* Ensures content fills height properly */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-content {
    padding: 2rem;
    flex-grow: 1; /* Allows the content area to expand */
    display: flex;
    flex-direction: column;
}

.project-links {
    margin-top: auto; /* Pushes links to the bottom, aligning buttons */
}

.project-image {
    width: 100%;
    height: 250px; /* Increased height for better visuals */
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.03); /* Subtle scale */
}

.tech-stack {
    margin-block: 1.5rem;
}

/* Health World Project Special Styling (Dark Background) */
.health-world-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

/* Use color-mix for white text in dark card for accessibility contrast */
.health-world-card .project-content h3,
.health-world-card .project-content > p,
.health-world-card .project-features h4,
.health-world-card .project-features li {
    color: color-mix(in srgb, var(--white) 95%, #fff); 
}

.health-world-card .tech-stack span {
    background: rgba(255, 255, 255, 0.2);
    color: color-mix(in srgb, var(--white) 90%, #fff);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================================================
   11. Contact Section
   ========================================================================= */

.contact {
    padding-block: 6rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--bg-secondary), #fff 90%) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.contact-form {
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.form-group input,
.form-group textarea {
    border: 2px solid var(--light-color);
    background: color-mix(in srgb, var(--light-color) 70%, transparent); /* Subtle background for contrast */
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    padding: 1.2rem;
    border-radius: var(--border-radius);
}

/* =========================================================================
   12. Footer & Utilities
   ========================================================================= */

footer {
    background: var(--dark);
    color: var(--white);
    padding-block: 3rem;
    position: relative;
}

/* Scroll to Top Button (Enhanced Visibility) */
.scroll-top {
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px; /* Slightly smaller for mobile */
    font-size: 1.2rem;
    /* Added transition to visibility/opacity for smoother experience */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; 
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover,
.scroll-top:focus {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

/* Notifications (Added ARIA compatibility note for actual implementation) */
.notification {
    top: calc(var(--nav-height) + 1rem); /* Positions below the fixed nav */
    right: 30px;
    background: var(--card-bg);
    box-shadow: var(--shadow-hover);
    border-left-width: 4px;
    z-index: 10000;
}

/* =========================================================================
   13. Media Queries (Cleaned up & Consolidated)
   ========================================================================= */

/* Tablet & Smaller Desktop (Max 992px) */
@media screen and (max-width: 992px) {
    
    .container {
        width: 100%;
    }
    
    /* Grid Layouts Stack */
    .about-content,
    .contact-content,
    .cv-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-image {
        /* Pushes image to center on stacked layout */
        margin: 0 auto; 
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 6vw, 3rem);
    }
    
    .contact-info {
        order: 1; /* Keeps contact info block above the form on small screens */
    }
    
    .contact-form {
        order: 2;
    }
}

/* Mobile Devices (Max 768px) */
@media screen and (max-width: 768px) {
    /* Navigation Toggle */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height); /* Position right below the navbar */
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        text-align: center;
        transition: left 0.4s ease-in-out; /* Only transition 'left' for faster reflow */
        box-shadow: var(--shadow-hover);
        padding: 1rem 0;
        gap: 0;
        min-height: calc(100vh - var(--nav-height));
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--light-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg); /* Adjusted spacing */
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    /* General Sizing */
    section {
        padding-block: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Card Adjustments */
    .internship-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: start; /* Keep info left-aligned for better reading */
    }
    
    .internship-logo {
        align-self: flex-start; /* Keep logo on the left */
        margin-block-end: 1rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .tech-tags {
        justify-content: center;
    }
}

/* Small Mobile Devices (Max 576px) */
@media screen and (max-width: 576px) {
    .hero {
        min-height: 40vh;
        padding-block-start: calc(var(--nav-height) + 1.5rem);
        padding-block-end: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .profile-img {
        max-width: 200px;
        height: 200px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* =========================================================================
   14. Print Styles
   ========================================================================= */

@media print {
    /* Hide all non-essential elements */
    .navbar,
    .cta-button,
    .scroll-top,
    .project-links,
    .contact-form {
        display: none !important;
    }
    
    /* Reset background and colors for print readability */
    .hero,
    .about,
    .skills,
    .internship,
    .projects,
    .cv-section,
    .contact {
        background: none !important;
        color: #000 !important;
        min-height: auto;
        padding: 1rem 0 !important;
    }
    
    .hero-content h1,
    h1, h2, h3, h4 {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    /* Ensure no page breaks inside sections and large elements */
    section,
    .internship-card,
    .project-card,
    .cv-preview {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin-block-end: 1rem;
    }

    .section-title::after {
        background: #000;
    }
    
    /* Force link display for print users */
    .project-card .project-content a {
        display: block;
        color: #3498db !important;
        text-decoration: underline;
        margin-top: 10px;
    }
}
