:root {
    --bg-color: #0b0f19;
    --surface-color: #151c2f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #0ea5e9;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.section-padding {
    padding: 6rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--accent-gradient);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 1.5s ease;
}

/* ============================
   BACKGROUND PARTICLES
   ============================ */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-dark);
}

/* Header Navigation (Glassmorphism) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 10%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

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



.btn-primary {
    background: var(--accent-gradient);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* ============================
   HAMBURGER MENU
   ============================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10% 60px;
    position: relative;
    overflow: hidden;
}

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

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

.glitch {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.roles {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.divider {
    color: var(--border-color);
    margin: 0 0.5rem;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.badge i {
    color: var(--accent-secondary);
}

.hero-graphics {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.profile-pic-container {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(168, 85, 247, 0.3));
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 3;
    overflow: visible;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    position: relative;
    z-index: 4;
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--accent-gradient);
    filter: blur(20px);
    opacity: 0.5;
    z-index: 2;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

.data-orb {
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse 6s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* ============================
   SKILLS SECTION
   ============================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================
   EXPERIENCE SECTION
   ============================ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-secondary);
    border-radius: 50%;
    left: -35px;
    top: 5px;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.timeline-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.1);
}

.job-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.company {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-desc {
    color: var(--text-secondary);
}

/* ============================
   PROJECTS SECTION
   ============================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    background: linear-gradient(to bottom right, var(--surface-color), #1a223c);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-date {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    align-self: flex-start;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.3;
}

.project-card ul {
    color: var(--text-secondary);
    padding-left: 1.2rem;
    margin-top: auto;
}

.project-card ul li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.project-card ul li::marker {
    color: var(--accent-secondary);
}

/* ============================
   EDUCATION & CERTS
   ============================ */
