@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #f07138;
    --primary-light: #ff8c5a;
    --primary-dark: #d85a2a;
    --primary-rgb: 240, 113, 56;

    /* Secondary Colors for Cursor */
    --secondary-color: #035aa6;
    --secondary-light: #0477d4;
    --secondary-dark: #024282;
    --secondary-rgb: 3, 90, 166;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f2f2f2;
    --bg-gray: #ddd;
    --bg-dark: #808080b5;

    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #333;
    --text-tertiary: #444;
    --text-light: #555;
    --text-muted: #666;
    --text-gray: #999;
    --text-border: #bbb;
    --text-white: #fff;
    --text-info: #eee;

    /* Border Colors */
    --border-light: #eee;
    --border-gray: grey;

    /* Font Families */
    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Font Sizes */
    --fs-xs: 10px;
    --fs-sm: 14px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 17px;
    --fs-xl: 18px;
    --fs-2xl: 20px;
    --fs-3xl: 22px;
    --fs-4xl: 24px;
    --fs-5xl: 26px;
    --fs-6xl: 28px;
    --fs-heading: 1.3em;
    --fs-name: 2.5em;

    /* Font Weights */
    --fw-normal: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Line Heights */
    --lh-tight: 1.4;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    /* Spacing */
    --spacing-xs: 3px;
    --spacing-sm: 5px;
    --spacing-md: 7px;
    --spacing-lg: 10px;
    --spacing-xl: 15px;
    --spacing-2xl: 20px;
    --spacing-3xl: 30px;
    --spacing-4xl: 40px;

    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 50%;

    /* Shadows - Updated for Secondary Color */
    --shadow-glow-sm: 0 0 10px rgba(var(--secondary-rgb), 0.8);
    --shadow-glow-md: 0 0 20px rgba(var(--secondary-rgb), 0.6);
    --shadow-glow-lg: 0 0 30px rgba(var(--secondary-rgb), 0.8);
    --shadow-card: 3px 5px 10px var(--text-muted);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Opacity */
    --opacity-low: 0.4;
    --opacity-medium: 0.5;
    --opacity-high: 0.6;
    --opacity-semi: 0.8;
    --opacity-full: 1;
}

* {
    font-family: var(--font-primary);
}

.d-none{display: none;}

html,
body {
    margin: 0px;
    padding: 0px;
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    cursor: none;
    font-size: 15px;
    line-height: var(--lh-normal);
}

/* Premium Custom Cursor - Optimized Performance */
.cursor {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-md);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, font-size 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: var(--opacity-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    letter-spacing: 1.5px;
    box-shadow: 0 0 25px rgba(var(--secondary-rgb), 0.6),
                0 0 50px rgba(var(--secondary-rgb), 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    will-change: transform;
}

/* Cursor text content */
.cursor::after {
    content: attr(data-cursor-text);
}

/* Font Awesome icon support in cursor */
.cursor.cursor-fa-icon::before {
    font-family: 'FontAwesome';
    font-size: inherit;
}

/* Font Awesome Icons - use class names */
.cursor.cursor-fa-icon[data-cursor-icon="paper-plane"]::before { content: "\f1d8"; }
.cursor.cursor-fa-icon[data-cursor-icon="envelope"]::before { content: "\f0e0"; }
.cursor.cursor-fa-icon[data-cursor-icon="download"]::before { content: "\f019"; }
.cursor.cursor-fa-icon[data-cursor-icon="arrow-right"]::before { content: "\f061"; }
.cursor.cursor-fa-icon[data-cursor-icon="arrow-left"]::before { content: "\f060"; }
.cursor.cursor-fa-icon[data-cursor-icon="times"]::before { content: "\f00d"; }
.cursor.cursor-fa-icon[data-cursor-icon="check"]::before { content: "\f00c"; }
.cursor.cursor-fa-icon[data-cursor-icon="plus"]::before { content: "\f067"; }
.cursor.cursor-fa-icon[data-cursor-icon="trash"]::before { content: "\f1f8"; }
.cursor.cursor-fa-icon[data-cursor-icon="pencil"]::before { content: "\f040"; }
.cursor.cursor-fa-icon[data-cursor-icon="eye"]::before { content: "\f06e"; }
.cursor.cursor-fa-icon[data-cursor-icon="heart"]::before { content: "\f004"; }
.cursor.cursor-fa-icon[data-cursor-icon="star"]::before { content: "\f005"; }
.cursor.cursor-fa-icon[data-cursor-icon="github"]::before { content: "\f09b"; }
.cursor.cursor-fa-icon[data-cursor-icon="linkedin"]::before { content: "\f0e1"; }
.cursor.cursor-fa-icon[data-cursor-icon="play"]::before { content: "\f04b"; }
.cursor.cursor-fa-icon[data-cursor-icon="pause"]::before { content: "\f04c"; }
.cursor.cursor-fa-icon[data-cursor-icon="chevron-left"]::before { content: "\f053"; }
.cursor.cursor-fa-icon[data-cursor-icon="chevron-right"]::before { content: "\f054"; }

.cursor-follower {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.5s ease, height 0.5s ease, border-width 0.5s ease, opacity 0.5s ease;
    transform: translate(-50%, -50%);
    opacity: var(--opacity-medium);
    background: radial-gradient(circle, transparent 60%, rgba(var(--secondary-rgb), 0.1) 100%);
    will-change: transform;
}

/* Simplified cursor follower - removed heavy animations for performance */

/* Particle trail */
.cursor-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 9999;
    opacity: var(--opacity-semi);
    animation: particleFade 0.8s ease-out forwards;
    box-shadow: var(--shadow-glow-sm);
}

