/* ==========================================================================
   Ishita Wavdhane - Portfolio Stylesheet (Cybersecurity & AI)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --primary-color: #2563eb;       /* Deep Blue */
    --secondary-color: #06b6d4;     /* Cyan */
    --accent-color: #7c3aed;        /* Purple */
    --bg-dark: #0b0f19;             /* Deep slate dark background */
    --bg-darker: #070a13;           /* Core background */
    --bg-card: rgba(17, 24, 39, 0.55); /* Glassmorphic card background */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-active: rgba(6, 182, 212, 0.3);
    --text-white: #ffffff;
    --text-light: #f3f4f6;
    --text-gray: #d1d5db;
    --text-muted: #9ca3af;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-neon-blue: 0 0 15px rgba(37, 99, 235, 0.35);
    --shadow-neon-cyan: 0 0 15px rgba(6, 182, 212, 0.35);
    --shadow-neon-purple: 0 0 15px rgba(124, 58, 237, 0.35);
    --glow-text: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Scroll Bar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

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

/* --- Container & Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.highlight-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text-cyan {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px auto;
    border-radius: 2px;
    box-shadow: var(--shadow-neon-cyan);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glassmorphism Base --- */
.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-normal);
}

.glassmorphism:hover {
    border-color: var(--border-glass-active);
    box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.15);
}

/* --- Particles Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Scroll Progress Bar --- */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
    background: transparent;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 10px var(--secondary-color);
}

/* --- Loader / Decrypting Portal --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.cyber-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.cyber-spinner span {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.cyber-spinner span:nth-child(1) {
    top: 0; left: 0; right: 0; bottom: 0;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.cyber-spinner span:nth-child(2) {
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border-right-color: var(--secondary-color);
    animation: spin-reverse 1.2s linear infinite;
}

.cyber-spinner span:nth-child(3) {
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border-bottom-color: var(--accent-color);
    animation: spin 0.9s linear infinite;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: var(--glow-text);
}

.loader-subtext {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(7, 10, 19, 0.9);
    border-bottom-color: rgba(6, 182, 212, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: var(--transition-fast);
    box-shadow: var(--shadow-neon-cyan);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    text-shadow: var(--glow-text);
}

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

/* Hamburger Menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 10000;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-pretitle {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 0.9rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.hero-subtitle .typewriter {
    color: var(--secondary-color);
    text-shadow: var(--shadow-neon-cyan);
}

.hero-subtitle .cursor {
    animation: blink 0.75s step-end infinite;
    color: var(--secondary-color);
    font-weight: 400;
    margin-left: 2px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-neon-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-cyan);
}

/* Hero Interactive SVG Custom styling */
.cyber-graphic-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.cyber-svg {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.15));
}

.svg-ring {
    fill: none;
    stroke-width: 1.5px;
    transform-origin: 250px 250px;
}

.ring-outer {
    stroke: rgba(124, 58, 237, 0.25);
    stroke-dasharray: 20, 10, 40, 15;
    animation: spinClockwise 35s linear infinite;
}

.ring-mid {
    stroke: rgba(6, 182, 212, 0.3);
    stroke-dasharray: 15, 8, 30, 8;
    animation: spinCounterClockwise 25s linear infinite;
}

.ring-inner {
    stroke: rgba(37, 99, 235, 0.4);
    stroke-dasharray: 8, 6;
    animation: spinClockwise 15s linear infinite;
}

.svg-hex {
    fill: rgba(11, 15, 25, 0.6);
    stroke: var(--secondary-color);
    stroke-width: 2px;
    transform-origin: 250px 250px;
    animation: pulseScale 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.svg-shield {
    fill: rgba(37, 99, 235, 0.1);
    stroke: var(--primary-color);
    stroke-width: 2.5px;
    transform-origin: 250px 250px;
    animation: pulseGlow 3s ease-in-out infinite;
}

.node-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1px;
    stroke-dasharray: 4, 4;
}

.node-point {
    transform-origin: center;
    transition: var(--transition-fast);
}

.node-point:hover {
    transform: scale(1.4);
    cursor: pointer;
}

.point-purple {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.point-cyan {
    fill: var(--secondary-color);
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.point-blue {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.svg-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    color: var(--text-white);
    background: transparent;
    pointer-events: none;
    font-size: 0.8rem;
}

/* Orbiting tech particles styling */
.orbiting-particle {
    fill: var(--secondary-color);
    filter: drop-shadow(0 0 4px var(--secondary-color));
}

.op1 {
    animation: orbit1 12s linear infinite;
}

.op2 {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 4px var(--accent-color));
    animation: orbit2 18s linear infinite;
}

.op3 {
    fill: var(--text-white);
    filter: drop-shadow(0 0 4px var(--text-white));
    animation: orbit3 24s linear infinite;
}

.cyber-glow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 12;
}

.scroll-down-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.scroll-down-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-down-indicator .arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-muted);
    border-right: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin: -4px;
    animation: scrollArrow 2s infinite;
}

.scroll-down-indicator .arrow span:nth-child(2) {
    animation-delay: 0.15s;
}

