/* 
   Malav Shah - Data Science Portfolio
   Custom CSS Stylesheet
*/

/* Import page-specific styles */
@import url('pages.css');

:root {
    /* Color Palette */
    --primary-dark: #0a192f;     /* Dark blue */
    --primary-medium: #172a45;   /* Medium blue */
    --primary-light: #303c55;    /* Light blue */
    --accent: #64ffda;           /* Teal accent */
    --accent-rgb: 100, 255, 218;
    --text-primary: #e6f1ff;     /* White-blue text */
    --text-secondary: #8892b0;   /* Gray-blue text */
    --bg-dark: #020c1b;          /* Near black background */
    --white: #ffffff;            /* Pure white */
    --black: #000000;            /* Pure black */
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn.secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px;
    background: linear-gradient(145deg, rgba(0,212,255,0.2) 0%, rgba(9,9,121,0.1) 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.logo-container:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4) inset;
    transition: all 0.1s ease;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 0 5px var(--accent), 0 0 10px rgba(0, 212, 255, 0.5);
    margin: 0 2px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-text:first-child {
    color: var(--accent);
    animation: pulse 2s infinite alternate;
}

.logo-text:last-child {
    animation: pulse 2s infinite alternate-reverse;
}

.logo-container:hover .logo-text:first-child {
    transform: translateY(-3px) rotate(-5deg);
}

.logo-container:hover .logo-text:last-child {
    transform: translateY(-3px) rotate(5deg);
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px var(--accent), 0 0 10px rgba(0, 212, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

.logo-text-clicked {
    animation: logo-pop 1s ease forwards;
}

@keyframes logo-pop {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.2) rotate(10deg);
        text-shadow: 0 0 20px var(--accent), 0 0 30px rgba(0, 212, 255, 0.9);
    }
    40% {
        transform: scale(0.9) rotate(-5deg);
    }
    60% {
        transform: scale(1.1) rotate(3deg);
    }
    80% {
        transform: scale(0.95) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section with Integrated Visualization */
.hero {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
}

.integrated-visualization {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 10;
}

.hero-text {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    z-index: 20;
    padding-right: 20px;
    padding-left: 8%;
    margin-right: 2%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--white), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero p:nth-of-type(2) {
    animation-delay: 0.3s;
}

.hero p:last-of-type {
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Data Visualization as Background */
.data-visualization {
    position: relative;
    width: 50%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 1;
    opacity: 0.8;
    position: relative;
}

.data-chart {
    width: 100%;
    height: 100%;
}

/* Avatar Styles with Integration */
.hero-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    z-index: 20;
}

/* Using single responsive avatar approach */

.hero-avatar.integrated {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    z-index: 20;
    aspect-ratio: 1 / 1;
}

#avatar-container {
    position: absolute;
    left: 250px;
    top: 200px;
    transform: translate(-50%, -50%);
}

.avatar-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--accent);
    padding: 3px;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.8);
    z-index: 20;
    aspect-ratio: 1 / 1;
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    aspect-ratio: 1 / 1;
}

@media (max-width: 576px) {
    .avatar-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        aspect-ratio: 1 / 1;
        box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.9);
    }
    
    .avatar-container {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        background-color: var(--accent);
        padding: 3px;
        box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.8);
        z-index: 30;
        aspect-ratio: 1 / 1;
    }
}