@keyframes particleFade {
    0% {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* Ripple effect */
.cursor-ripple {
    position: fixed;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 9998;
    animation: rippleEffect 0.6s ease-out forwards;
}

@keyframes rippleEffect {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Simplified cursor states using data attributes */
.cursor[data-cursor="link"] {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-md);
    font-size: 13px;
    letter-spacing: 1px;
}

.cursor[data-cursor="button"] {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-md);
    font-size: 32px;
}

.cursor[data-cursor="input"] {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-md);
    font-size: 28px;
}

.cursor[data-cursor="hover"] {
    width: 70px;
    height: 70px;
    background: rgba(var(--secondary-rgb), 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid var(--secondary-color);
    font-size: 30px;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--secondary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--secondary-rgb), 0.6),
                    0 0 50px rgba(var(--secondary-rgb), 0.3);
    }
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.6) rotate(180deg);
    opacity: var(--opacity-high);
    border-width: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

.experience-projects hr {
    margin: 10px 0px;
}

header {
    width: 100%;
    border-left: var(--spacing-2xl) solid var(--primary-color);
    padding: var(--spacing-3xl);
    background-color: var(--bg-light);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-color);
    transform: translateX(var(--spacing-xs));
}

.bold {
    font-weight: bold;
}

.center {
    text-align: center
}