/* --- About Me Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.profile-photo-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    transition: var(--transition-normal);
}

.profile-photo-wrapper:hover .profile-photo {
    transform: scale(1.03);
}

.photo-glow-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--secondary-color), 
        var(--accent-color), 
        transparent 30%
    );
    animation: rotateGlowBorder 6s linear infinite;
    z-index: 1;
}

.profile-photo-wrapper::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-dark);
    border-radius: 18px;
    z-index: 1;
}

.photo-corners span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--secondary-color);
    z-index: 3;
    pointer-events: none;
}

.photo-corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.photo-corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.photo-corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.photo-corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

@keyframes rotateGlowBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.about-main-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-secondary-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    margin-bottom: 4px;
    text-shadow: var(--shadow-neon-cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    transition: var(--transition-normal);
}

.about-card:hover {
    transform: translateX(8px);
    border-color: var(--border-glass-active);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

.about-card .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.about-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-white);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- Skills Section --- */
.skills-tabs-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-gray);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-white);
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.05);
}

.tab-btn.active {
    background: rgba(6, 182, 212, 0.08);
    color: var(--text-white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.5s ease forwards;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.skill-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    transition: var(--transition-normal);
}

/* Color Coding for Section brands */
.brand-blue::after { background: var(--primary-color); }
.brand-cyan::after { background: var(--secondary-color); }
.brand-purple::after { background: var(--accent-color); }

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-active);
}

.brand-blue:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15); }
.brand-cyan:hover { box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15); }
.brand-purple:hover { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15); }

.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.skill-icon-wrap {
    font-size: 1.6rem;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Color indicators for icons */
.brand-blue .skill-icon-wrap { color: var(--primary-color); text-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }
.brand-cyan .skill-icon-wrap { color: var(--secondary-color); text-shadow: 0 0 8px rgba(6, 182, 212, 0.3); }
.brand-purple .skill-icon-wrap { color: var(--accent-color); text-shadow: 0 0 8px rgba(124, 58, 237, 0.3); }

.skill-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.badge-blue {
    background: rgba(37, 99, 235, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.08);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-purple {
    background: rgba(124, 58, 237, 0.08);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.skill-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.skill-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-active);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

.project-card:hover::before {
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-links {
    display: flex;
    gap: 16px;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.project-links a:hover {
    color: var(--text-white);
    text-shadow: var(--shadow-neon-cyan);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-highlights {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-highlights li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-highlights li i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Achievements Section --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.achievement-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 24px;
    transition: var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
}

.ach-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--accent-color);
    border: 1px solid rgba(124, 58, 237, 0.2);
    flex-shrink: 0;
}

.ach-content {
    display: flex;
    flex-direction: column;
}

.ach-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.ach-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ach-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ach-list {
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ach-list li {
    font-size: 0.85rem;
    color: var(--text-gray);
    position: relative;
    padding-left: 14px;
}

.ach-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.ach-date {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color), var(--secondary-color));
    transform: translateX(-50%);
    box-shadow: var(--shadow-neon-cyan);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--secondary-color);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--secondary-color);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    top: 6px;
    right: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--border-glass);
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--border-glass);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: block;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-method-item .c-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.contact-method-item .c-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
}

.contact-method-item .c-text a {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-method-item .c-text a:hover {
    color: var(--secondary-color);
    text-shadow: var(--glow-text);
}

.security-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
}

.security-disclaimer i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.security-disclaimer span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.contact-form-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.02);
    box-shadow: var(--shadow-neon-cyan);
}

textarea.form-input {
    resize: none;
}

.form-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-normal);
}

textarea.form-input ~ .form-label {
    top: 24px;
}

/* Label Floating Effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 0;
    left: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 4px;
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
    font-family: var(--font-mono);
}

.form-group.invalid .form-input {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.form-group.invalid .error-msg {
    display: block;
}

.btn-submit {
    border: none;
    justify-content: center;
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4, .footer-socials h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

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

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    font-size: 1rem;
}

.social-icons a:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-neon-blue);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.5);
}

/* --- Success Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.8);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    border-color: var(--secondary-color);
}

.modal-icon {
    margin-bottom: 24px;
}

.modal h3 {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.modal button {
    width: 100%;
}

/* --- Scroll Animation Reveals --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.15, 0.85, 0.45, 1), 
                transform 0.8s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes blink {
    from, to { color: transparent }
    50% { color: var(--secondary-color) }
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

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

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.4)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.8)); opacity: 1; }
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

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

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Orbiting SVG Paths Keyframes */
@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(190px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(190px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(120deg) translateX(160px) rotate(-120deg); }
    to { transform: rotate(480deg) translateX(160px) rotate(-480deg); }
}

@keyframes orbit3 {
    from { transform: rotate(240deg) translateX(220px) rotate(-240deg); }
    to { transform: rotate(600deg) translateX(220px) rotate(-600deg); }
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* --- Tablet Devices (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        margin-bottom: 20px;
    }
    
    .skills-grid {
        gap: 20px;
    }
    
    .projects-grid, .achievements-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Mobile Menu & Screen Layout (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 20px;
    }
    
    .hero-desc {
        margin: 0 auto 30px auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .cyber-graphic-container {
        max-width: 320px;
    }
    
    /* Hamburger Menu Activation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-darker);
        border-top: 1px solid var(--border-glass);
        transition: var(--transition-normal);
        padding: 50px 24px;
        z-index: 9998;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    /* Hamburger menu lines transforms */
    .nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Timeline items stack on mobile */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
    
    .timeline-content::before {
        left: -8px !important;
        right: auto !important;
        border-left: none !important;
        border-right: 8px solid var(--border-glass) !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skills-tabs-container, .contact-form-container {
        padding: 24px;
    }
}