.avatar-dots {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 15;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.dot1 {
    top: 20%;
    left: -5px;
    animation: pulse 3s infinite ease-in-out;
}

.dot2 {
    top: 70%;
    right: -5px;
    animation: pulse 3s infinite ease-in-out 1s;
}

.dot3 {
    bottom: 10%;
    left: 45%;
    animation: pulse 3s infinite ease-in-out 2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.avatar-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    z-index: 2;
    animation: spin 20s linear infinite;
}

/* Rotating rings around avatar */
.avatar-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 5;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(var(--accent-rgb), 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring1 {
    width: 140%;
    height: 140%;
    animation: spin 15s linear infinite;
    border-color: rgba(var(--accent-rgb), 0.3);
}

.ring2 {
    width: 160%;
    height: 160%;
    animation: spin 25s linear infinite reverse;
    border-color: rgba(var(--accent-rgb), 0.2);
}

.ring3 {
    width: 180%;
    height: 180%;
    animation: spin 35s linear infinite;
    border-color: rgba(var(--accent-rgb), 0.1);
}

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

.avatar-orbit {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50%;
    z-index: 1;
    transition: all 1.5s ease;
    animation: orbit-rotate 15s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.orbit-dot:nth-child(1) {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
}

.orbit-dot:nth-child(2) {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.orbit-dot:nth-child(3) {
    bottom: 20px;
    left: 0;
    animation-delay: 1s;
}

.orbit-dot:nth-child(4) {
    bottom: 20px;
    right: 0;
    animation-delay: 2s;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 0 30px 5px rgba(100, 255, 218, 0.3);
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hover animations */
.hero-avatar:hover .avatar-container {
    transform: scale(1.05);
}

.hero-avatar:hover .avatar-image {
    transform: scale(0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-avatar:hover .avatar-border {
    transform: scale(1.1) rotate(10deg);
    border-width: 3px;
    opacity: 0.9;
}

.hero-avatar:hover .avatar-orbit {
    transform: scale(1.1);
    border-width: 2px;
    animation-duration: 8s;
}

.hero-avatar:hover .orbit-dot {
    background-color: #fff;
    box-shadow: 0 0 10px 2px var(--accent);
}

.hero-avatar:hover .avatar-glow {
    opacity: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

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

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

.data-visualization {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-chart {
    width: 100%;
    height: auto;
    max-width: 500px;
    overflow: visible;
}

.grid-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1px;
}

.grid-line.x-axis,
.grid-line.y-axis {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2px;
}

.chart-labels text {
    font-size: 12px;
    fill: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
}

.chart-title {
    font-size: 14px;
    fill: var(--white);
    font-weight: 500;
    font-family: var(--font-main);
}

.data-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.data-line.secondary {
    stroke: var(--primary-light);
    stroke-width: 2px;
    stroke-dasharray: 5, 5;
}

.data-area {
    fill: var(--accent);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.data-point {
    fill: var(--bg-dark);
    stroke: var(--accent);
    stroke-width: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-point.secondary {
    fill: var(--bg-dark);
    stroke: var(--primary-light);
}

/* Connection lines between avatar and data points */
.avatar-data-connections {
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.connection-line {
    stroke: var(--accent);
    stroke-width: 1px;
    stroke-dasharray: 4, 4;
    fill: none;
    animation: pulse-line 3s infinite ease-in-out;
}

@keyframes pulse-line {
    0% { opacity: 0.2; stroke-width: 1px; }
    50% { opacity: 0.6; stroke-width: 1.5px; }
    100% { opacity: 0.2; stroke-width: 1px; }
}

.hero:hover .avatar-data-connections {
    opacity: 0.7;
}

.legend-color {
    fill: var(--accent);
}

.legend-color.secondary {
    fill: var(--primary-light);
}

.legend-text {
    font-size: 12px;
    fill: var(--white);
    font-family: var(--font-mono);
}

.chart-tooltip {
    pointer-events: none;
    transition: all 0.3s ease;
}

.tooltip-bg {
    fill: var(--primary-medium);
    stroke: var(--accent);
    stroke-width: 1px;
    opacity: 0.9;
}

.tooltip-title {
    font-size: 12px;
    fill: var(--white);
    font-family: var(--font-mono);
}

.tooltip-value {
    font-size: 14px;
    fill: var(--accent);
    font-weight: bold;
    font-family: var(--font-mono);
}

.data-point:hover {
    r: 8;
    stroke-width: 3px;
    fill: var(--accent);
}

.data-series:hover .data-line {
    stroke-width: 4px;
}

.data-series:hover .data-area {
    opacity: 0.2;
}

.data-series.secondary:hover .data-line.secondary {
    stroke-width: 3px;
    stroke-dasharray: none;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

.data-area {
    animation: pulse 3s infinite ease-in-out;
}

.data-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s forwards ease-out;
}

.data-area {
    fill: rgba(100, 255, 218, 0.1);
    opacity: 0;
    animation: fade-in 2s forwards 1s;
}

.data-point {
    fill: var(--accent);
    opacity: 0;
    animation: fade-in 0.5s forwards 2s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--primary-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background-color: var(--primary-medium);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--accent);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skill-pill {
    background-color: rgba(79, 192, 141, 0.15);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 192, 141, 0.3);
}

.skill-pill:hover {
    background-color: rgba(79, 192, 141, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-project-card, .project-card {
    background-color: var(--primary-medium);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-project-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card.large {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.project-image {
    height: 180px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.7;
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--white);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tags span {
    background-color: rgba(79, 192, 141, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
}

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

.view-all-projects {
    text-align: center;
    margin-top: 35px;
}

.view-all-projects .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Project Highlights */
.project-highlights {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.highlight-value {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-medium);
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

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

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

/* Footer Styles */
footer {
    background-color: var(--primary-medium);
    padding: 80px 0 40px;
    margin-top: 40px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li {
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
    }
    
    .integrated-visualization {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }
    
    .data-visualization {
        width: 100%;
        height: 450px;
    }
    
    #avatar-container {
        left: 50%;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .project-info p {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        flex-direction: column;
    }
    
    .contact-form, .contact-info {
        width: 100%;
        padding: 0;
    }
    
    .contact-info {
        margin-top: 40px;
    }
    
    .timeline-container {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -30px;
    }
    
    .skill-tags {
        gap: 6px;
    }
    
    .skill-pill {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .logo-container {
        padding: 3px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1000;
        position: relative;
        cursor: pointer;
    }
    
    .menu-toggle.active i:before {
        content: '\f00d'; /* fa-times icon */
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    nav ul.show {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    /* Core Expertise Section - Mobile Responsive */
    .skills {
        padding: 60px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .skill-tags {
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .skill-pill {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Featured Projects - Mobile Responsive */
    .featured-projects {
        padding: 60px 0;
    }
    
    .featured-projects-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-info {
        padding: 18px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .project-info p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .project-tags {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .project-tags span {
        padding: 3px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .project-links {
        gap: 10px;
        padding-top: 10px;
    }
    
    .project-link {
        font-size: 0.85rem;
    }
    
    .project-highlights {
        gap: 12px;
        margin: 10px 0;
    }
    
    .highlight-value {
        font-size: 0.9rem;
    }
    
    .view-all-projects {
        margin-top: 25px;
    }
    
    .view-all-projects .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer - Mobile Responsive */
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links ul li {
        margin-bottom: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
        width: 100%;
        overflow-x: hidden;
    }
    
    .integrated-visualization {
        flex-direction: column;
        gap: 30px;
        position: relative;
        height: auto;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }
    
    .data-visualization {
        width: 100%;
        height: 400px;
        margin: 20px auto 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-avatar.integrated {
        width: 140px;
        height: 140px;
        border: 3px solid var(--accent);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        animation: avatarPulse 3s infinite alternate;
    }
    
    @keyframes avatarPulse {
        0% {
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        }
        100% {
            box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
        }
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .skills {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .skill-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .skill-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .featured-projects {
        padding: 50px 0;
    }
    
    .projects-grid {
        gap: 25px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-links h4, 
    .footer-social h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo-container {
        padding: 2px;
    }
    
    .logo-text {
        font-size: 1.3rem;
        margin: 0 1px;
    }
    
    .container {
        width: 92%;
        padding: 0;
        overflow-x: hidden;
        margin: 0 auto;
    }
    
    /* Mobile avatar styling handled by integrated avatar */
    
    /* Position the integrated avatar properly on mobile */
    .hero-avatar.integrated {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 20px auto;
        transform: none;
        left: auto;
        top: auto;
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        text-align: left;
        padding: 0 10px;
    }
    
    /* Core Expertise - Small Screen */
    .skills {
        padding: 50px 0;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .skill-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .skill-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .skill-tags {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .skill-pill {
        padding: 3px 8px;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .data-visualization {
        height: 300px;
        position: relative;
        overflow: visible;
        width: 92%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .data-chart {
        width: 90%;
        height: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        position: relative;
    }
    
    .hero-avatar.integrated {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
        position: relative;
        display: block;
        margin: 0 auto;
    }
    
    #avatar-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100px;
        height: 100px;
        z-index: 30;
        background: transparent;
        border: none;
    }
    
    .connection-line {
        display: none;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: -1;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-list-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--primary-medium);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-light);
}

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

.contact-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(var(--accent-rgb), 0.1);
}

.contact-item:hover i {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: rotate(5deg);
}

.contact-item span,
.contact-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    word-break: break-word;
    padding-left: 5px;
}

.contact-item a:hover {
    color: var(--accent);
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-list-container {
        max-width: 450px;
        padding: 15px;
    }
    
    .contact-intro {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 12px;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .contact-item span,
    .contact-item a {
        font-size: 0.9rem;
    }
}
