/* Base Styles & Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #22d3ee;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --neon-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor on body */
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
    animation: move-blobs 25s infinite alternate;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -200px;
    left: -200px;
}

.blob-2 {
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.blob-3 {
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 30%;
    right: 20%;
    width: 400px;
    height: 400px;
    animation-delay: -10s;
}

@keyframes move-blobs {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(150px, 80px) scale(1.2) rotate(120deg);
    }

    66% {
        transform: translate(-80px, 200px) scale(0.8) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--text-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, background 0.3s ease;
}

/* Custom Cursor End */

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 20px;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary-color);
    border-right: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Navbar */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-light);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding-top: calc(var(--nav-height) + 50px);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text-container {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 25px;
    min-height: 3rem;
}

.typing-text {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-hero {
    display: flex;
    gap: 25px;
}

.social-hero a {
    font-size: 1.6rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-hero a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.img-box {
    position: relative;
    width: clamp(280px, 40vw, 420px);
    height: clamp(280px, 40vw, 420px);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: profile-animate 8s ease-in-out infinite;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-premium);
}

@keyframes profile-animate {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.img-outline {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: profile-animate 8s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.3;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
}

.about-img {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: grayscale(20%);
    transition: var(--transition-medium);
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    pointer-events: none;
}

.about-img:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value {
    font-size: 1rem;
    color: var(--text-light);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 80px;
}

.stat-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    background: var(--card-bg);
    padding: 45px 35px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.skill-category:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-category h3 {
    font-size: 1.6rem;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 2rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-top: 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 35px;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-info p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tags span {
    padding: 6px 15px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Experience Section */
.experience-container {
    max-width: 1000px;
    margin: 0 auto;
}

.exp-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    padding: 50px;
    margin-bottom: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.exp-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.exp-comp {
    display: flex;
    gap: 25px;
    align-items: center;
}

.exp-comp i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--neon-glow);
}

.comp-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 15px;
    box-shadow: var(--neon-glow);
}

.exp-comp h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.exp-comp h4 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.exp-date {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.exp-body ul {
    list-style: none;
}

.exp-body li {
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    padding-left: 25px;
    position: relative;
}

.exp-body li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

/* Education & Timeline */
.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            var(--primary-color),
            var(--secondary-color),
            var(--accent-color),
            transparent);
}

.timeline-item {
    margin-bottom: 80px;
    /* Increased from 50px */
    width: 100%;
    padding-left: 90px;
    /* Increased from 80px */
    position: relative;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.timeline-dot i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 0 25px var(--primary-color);
}

.timeline-item:hover .timeline-dot i {
    color: white;
    transform: rotate(-45deg);
}

.timeline-content {
    background: var(--card-bg);
    padding: 40px;
    /* Increased from 30px */
    border-radius: 30px;
    /* Increased from 24px */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    transition: var(--transition-medium);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(15px);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
}

.edu-subtitle {
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-subtitle::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.edu-details {
    list-style: none;
    margin-top: 15px;
}

.edu-details li {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.edu-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.edu-details li strong {
    color: var(--text-light);
}

.timeline-content h3 {
    font-size: 1.7rem;
    /* Increased from 1.5rem */
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.date-tag {
    position: absolute;
    top: -20px;
    right: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.date {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-medium);
}

.cert-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.3));
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 50px;
}

.contact-info {
    padding: 50px;
    background: var(--card-bg);
    border-radius: 35px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.method-item i {
    width: 65px;
    height: 65px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.6rem;
    box-shadow: var(--neon-glow);
}

.method-item span {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-item p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 1.4rem;
    color: var(--text-dim);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-8px) rotate(10deg);
    box-shadow: var(--neon-glow);
}

.contact-form-container {
    padding: 60px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
}

.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    color: white;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-group textarea {
    height: 200px;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    padding: 100px 10% 50px;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 40px;
}

.footer-social a {
    color: var(--text-dim);
    font-size: 1.8rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer p {
    color: var(--text-dim);
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Scroll Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    transform: translateY(-10px) rotate(15deg);
    background: var(--secondary-color);
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .contact-container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 100px 5%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns,
    .social-hero {
        justify-content: center;
    }

    .about-container {
        flex-direction: column;
        gap: 60px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 21px !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 30px;
        padding: 50px;
        transition: 0.5s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .contact-form-container {
        padding: 30px;
    }

    .projects-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Phone Optimizations */
@media (max-width: 480px) {
    section {
        padding: 80px 4%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 50px !important;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 5px !important;
        width: 30px;
        height: 30px;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .date-tag {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 10px;
    }

    .contact-info {
        padding: 30px;
    }

    .method-item {
        gap: 15px;
    }

    .method-item i {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .method-item p {
        font-size: 1rem;
    }
}

/* Custom Cursor Styles */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto !important;
    }
}