.edu-cert-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.edu-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.institute {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.edu-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card-img {
    background: linear-gradient(145deg, #000000, #1a1a1a); /* Black background */
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card-img:hover {
    transform: translateY(-5px);
    border-color: #d3d3d3; /* Light gray border on hover */
    box-shadow: 0 8px 25px rgba(211, 211, 211, 0.15); /* Light gray shadow */
}

.cert-image {
    width: 100%;
    height: 180px;
    background: #000000;
    border-bottom: 1px solid #333333;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-card-img:hover .cert-image img {
    transform: scale(1.05);
}

.placeholder-cert {
    background: #0f0f0f;
    color: #d3d3d3; /* Light gray icon */
    font-size: 3rem;
}

.cert-details {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.cert-details .cert-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e5e5; /* Very light gray */
    line-height: 1.3;
}

.cert-details .cert-org {
    color: #b3b3b3; /* Medium light gray */
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-details .cert-date {
    color: #808080;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ============================
   FINAL YEAR PROJECT
   ============================ */
.fyp-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.fyp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.fyp-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fyp-github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.fyp-github-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.fyp-github-link i {
    font-size: 1.1rem;
}

.fyp-header h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.fyp-date {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.fyp-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.fyp-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fyp-block h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.fyp-block h4 i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.fyp-block p, .fyp-block ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.fyp-block ul {
    padding-left: 1.5rem;
}

.fyp-block ul li {
    margin-bottom: 0.5rem;
}

.fyp-block ul li::marker {
    color: var(--accent-secondary);
}

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

.tech-tags span {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem 10% 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content .logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-5px);
    border-color: transparent;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================
   HERO CTA
   ============================ */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

/* ============================
   SKILLS SECTION
   ============================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}

.skill-tags span:nth-child(even) {
    animation-delay: 2s;
}

.skill-tags span:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.skill-tags span i {
    color: var(--accent-secondary);
}

/* ============================
   ACHIEVEMENTS
   ============================ */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.achievement-item:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon i {
    color: var(--accent-secondary);
    font-size: 1.5rem;
}

.achievement-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.achievement-item strong {
    color: var(--accent-primary);
}

/* ============================
   DETAILED PROJECTS
   ============================ */
.projects-grid-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-detailed-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: var(--transition);
}

.project-detailed-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.project-image-placeholder {
    width: 300px;
    min-width: 300px;
    min-height: 250px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.project-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.project-detailed-card:hover .project-image-placeholder i {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition);
}

.project-detailed-card:hover .project-image-placeholder img {
    opacity: 1;
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-details p i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.project-link {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.project-link i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.project-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* ============================
   FOOTER ADDITIONS
   ============================ */
.footer-actions {
    margin: 2rem 0;
}

.cta-text {
    color: #e2e8f0 !important;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================
   ANIMATIONS & UTILITY
   ============================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   WORK WITH ME / CONTACT FORM
   ============================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--surface-color);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-info-side h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info-side p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.method:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.method i {
    font-size: 1.4rem;
    color: var(--accent-primary);
    width: 24px;
    text-align: center;
}

.method span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Availability indicator */
.contact-availability {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
}

.availability-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.contact-availability span {
    color: #86efac;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================
   CONTACT FORM
   ============================ */
.contact-form-side form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.3rem;
}

.required {
    color: #ef4444;
}

.form-group input, 
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Select dropdown styling */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-wrapper select option {
    background: #1a1f2e;
    color: #fff;
    padding: 0.5rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper select:focus + .select-arrow {
    color: var(--accent-primary);
    transform: translateY(-50%) rotate(180deg);
}

/* Other service conditional field */
.other-service-group {
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Radio button group */
.radio-group {
    display: flex;
    gap: 1.2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.radio-option:hover {
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--accent-primary);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--accent-primary);
    background: transparent;
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ i {
    color: var(--accent-primary);
}

.radio-option input[type="radio"]:checked ~ span:last-child {
    color: var(--text-primary);
}

.radio-option i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    justify-content: center;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

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

/* Form status messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    display: none;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-methods .method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-methods .method a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--glow-blue);
}

/* ============================
   FLOATING WHATSAPP
   ============================ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp span {
    position: absolute;
    right: 75px;
    background: #111b21;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-whatsapp span::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: 6px solid #111b21;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-whatsapp i {
    animation: wave 2s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================
   CTA CARD (Contact Section)
   ============================ */
.contact-info-only {
    grid-template-columns: 1fr 1fr;
}

.contact-cta-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.cta-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
    transform: translateY(-5px);
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.cta-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-open-modal {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ============================
   WORK WITH ME MODAL
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1.5rem;
}

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

.modal-container {
    background: linear-gradient(145deg, #0f1524, #151c2f);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(14, 165, 233, 0.08);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-title-icon {
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Header CTA pulse glow */
.header-cta-btn {
    position: relative;
    animation: ctaPulse 3s infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(168, 85, 247, 0.5), 0 0 40px rgba(14, 165, 233, 0.15); }
}

/* ============================
   RESPONSIVE — TABLET (≤1024px)
   ============================ */
@media (max-width: 1024px) {
    .edu-cert-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
}

/* ============================
   RESPONSIVE — MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* Header */
    header {
        padding: 1rem 5%;
    }

    .header-cta-btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 15, 25, 0.97);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1005;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
        color: var(--text-secondary);
    }

    .nav-links a:hover {
        color: var(--accent-primary);
    }

    .nav-links a::after {
        display: none;
    }



    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: auto;
    }

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 2rem;
    }

    .hero-graphics {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 250px;
        height: 250px;
        margin: 0 auto 1rem;
    }

    .profile-pic-container {
        width: 220px;
        height: 220px;
    }

    .data-orb {
        width: 180px;
        height: 180px;
    }

    .contact-badges {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .summary {
        margin-left: auto;
        margin-right: auto;
    }

    .glitch {
        font-size: 3rem;
    }

    .roles {
        font-size: 1.4rem;
    }

    /* Skills */
    .skills-categories-grid {
        grid-template-columns: 1fr;
    }

    /* Achievements */
    .achievements-list {
        grid-template-columns: 1fr;
    }

    .achievement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Projects — FIX FOR BLANK CARDS */
    .project-detailed-card {
        flex-direction: column;
    }

    .project-image-placeholder {
        width: 100%;
        min-width: unset;
        height: 200px;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .project-content {
        padding: 1.5rem;
    }

    /* FYP */
    .fyp-container {
        padding: 1.5rem;
    }

    .fyp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .fyp-header h3 {
        font-size: 1.4rem;
    }

    .fyp-content {
        grid-template-columns: 1fr;
    }

    /* Certs */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -27.5px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .job-title {
        font-size: 1.2rem;
    }

    /* Form */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .contact-info-side h3 {
        font-size: 1.5rem;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-header {
        padding: 1.2rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body .form-row {
        grid-template-columns: 1fr;
    }

    .modal-body .radio-group {
        flex-direction: column;
    }

    /* CTA card mobile */
    .contact-info-only {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    footer {
        padding: 3rem 5% 2rem;
    }
}

/* ============================
   RESPONSIVE — SMALL PHONE (≤480px)
   ============================ */
@media (max-width: 480px) {
    .section-padding {
        padding: 3rem 4%;
    }

    .glitch {
        font-size: 2.4rem;
    }

    .roles {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-graphics {
        width: 200px;
        height: 200px;
    }

    .profile-pic-container {
        width: 180px;
        height: 180px;
    }

    .data-orb {
        width: 140px;
        height: 140px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .contact-container {
        padding: 1.2rem;
    }

    .method {
        padding: 0.8rem;
    }

    .method i {
        font-size: 1.1rem;
    }

    .method span {
        font-size: 0.85rem;
    }
}
