/*
 * Portfolio — Tharunkumar
 * Modernized design with glassmorphism, gradients, and premium aesthetics
 * Based on template by Ahmed Essa
 */


/* CSS Custom Properties
==================================================*/

:root {
    --primary: #425BB5;
    --primary-light: #5a73c9;
    --primary-dark: #2e4494;
    --accent: #6C63FF;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #425BB5, #6C63FF);
    --gradient-accent: linear-gradient(135deg, #6C63FF, #00D2FF);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --bg-light: #f8f9fc;
    --bg-section: #f3f3f3;
    --bg-card: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 20px rgba(66, 91, 181, 0.12);
    --shadow-hover: 0 12px 40px rgba(66, 91, 181, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Google fonts & font family
==================================================*/

@import 'https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i|Playfair+Display:400,400i,700,700i,900,900i';


/* typography
==================================================*/

html {
    /* Removed scroll-behavior: smooth; as it conflicts with jQuery animate scroll causing severe stutter */
}

h1 {
    font-family: 'Inter', 'Playfair Display', serif;
    font-size: 80px;
    line-height: 70px;
    font-weight: 800;
    letter-spacing: -1px;
}

h4 {
    font-family: 'Inter', 'Lato', sans-serif;
    text-transform: capitalize;
    letter-spacing: 2px;
    position: relative;
    color: var(--primary);
    margin-left: 40px;
    font-weight: 700;
}

h4:before {
    position: absolute;
    width: 30px;
    left: -40px;
    content: "";
    display: block;
    height: 2px;
    background: var(--gradient-primary);
    top: 9px;
}


/* General
==================================================*/

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.size-50 {
    font-size: 50px;
    line-height: 50px
}

.h-50 {
    height: 50px;
}

::selection {
    background: var(--primary);
    color: #fff;
}


/* preloader
==================================================*/

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 10000
}

#status,
.preloader {
    top: 50%;
    left: 50%;
    position: absolute
}

#status {
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center;
    margin: -50px 0 0 -50px
}

.preloader {
    height: 40px;
    width: 40px;
    margin-top: -20px;
    margin-left: -20px
}

.preloader:before {
    content: "";
    display: block;
    position: absolute;
    left: -1px;
    top: -1px;
    height: 100%;
    width: 100%;
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 100%
}

.preloader>.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 25px;
    width: 10.6px;
    margin-top: -12.5px;
    margin-left: -5.3px;
    -webkit-animation: wink 1s ease-in-out infinite alternate;
    animation: wink 1s ease-in-out infinite alternate
}

@media only screen and (min-width:768px) {
    .preloader {
        height: 60px;
        width: 60px;
        margin-top: -30px;
        margin-left: -30px
    }
    .preloader:before {
        left: -2px;
        top: -2px;
        border-width: 2px
    }
    .preloader>.icon {
        height: 37.5px;
        width: 15.9px;
        margin-top: -18.75px;
        margin-left: -7.95px
    }
}

@media only screen and (min-width:1200px) {
    .preloader {
        height: 60px;
        width: 60px;
        margin-top: -30px;
        margin-left: -30px
    }
    .preloader>.icon {
        height: 50px;
        width: 21.2px;
        margin-top: -25px;
        margin-left: -10.6px
    }
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }
    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg)
    }
}

@keyframes rotation {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }
    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg)
    }
}

@-webkit-keyframes wink {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes wink {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}


/* Header
==================================================*/

header {
    text-align: center;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    height: 65px;
    z-index: 9999;
    will-change: transform;
    transform: translateZ(0);
}

nav ul {
    display: inline-block;
    padding-left: 0;
    list-style: none;
    padding: 20px;
    margin-bottom: 0;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

nav li {
    display: inline-block;
    margin: 10px;
}

nav li a {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav li a:hover::after,
nav li a.active::after {
    width: 100%;
}

.bg-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.bg-nav ul {
    padding: 10px;
}

a:focus {
    color: #444;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

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


/* home section
==================================================*/

#home {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

#home::before {
    display: none;
}

#home > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.hero-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 400;
    min-height: 30px;
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 300;
    max-width: 450px;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: 300;
    -webkit-text-fill-color: initial;
}

@keyframes blink {
    50% { opacity: 0; }
}

#hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 64px;
}


/* about section
==================================================*/

#about {
    padding: 100px 0;
    background: #fff;
}