.left {
    text-align: left
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.name {
    font-family: var(--font-heading);
    font-size: var(--fs-name);
    color: var(--primary-color);
    margin: 0px;
    display: inline-block;
    padding: 0px var(--spacing-xl) 0px 2px;
}

.address {
    font-size: var(--fs-base);
    padding-top: 16px;
    color: var(--text-primary);
    opacity: .9;
    line-height: var(--lh-normal);
}

td:first-child {
    color: var(--text-primary);
    text-align: center;
}

.address>div {
    display: block;
}

.position {
    margin-top: var(--spacing-lg);
    font-size: var(--fs-heading);
    display: block;
    font-family: var(--font-primary);
}

.position::before {
    content: ' ';
    color: #074a97;
    font-size: 1em;
}
.website-link{
    max-width: 30%;
    flex:0 0 28%;
}
td {
    padding: var(--spacing-xs) var(--spacing-md);
    text-align: left;
}

.summary-info {
    text-align: justify;
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}

/* Summary icons - larger and more prominent */
.summary-info .fa {
    font-size: 22px;
    margin-right: 12px;
    vertical-align: middle;
    display: inline-block;
    width: 30px;
    text-align: center;
}

.social {
    opacity: var(--opacity-high);
    padding: var(--spacing-lg) 0px var(--spacing-md) 0px;
}

.btn {
    border: none;
    padding: 9px 25px;
    font-size: var(--fs-lg);
    background-color: var(--primary-color);
    color: var(--text-white);
    cursor: pointer;
    font-family: var(--font-primary);
    border-radius: var(--radius-sm);
}

.shadow {
    box-shadow: var(--shadow-card);
}

.blue {
    color: var(--primary-color);
}

.lblue {
    color: var(--primary-light);
}

.dblue {
    color: var(--primary-dark);
}

/* Main */
main {
    padding: 10px;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main h1 {
    font-size: var(--fs-6xl);
    color: var(--primary-color);
}

/* Main section headings - all consistent */
main > div > section > h2 {
    font-size: var(--fs-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    font-weight: var(--fw-bold);
}

main>div {
    margin-top: var(--spacing-2xl);
}

main>div section {
    padding: var(--spacing-2xl) var(--spacing-4xl);
}

main h1>small {
    font-size: var(--fs-xl);
    color: var(--text-border);
    margin-left: var(--spacing-lg);
}

/* Content headings (inside sections) */
main .experience .company h2,
main .education .school h2 {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: var(--fw-semibold);
}

main .experience .company h2 small,
main .education .school h2 small {
    font-size: var(--fs-base);
    color: var(--primary-dark);
}

main .experience .company h2::before {
    content: 'ϟ ';
    color: var(--primary-light);
    font-size: var(--fs-xl);
}

.skill {
    color: var(--text-tertiary);
    margin-bottom: 0px;
    font-size: var(--fs-base);
    margin-right: var(--spacing-md);
    padding-bottom: 9px;
}

div.skill {
    padding-left: 10px;
}

.skill a {
    color: var(--primary-color);
}

.skill-title {
    font-weight: bold;
    display: block;
}

.school {
    margin-bottom: var(--spacing-3xl);
}

.achievements .achievement {
    padding-left: 25px;
    position: relative;
    border-left: 1px solid #333;
    margin-left: 5px;
    padding-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.achievement:nth-child(1) { animation-delay: 0.2s; }
.achievement:nth-child(2) { animation-delay: 0.3s; }
.achievement:nth-child(3) { animation-delay: 0.4s; }
.achievement:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Achievement item headings (not section heading) */
.achievements .achievement h2 {
    font-size: var(--fs-xl);
    margin-bottom: 1px;
    margin-top: 0px;
    color: var(--text-secondary);
    font-weight: var(--fw-semibold);
}

.achievement-ico {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 100%;
    padding: 6px 0px;
}

.achievements .link {
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
}

.experience-container .timespan {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    padding-left: var(--spacing-2xl);
}

.experience-container .timespan small {
    margin-left: var(--spacing-sm);
    color: var(--text-tertiary);
}

.experience-description {
    padding: 2px var(--spacing-2xl);
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: 2;
}

.experience-description .fa, .education-description .fa {
    margin-right: 8px;
    margin-top: 8px;
    display: inline-block;
}

.education {
    border-right: 1px solid var(--border-light);
}

.education > div {
    padding-left: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.education .school-date {
    padding: 1px 3px;
}

.education .school-grade {
    color: var(--text-light);
}

.education .school-description {
    color: var(--text-light);
    line-height: 1.8;
}

main {
    max-width: 100%;
}

.summary {
    border-right: 1px solid var(--border-light);
}

.skills {
    border-right: 1px solid var(--border-light);
}

.achievements {
    border-right: 1px solid var(--border-light);
}

.achievements-container {
    margin-top: var(--spacing-xl);
}

.experience-container {
    padding-left: var(--spacing-xl);
}

.projects-container {
    margin-top: var(--spacing-xl);
    padding-left: var(--spacing-xl);
}

footer > div {
    display: flex;
}

footer > div > div:first-child {
    flex: 1;
}

footer > div > div:last-child {
    flex: 1;
    text-align: right;
}

.contact-info {
    color: var(--secondary-dark);
}

/* ============================================================================
   FEATURED PROJECTS SECTION - CAROUSEL
   ============================================================================ */
.featured-projects {
    position: relative;
}

.featured-projects h2 {
    margin-bottom: var(--spacing-xl);
}

.featured-projects-container {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) 2px;
    margin: 0 -2px;
}

.projects-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: var(--spacing-xl);
    cursor: grab;
    user-select: none;
}

.projects-carousel:active {
    cursor: grabbing;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: calc((100% - (var(--spacing-xl) * 2)) / 3);
    max-width: calc((100% - (var(--spacing-xl) * 2)) / 3);
    flex-shrink: 0;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--fs-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--bg-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-btn .fa {
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.project-header {
    margin-bottom: var(--spacing-md);
}

.project-header h3 {
    font-size: var(--fs-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.project-type {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
}

.project-tech {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-light);
}

.project-description {
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-base);
}

.project-link {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.project-link a {
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-link a:hover {
    color: var(--primary-dark);
}

.company {
    margin-bottom: var(--spacing-3xl);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.company:nth-child(1) { animation-delay: 0.1s; }
.company:nth-child(2) { animation-delay: 0.2s; }
.company:nth-child(3) { animation-delay: 0.3s; }
.company:nth-child(4) { animation-delay: 0.4s; }
.company:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project item headings (not section heading) */
.projects .project h2 {
    font-size: var(--fs-xl);
    margin-bottom: 0px;
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: var(--fw-semibold);
}

.projects .project h2 small {
    font-size: var(--fs-sm);
    color: var(--text-gray);
}

.projects h2 small::before {
    content: '/ ';
}

.project-header {
    position: relative;
}

.project-stack>* {
    display: block;
}

.project {
    position: relative;
}

.project {
    margin-top: 0px;
    margin-bottom: 30px;
}

.project-info {
    margin-left: 50px;
    padding-left: 15px;
}

.project-logo {
    top: 0px;
    position: absolute;
    left: 0;
}

footer {
    background-color: var(--bg-light);
    width: 100%;
    padding: 13px 50px;
    text-align: left;
    color: var(--text-secondary);
}

.fixed-buttons-container {
    position: fixed;
    bottom: 0;
    right: 0;
}

.fixed-buttons-container>button,
.fixed-buttons-container>a {
    margin: 20px 7px;
}

::-webkit-scrollbar {
    background-color: var(--bg-gray);
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

.mobile-view {
    display: none;
}

@media screen and (max-width: 768px) {
    .hide-print {
        display: none;
    }

    /* Header adjustments */
    header {
        border-top: 10px solid var(--primary-color);
        border-left: none;
        padding: var(--spacing-3xl);
    }

    .name {
        text-align: left;
        font-size: 2em;
    }

    .position {
        font-size: 1em;
        text-align: left;
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
    }

    .social {
        padding: var(--spacing-md) 0px var(--spacing-sm) 0px;
        margin-left: 0;
        margin-right: 0;
    }

    .social .row {
        margin-left: 0;
        margin-right: 0;
    }

    .links {
        text-align: left;
        font-size: 1.15em;
        margin: var(--spacing-sm) 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .links a {
        display: block;
    }

    .website-link {
        max-width: 100%;
        flex: 0 0 100%;
    }

    header .col-md-6 {
        padding: 0 20px;
        /* padding-right: 0; */
    }

    .address {
        margin-top: var(--spacing-2xl);
        font-size: var(--fs-base);
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .address br {
        display: none;
    }

    .address table {
        margin-left: 0;
    }

    .address td {
        padding-left: 0;
    }

    /* Main content adjustments */
    main {
        padding: var(--spacing-lg);
    }

    main>div {
        margin-top: 0;
    }

    main>div section {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    /* Remove right borders on mobile */
    .summary,
    .skills,
    .education,
    .achievements {
        border-right: none;
    }

    main > div > section > h2 {
        font-size: var(--fs-2xl);
        margin-bottom: var(--spacing-md);
    }

    .summary-info {
        font-size: var(--fs-base);
        line-height: var(--lh-relaxed);
    }

    .experience-description {
        font-size: var(--fs-base);
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .experience-container .timespan {
        font-size: var(--fs-base);
        padding-left: var(--spacing-lg);
    }

    /* Projects responsive */
    .featured-projects {
        padding: var(--spacing-lg);
    }

    .project-card {
        padding: var(--spacing-lg);
        min-width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: var(--fs-base);
    }

    /* Skills and interests */
    p.skills, p.intrests {
        font-size: var(--fs-base);
        padding: var(--spacing-sm) var(--spacing-md);
        margin: var(--spacing-xs);
    }

    .intrest-sec, .skillsection {
        margin-top: var(--spacing-xl);
    }

    .intrest-sec p, .skillsection p {
        margin: var(--spacing-sm) var(--spacing-xs);
    }

    .school {
        margin-bottom: var(--spacing-2xl) !important;
    }

    .company {
        margin-bottom: var(--spacing-2xl) !important;
    }

    /* Achievements section spacing */
    .achievements-container {
        margin-top: var(--spacing-xl) !important;
    }

    .achievement {
        margin-bottom: var(--spacing-2xl) !important;
        padding-top: var(--spacing-xl) !important;
        padding-bottom: var(--spacing-xl) !important;
    }

    /* Section dividers */
    hr {
        margin: var(--spacing-2xl) auto !important;
    }

    /* Remove border on small screens */
    section[style*="border-right"] {
        border-right: none !important;
    }

    /* Footer adjustments */
    footer {
        padding: var(--spacing-xl) var(--spacing-lg);
        font-size: var(--fs-base);
    }

    footer > div {
        flex-direction: column;
        text-align: center !important;
        gap: var(--spacing-md);
    }

    footer > div > div {
        text-align: center !important;
    }

    /* Disable custom cursor on mobile */
    html, body {
        cursor: auto;
        overflow-x: hidden!important;
    }

    .cursor, .cursor-follower {
        display: none;
    }
}

/* Tablet responsiveness */
@media screen and (max-width: 992px) and (min-width: 769px) {
    header {
        padding: var(--spacing-3xl) var(--spacing-2xl);
    }

    main>div section {
        padding: var(--spacing-2xl) var(--spacing-3xl);
    }

    .name {
        font-size: 2.2em;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    header {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .name {
        font-size: 1.8em;
        margin-bottom: var(--spacing-sm);
    }

    .position {
        font-size: 1em;
        margin-bottom: var(--spacing-md);
    }

    .social {
        margin-top: var(--spacing-lg);
    }

    .links {
        margin: var(--spacing-md) 0 !important;
        padding: 0 !important;
        font-size: var(--fs-sm);
    }

    .address {
        margin-top: var(--spacing-2xl);
    }

    main {
        padding: var(--spacing-md);
    }

    main>div section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    main > div > section > h2 {
        font-size: var(--fs-xl);
        margin-bottom: var(--spacing-sm);
    }

    .summary-info,
    .experience-description {
        font-size: var(--fs-base);
    }

    p.skills, p.intrests {
        font-size: var(--fs-base);
        padding: 4px var(--spacing-lg);
    }

}

@media print {

    html,
    body {
        margin: 0px;
    }

    ::-webkit-scrollbar {
        background-color: #ddd;
        width: 0px;
    }

    .summary-info {
        font-size: 12pt;
    }

    .hide-print {
        display: none;
    }

    @page {
        margin: 0px;
    }
}


p.skills {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-sm) var(--spacing-xl);
    width: fit-content;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: var(--fs-base);
}

p.skills:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

p.intrests {
    color: var(--text-primary);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-sm) var(--spacing-xl);
    width: fit-content;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: var(--fs-base);
    margin: var(--spacing-sm);
}

p.intrests:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.intrest-sec {
    margin-top: var(--spacing-lg);
}

.skillsection {
    margin-top: var(--spacing-lg);
}

/* ============================================================================
   CONTACT FORM POPUP
   ============================================================================ */

/* Floating Contact Button */
.contact-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 30px rgba(var(--primary-rgb), 0.6);
}

.contact-fab .fa {
    pointer-events: none;
}

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.contact-popup.active {
    visibility: visible;
    opacity: 1;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-popup-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 15px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.contact-popup-content > h2,
.contact-popup-content > p {
    padding: 0 40px;
    flex-shrink: 0;
}

.contact-popup-content > h2 {
    padding-top: 40px;
}

.contact-popup-content > p {
    padding-bottom: 10px;
}

.contact-popup-content form {
    overflow-y: auto;
    padding: 0 40px 40px 40px;
    flex: 1;
}

.contact-popup.active .contact-popup-content {
    transform: scale(1);
    animation: popupBounce 0.5s ease-out;
}

@keyframes popupBounce {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.contact-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.contact-popup-content h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: var(--fs-6xl);
    margin-bottom: 10px;
}

.contact-popup-content > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: var(--fs-base);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: var(--fw-semibold);
    margin-bottom: 8px;
    font-size: var(--fs-base);
}

.form-group label .fa {
    margin-right: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: var(--fs-base);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f07138' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
}

.contact-submit-btn .fa {
    font-size: 18px;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message .fa {
    font-size: 20px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .contact-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .contact-popup-content {
        width: 95%;
    }

    .contact-popup-content > h2,
    .contact-popup-content > p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-popup-content > h2 {
        padding-top: 30px;
        font-size: var(--fs-4xl);
    }

    .contact-popup-content form {
        padding: 0 20px 30px 20px;
    }
}

/* ============================================================================
   PASSWORD PROTECTED PROJECTS SECTION
   ============================================================================ */

/* Locked Projects Display */
.projects-locked {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    border-radius: 15px;
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    animation: fadeIn 0.5s ease-out;
}

.locked-message h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--fs-5xl);
    margin: 20px 0 15px 0;
}

.locked-message p {
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    margin-bottom: 30px;
}

/* Unlock Button */
.unlock-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.5);
}

.unlock-btn .fa {
    font-size: 20px;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.password-modal.active {
    visibility: visible;
    opacity: 1;
}

.password-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.password-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px 40px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.7);
    transition: all var(--transition-base);
    text-align: center;
}

.password-modal.active .password-modal-content {
    transform: scale(1);
    animation: modalBounce 0.5s ease-out;
}

@keyframes modalBounce {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.password-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.password-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.password-icon {
    margin-bottom: 25px;
}

.password-modal-content h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: var(--fs-5xl);
    margin-bottom: 15px;
}

.password-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: var(--fs-base);
}

/* Password Form */
#passwordForm {
    margin-bottom: 20px;
}

#passwordForm .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#passwordForm input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: var(--fs-lg);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    background: var(--bg-white);
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
}

#passwordForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

/* Password Error Message */
.password-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.password-error .fa {
    font-size: 18px;
}

/* Password Submit Button */
.password-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.password-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.5);
}

.password-submit-btn .fa {
    font-size: 18px;
}

/* Password Hint */
.password-hint {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-top: 20px;
}

.password-hint .fa {
    margin-right: 5px;
}

/* Mobile Responsive for Password Modal */
@media screen and (max-width: 768px) {
    .projects-locked {
        padding: 40px 20px;
    }

    .locked-message h2 {
        font-size: var(--fs-4xl);
    }

    .locked-message p {
        font-size: var(--fs-base);
    }

    .unlock-btn {
        padding: 12px 25px;
        font-size: var(--fs-base);
    }

    .password-modal-content {
        padding: 40px 25px 30px;
    }

    .password-modal-content h2 {
        font-size: var(--fs-4xl);
    }

    .password-icon .fa {
        font-size: 48px !important;
    }

    #passwordForm input {
        padding: 12px 18px;
        font-size: var(--fs-base);
    }

    .password-submit-btn {
        padding: 12px 25px;
        font-size: var(--fs-base);
    }
}