.about-text {
    font-size: 15px;
    line-height: 28px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(66, 91, 181, 0.1);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.about-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(66, 91, 181, 0.1);
}

.about-location i {
    color: var(--primary);
    font-size: 18px;
}

.about-img-div img {
    margin: 0 auto;
}

.about-border {
    position: absolute;
    border: 10px solid var(--primary);
    width: 400px;
    height: 400px;
    top: 40px;
    left: 50px;
    z-index: 1
}


/* experience section
==================================================*/

#experience {
    padding: 100px 0;
    background: var(--bg-section);
}

.experience-row {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.experience-row h3 {
    font-family: 'Inter', 'Lato', sans-serif;
    text-transform: capitalize;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 16px;
    font-weight: bold
}

.experience-row p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 15px;
}

.experience-row .date {
    color: #000;
    font-size: 17px;
}

.timeline {
    padding-left: 0;
    list-style: none;
    position: relative;
}

.timeline:before {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    content: '';
    margin-left: -1px;
    position: absolute;
    top: 0;
    left: 2em;
    width: 2px;
    height: 100%;
}

.timeline-event {
    position: relative;
}

.timeline-event:hover .timeline-event-icon {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    background-color: var(--accent);
}

.timeline-event:hover .timeline-event-thumbnail {
    box-shadow: inset 40em 0 0 0 var(--primary);
}

.timeline-event-copy {
    padding: 2em;
    position: relative;
    top: -1.875em;
    left: 4em;
    width: 100%;
}

.timeline-event-copy h3 {
    font-size: 1.75em;
}

.timeline-event-copy h4 {
    font-size: 1.2em;
    margin-bottom: 1.2em;
}

.timeline-event-copy strong {
    font-weight: 700;
}

.timeline-event-copy p:not(.timeline-event-thumbnail) {
    padding-bottom: 1.2em;
}

.timeline-event-icon {
    -webkit-transition: -webkit-transform 0.2s ease-in;
    transition: -webkit-transform 0.2s ease-in;
    transition: transform 0.2s ease-in;
    transition: transform 0.2s ease-in, -webkit-transform 0.2s ease-in;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    background-color: var(--primary);
    outline: 10px solid var(--bg-section);
    display: block;
    margin: 0.5em 0.5em 0.5em -0.5em;
    position: absolute;
    top: 0;
    left: 2em;
    width: 1em;
    height: 1em;
}

.timeline-event-thumbnail {
    -moz-transition: box-shadow 0.5s ease-in 0.1s;
    -o-transition: box-shadow 0.5s ease-in 0.1s;
    -webkit-transition: box-shadow 0.5s ease-in;
    -webkit-transition-delay: 0.1s;
    -webkit-transition: box-shadow 0.5s ease-in 0.1s;
    transition: box-shadow 0.5s ease-in 0.1s;
    color: white;
    font-size: 12px;
    font-weight: bold;
    background: var(--gradient-primary);
    box-shadow: inset 0 0 0 0em var(--primary);
    display: inline-block;
    margin-bottom: 1.2em;
    padding: 0.25em 1em 0.2em 1em;
    border-radius: 4px;
}


/* projects section
==================================================*/

#projects {
    padding: 100px 0;
}



.portfolio_item {
    position: relative;
    overflow: hidden;
    display: block;
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.portfolio_item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.portfolio_item .portfolio_item_hover {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(66, 91, 181, 0.95), rgba(108, 99, 255, 0.95));
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    color: #333;
    border-radius: var(--radius-md);
}

.portfolio_item .portfolio_item_hover .item_info {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 10px;
    width: 100%;
    font-weight: bold;
}

.portfolio_item .portfolio_item_hover .item_info span {
    display: block;
    color: #fff;
    font-size: 18px;
    -webkit-transform: translateY(-100px);
    transform: translateY(-100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
}

.portfolio_item .portfolio_item_hover .item_info em {
    font-style: normal;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 20px;
    color: #fff;
    margin-top: 10px;
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
    font-size: 10px;
    letter-spacing: 2px;
    border-radius: 4px;
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio_item:hover .item_info em,
.portfolio_item:hover .item_info span {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}



.portfolio_item img {
    border-radius: var(--radius-md);
}

.portfolio-padding {
    padding: 50px 0;
}

.portfolio-inner {
    padding-bottom: 0 !important;
    padding-top: 55px;
}

/* V2 Featured Projects Redesign
==================================================*/

/* General Portfolio Container Updates */
.portfolio_container {
    margin-top: 40px;
    width: 100%;
}

.portfolio-card-container {
    padding: 15px; /* Spacing between grid items */
}

/* Premium Project Card Base */
.premium-project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(66, 91, 181, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.premium-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(66, 91, 181, 0.12);
    border-color: rgba(66, 91, 181, 0.2);
}

/* --- NEW V2: Featured Project Layout (45% / 55% Split) --- */
.project-card-featured {
    flex-direction: row;
    padding: 0;
    max-height: 550px; /* Keep height compact as requested */
}

.project-card-featured .project-mockup-wrapper {
    width: 45%;
    background: #f0f3fa;
    position: relative;
    padding: 30px 20px 0 30px; /* Space for the browser mockup overflow */
    display: flex;
    align-items: flex-end;
}

.browser-mockup {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-project-card:hover .browser-mockup {
    transform: translateY(-10px) scale(1.02);
}

.browser-topbar {
    height: 30px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-mockup img {
    width: 100%;
    height: calc(100% - 30px);
    object-fit: cover;
    object-position: top;
}

.project-card-featured .project-content {
    width: 55%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .project-card-featured {
        flex-direction: column;
        max-height: none;
    }
    .project-card-featured .project-mockup-wrapper,
    .project-card-featured .project-content {
        width: 100%;
    }
    .project-card-featured .project-mockup-wrapper {
        min-height: 250px;
        padding: 30px 20px 0 20px;
    }
    .project-card-featured .project-content {
        padding: 30px 20px;
    }
}

/* Other Projects Grid */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .other-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Wrapper for Standard Grid */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f3fa;
    aspect-ratio: 16/9;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

/* Status Badge */
.project-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.status-featured {
    background: rgba(255, 60, 100, 0.1);
    color: #ff3c64;
    border: 1px solid rgba(255, 60, 100, 0.3);
}

.status-completed {
    background: rgba(43, 184, 155, 0.1);
    color: #2bb89b;
    border: 1px solid rgba(43, 184, 155, 0.3);
}

.status-concept {
    background: rgba(66, 91, 181, 0.1);
    color: var(--primary);
    border: 1px solid rgba(66, 91, 181, 0.3);
}

/* Project Content */
.project-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.project-card-featured .project-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.project-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 30px; /* Pill design */
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(66, 91, 181, 0.15);
    transition: all 0.3s ease;
}

.premium-project-card:hover .tech-badge {
    background: rgba(66, 91, 181, 0.05);
    color: var(--primary);
    border-color: rgba(66, 91, 181, 0.3);
}

/* Key Features List */
.project-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.project-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.project-features li::before {
    content: '✓';
    color: #2bb89b;
    font-weight: bold;
    margin-right: 10px;
    background: rgba(43, 184, 155, 0.1);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Action Buttons */
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.btn-project {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-project:hover, .btn-project:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-live {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-live:hover {
    color: white;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-github {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid #ccc;
}

.btn-github:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-concept {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-concept:hover {
    background: rgba(66, 91, 181, 0.05);
    color: var(--primary);
}

.modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    border: none;
}

.popup-modal {
    background: #fff;
}

.close-popup-modal {
    float: right;
    margin: 20px;
    font-size: 22px;
    opacity: 0;
    cursor: pointer;
    -webkit-transition: all .3s;
    transition: all .3s;
    -webkit-transition-delay: .6s;
    transition-delay: .6s;
    position: fixed;
    z-index: 100000;
    right: 14px;
}

.animatedModal-on .close-popup-modal {
    opacity: 1;
}

.modal-content h2 {
    font-family: 'Inter', 'Playfair Display', serif;
    font-size: 40px;
    line-height: 50px;
}


/* contact
==================================================*/

#contact {
    padding: 100px 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.contact-heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-info-block {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(66, 91, 181, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

/* Badges */
.badge-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(43, 184, 155, 0.1);
    border: 1px solid rgba(43, 184, 155, 0.2);
    border-radius: 30px;
    color: #2bb89b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
}

.badge-availability .dot {
    width: 8px;
    height: 8px;
    background: #2bb89b;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(43, 184, 155, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(43, 184, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 184, 155, 0); }
}

/* Social Circles */
.social-circles {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(66, 91, 181, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
    border-color: transparent;
}

/* Glass Form */
.glass-form {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(66, 91, 181, 0.1);
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
    padding: 40px;
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-floating input,
.form-floating textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(66, 91, 181, 0.15);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-floating textarea {
    height: 150px;
    resize: none;
}

.form-floating input:focus,
.form-floating textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(66, 91, 181, 0.1);
    background: white;
}

.form-floating label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: var(--primary);
    background: var(--bg-card);
    font-weight: 600;
    border-radius: 4px;
}

/* Validation States */
.form-floating input.is-invalid,
.form-floating textarea.is-invalid {
    border-color: #ff3c64;
}

.form-floating input.is-invalid ~ label,
.form-floating textarea.is-invalid ~ label {
    color: #ff3c64;
}

.invalid-feedback {
    display: none;
    color: #ff3c64;
    font-size: 12px;
    margin-top: 6px;
    margin-left: 10px;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 20px;
}

.char-counter {
    font-size: 12px;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-send {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
    flex: 1;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(66, 91, 181, 0.2);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.btn-outline:hover, .btn-outline:focus {
    border-color: var(--primary);
    background: rgba(66, 91, 181, 0.05);
    text-decoration: none;
    color: var(--primary);
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
#success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(43, 184, 155, 0.1);
    color: #2bb89b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

#success-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

#success-message p {
    color: var(--text-secondary);
}

/* Footer CTA */
.contact-footer-cta {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(66, 91, 181, 0.1);
}

.contact-footer-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-footer-cta p {
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 991px) {
    .glass-form {
        margin-top: 40px;
        padding: 30px 20px;
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-send, .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

.social {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.social li {
    float: left;
}

.social li a {
    color: #333;
    font-size: 35px;
    margin-right: 15px;
    transition: var(--transition);
}

.social li a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

#profilepic {
    max-width: 100%;
    width: 360px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.resumediv{ 
    margin-top: 25px;
    width: 140px;
    height: 40px;
    border-radius: var(--radius-sm);
    padding-top: 6px;
    padding-bottom: 30px;
    text-align: center;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    border: 2px solid var(--primary);
    outline: none;
}


/* Footer
==================================================*/

#footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col, .footer-links-col, .footer-connect-col {
    display: flex;
    flex-direction: column;
}

.footer-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-name:before {
    display: none;
}

.footer-tagline {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    max-width: 90%;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-nav li a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.footer-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-nav li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-nav li a:hover::after {
    width: 100%;
}

.footer-email {
    margin-bottom: 20px;
}

.footer-email a {
    color: #94a3b8;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--primary);
}

.footer-social-circles {
    display: flex;
    gap: 12px;
}

.social-circle-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-circle-small:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(66, 91, 181, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    position: relative;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.footer-bottom .heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive media queries
==================================================*/

@media (max-width: 991px) {
    .portfolio .categories-grid .categories ul li a {
        padding: 0 2px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand-col, .footer-links-col, .footer-connect-col {
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .footer-nav li a:hover {
        transform: translateY(-2px) translateX(0);
    }

    .about-stats {
        margin-top: 30px;
    }

    #profilepic {
        margin: 30px auto 0;
        display: block;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .timeline-event-copy {
        width: 90%;
        left: 2em;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    #about .col-md-7,
    #about .col-md-5 {
        padding: 0 15px;
    }
}

@media (max-width: 500px) {
    h1 {
        font-family: 'Inter', 'Playfair Display', serif;
        font-size: clamp(32px, 10vw, 50px);
        line-height: 1.1;
    }
    #hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }
    /* home and disply-table height rules removed for responsiveness */
    .about-border {
        width: 100%;
        max-width: 265px;
    }
    .portfolio .categories-grid .categories ul li {
        list-style: none;
        margin: 10px 0;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-number {
        font-size: 22px;
    }

    .footer-content {
        text-align: center;
        gap: 20px;
    }

    .footer-nav {
        gap: 12px;
    }
}

@media (max-width: 431px) {
    /* Scrollable nav for mobile is handled in 768px media query below */
    #home {
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    .hero-row {
        text-align: center;
    }
    .hero-content-col {
        align-items: center;
    }
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    #herobtn {
        justify-content: center;
    }
    #profilepic{
        margin: 30px auto 0;
        width: 100%;
        max-width: 250px;
    }
    .hero-content-col h1{
        font-size: clamp(28px, 8vw, 30px);
        line-height: 1.2;
    }
    .hero-content-col h4{
        font-size: 18px;
        margin-left: 0px;
    }
    .resumediv{
        margin-top: 0px;
        width: 120px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-tagline {
        font-size: 13px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

  .resumediv a{
    color: var(--primary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
  }


.resumediv:after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: all 0.4s ease;
  color: #fff;
}

.resumediv:hover a{
  color: #fff;
}
.resumediv:hover:after {
  left: 0;
  width: 100%;
}
.resumediv:active {
  top: 2px;
}

.Skills{
    display: block;
    width: 100%;
}

.Skills .container-skill{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    animation: moveUp 1s ease-in-out;
    position: relative; /* Ensure the div can be moved */
    
}

.Skills .container-skill .heading{
    font-size: 42px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    color: rgb(242, 243, 244);
}

.Skills .container-skill .heading h1{
    padding: 0%;
    margin: 0%;
}

.Skills .container-skill .Text{
    font-size: 18px;
    text-align: center;
    max-width: 500px;
    color: rgb(177, 178, 179);
}

.Skills .container-skill .mainSkill{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 30px;
    justify-content: center;
}

.Skills .container-skill .mainSkill .front,
.Skills .container-skill .mainSkill .back,
.Skills .container-skill .mainSkill .datasci,
.Skills .container-skill .mainSkill .tools {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(66, 91, 181, 0.1);
    border-radius: var(--radius-lg);
    padding: 18px 36px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.Skills .container-skill .mainSkill .front:hover,
.Skills .container-skill .mainSkill .back:hover,
.Skills .container-skill .mainSkill .tools:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.Skills .container-skill .mainSkill .front h2,
.Skills .container-skill .mainSkill .back h2,
.Skills .container-skill .mainSkill .datasci h2,
.Skills .container-skill .mainSkill .tools h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0%;
    padding: 0%;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.Skills .container-skill .mainSkill .box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.Skills .container-skill .mainSkill .front .frontSkill,
.Skills .container-skill .mainSkill .back .backSkill,
.Skills .container-skill .mainSkill .datasci .datasciSkill,
.Skills .container-skill .mainSkill .tools .toolsSkill {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(66, 91, 181, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
}

.frontSkill i,
.backSkill i,
.datasciSkill i,
.toolsSkill i {
    font-size: 28px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.frontSkill:hover i,
.backSkill:hover i,
.datasciSkill:hover i,
.toolsSkill:hover i {
    filter: grayscale(0%);
    transform: scale(1.1);
}



@keyframes moveUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#skill-container{
    padding-top: 60px;
    padding-bottom: 40px;
}


#education{
    padding-top: 60px;
    padding-bottom: 40px;
}

#projects{
    padding-top: 60px;
    padding-bottom: 40px;
}

#experience{
    padding-top: 60px;
    padding-bottom: 40px;
}



#herobtn{
    display: flex;
    gap: 16px;
}

#githubdiv{
    margin-left: 0;
}


.Skills .container-skill .mainSkill .front .frontSkill:hover,
.Skills .container-skill .mainSkill .back .backSkill:hover,
.Skills .container-skill .mainSkill .datasci .datasciSkill:hover,
.Skills .container-skill .mainSkill .tools .toolsSkill:hover {
    transform: translateY(-7px);
    transition: var(--transition);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(66, 91, 181, 0.15);
}


/* Section number styling
==================================================*/

.section > .container > .col-md-12 > h4 {
    font-size: 14px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
}

.section > .container > .col-md-12 > .size-50 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
}

/* Achievements Section
==================================================*/

#achievements {
    padding-top: 60px;
    padding-bottom: 40px;
}

.achievements-row {
    display: flex;
    flex-wrap: wrap;
}

.achievements-row > [class*='col-'] {
    display: flex;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid rgba(66, 91, 181, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 0;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 99, 255, 0.3);
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(66, 91, 181, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
    z-index: 2;
}

.achievement-card:hover .achievement-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.achievement-content {
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.achievement-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.achievement-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.achievement-badges span {
    background: rgba(66, 91, 181, 0.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(66, 91, 181, 0.15);
}

.btn-achievement {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    align-self: center;
    margin-top: auto;
    text-decoration: none;
}

.btn-achievement:hover,
.btn-achievement:focus {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
    text-decoration: none;
}

/* Background Blobs */
.hero-blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
    animation: floatBlob 10s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    border-radius: 50%;
    animation-delay: 2s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1) translateZ(0); }
    100% { transform: translate(50px, 50px) scale(1.1) translateZ(0); }
}

/* Profile Image Presentation */
.hero-profile-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 24px;
    transition: var(--transition);
    animation: floatImage 6s ease-in-out infinite;
    z-index: 1;
}

.hero-profile-wrapper:hover {
    box-shadow: 0 10px 30px var(--accent-glow);
}

.hero-profile-img {
    border-radius: 20px;
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    box-shadow: var(--shadow-soft);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-15px) translateZ(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Hero UI Elements */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    z-index: 1;
    position: relative;
}

.hero-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 91, 181, 0.1);
    border-radius: var(--radius-md);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 100px;
    box-shadow: var(--shadow-soft);
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .hero-stat-card {
        flex: 1 1 calc(50% - 15px);
        min-width: 120px;
    }
}

.hero-stat-card:nth-child(1) { animation-delay: 0.8s; }
.hero-stat-card:nth-child(2) { animation-delay: 1.0s; }
.hero-stat-card:nth-child(3) { animation-delay: 1.2s; }
.hero-stat-card:nth-child(4) { animation-delay: 1.4s; }

.hero-stat-card .stat-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.hero-stat-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.hero-stat-card .text-accent {
    color: var(--accent);
}

.hero-stat-card p {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    z-index: 1;
    position: relative;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero:hover, .btn-hero:focus {
    text-decoration: none;
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(66, 91, 181, 0.05);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #ccc;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-greeting {
    font-size: 18px;
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 0 !important;
}
.hero-greeting::before {
    display: none !important;
}

.hero-name {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Certifications Section
==================================================*/

#certifications {
    padding-top: 60px;
    padding-bottom: 40px;
    background: var(--bg-section);
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid rgba(66, 91, 181, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 99, 255, 0.3);
}

.cert-header {
    padding: 25px 25px 15px;
    border-top: 5px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,252,0) 100%);
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(66, 91, 181, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cert-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.cert-title .issuer {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.cert-title .date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.cert-body {
    padding: 10px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.btn-cert {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(66, 91, 181, 0.3);
    color: var(--primary);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
    text-decoration: none;
}

.btn-cert:hover, .btn-cert:focus {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
    text-decoration: none;
}

.intern-cert-card .cert-header {
    padding: 20px 20px 10px;
}

.intern-cert-card .cert-body {
    padding: 5px 20px 20px;
}

.intern-cert-card .cert-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
}

.intern-cert-card .cert-title h3 {
    font-size: 16px;
}

/* ==================================================
   GLOBAL RESPONSIVE OVERRIDES
   ================================================== */

@media (max-width: 991px) {
    /* Ensure padding doesn't cause overflow */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Neutralize Bootstrap negative margins that cause horizontal scroll */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        max-width: 100vw;
    }
    
    .hero-img-col {
        text-align: center;
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    /* Force single column for most grids on mobile */
    .Skills .container-skill .mainSkill {
        flex-direction: column;
        align-items: center;
    }
    
    .Skills .container-skill .mainSkill .front,
    .Skills .container-skill .mainSkill .back,
    .Skills .container-skill .mainSkill .datasci,
    .Skills .container-skill .mainSkill .tools {
        max-width: 100%;
    }

    #about .col-md-7, #about .col-md-5 {
        width: 100%;
        margin-bottom: 30px;
    }

    .glass-form {
        padding: 25px;
    }
    
    .contact-info-block {
        margin-bottom: 30px;
    }

    /* Mobile Header Navigation - Wrapped into Rows */
    header {
        height: auto;
        min-height: 65px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 12px 15px;
        margin: 0;
        gap: 8px 12px;
    }
    
    nav li {
        margin: 0;
        flex: 0 0 auto;
    }
    
    nav li a {
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap;
        padding-bottom: 2px;
    }
    
    #home {
        padding-top: 120px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: clamp(32px, 8vw, 42px); }
    h2 { font-size: clamp(24px, 6vw, 32px); }
    h3 { font-size: clamp(20px, 5vw, 26px); }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-stat-card {
        flex: 1 1 100% !important;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Timeline Institution Names Adjustment */
    .timeline-event-copy h3 {
        font-size: 1.25em;
    }

    .timeline-event-copy h4 {
        font-size: 0.9em;
        letter-spacing: 0.5px;
        line-height: 1.5;
    }
    
    .timeline-event-copy h4:before {
        top: 6px;
    }
}
