:root {
    --primary-color: #e74c3c; /* Pastel red for AI/tech feel */
    --secondary-color: #c0392b; /* Deeper red */
    --accent-color: #ff6b6b; /* Bright pastel red accent */
    --neural-red: #e67e22; /* Neural network orange-red */
    --data-coral: #fd7f6f; /* Data science coral */
    --bg-primary: #1a1a1a; /* Deep dark background */
    --bg-secondary: #2d2d2d; /* Secondary dark background */
    --bg-card: rgba(56, 56, 56, 0.8); /* Card background with transparency */
    --dark-color: #f8f9fa; /* Light text on dark bg */
    --text-color: #e8e8e8; /* Primary text color */
    --text-light: #b8b8b8; /* Secondary text color */
    --text-muted: #888888; /* Muted text color */
    --success-color: #27ae60;
    --border-color: rgba(68, 68, 68, 0.6); /* Transparent borders */
    --border-light: rgba(85, 85, 85, 0.4); /* Lighter transparent borders */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Subtle shadows */
    --neural-shadow: 0 4px 12px rgba(231, 76, 60, 0.1); /* More subtle neural shadow */
    --transition: all 0.2s ease; /* Faster, smoother transitions */
    --gradient-primary: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%); /* Subtle transparent gradients */
    --gradient-neural: linear-gradient(45deg, rgba(230, 126, 34, 0.9) 0%, rgba(253, 127, 111, 0.9) 100%);
    --gradient-bg: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    /* Aliases for previously undefined custom properties used in CSS */
    --text-secondary: var(--text-light);
    --light-color: var(--bg-primary);
    --card-shadow: var(--shadow);
}

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

html {
    scroll-behavior: smooth;
    /* Prevent mobile browsers from auto-resizing text which can break layouts */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-primary);
    position: relative;
}

/* Removed global background pattern to let neural network show */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); } /* Much more subtle movement */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

section:last-of-type::before {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px; /* Thinner accent line */
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.8; /* Added transparency */
}

.section-header h2::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 1px; /* Even thinner */
    background: var(--gradient-neural);
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    opacity: 0.4; /* More transparent */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn.primary:hover {
    transform: translateY(-1px); /* Minimal movement to maintain a clean and modern aesthetic */
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2); /* Subtle shadow */
}

.btn.secondary {
    background: rgba(56, 56, 56, 0.6); /* Transparent background */
    border: 2px solid var(--border-light);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(56, 56, 56, 0.9); /* Slightly less transparent on hover */
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px); /* Subtle movement */
}

.btn.secondary-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    backdrop-filter: blur(10px);
}

.btn.secondary-outline:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Header and Navigation */
header {
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.75), rgba(45, 45, 45, 0.7)),
        radial-gradient(circle at 20% 30%, rgba(231, 76, 60, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(253, 127, 111, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 60% 20%, rgba(230, 126, 34, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(192, 57, 43, 0.13) 0%, transparent 38%);
    background-size: 100% 100%, 600px 600px, 800px 800px, 500px 500px, 700px 700px;
    color: var(--text-color);
    /* Use modern viewport units to avoid mobile 100vh bugs */
    height: 100dvh;
    min-height: 100vh; /* fallback */
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
}

/* Neural Network Container - will be dynamically populated by JavaScript */
#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth rendering */
    shape-rendering: geometricPrecision;
}

/* Neural network animations optimizations */
.neural-node, .neural-connection {
    will-change: opacity, transform;
}

/* Responsive neural network adjustments */
@media screen and (max-width: 768px) {
    #neural-network-canvas {
        opacity: 0.5; /* Reduce opacity on mobile for better readability */
    }
}

@media screen and (max-width: 480px) {
    #neural-network-canvas {
        opacity: 0.4; /* Further reduce on very small screens */
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #neural-network-canvas .neural-node,
    #neural-network-canvas .neural-connection {
        animation: none !important;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.notification-success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
    border-color: rgba(46, 204, 113, 0.5);
}

.notification-error {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border-color: rgba(231, 76, 60, 0.5);
}

.notification-info {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border-color: rgba(52, 152, 219, 0.5);
}

.notification.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(15px);
    height: 80px;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.scrolled {
    background: rgba(26, 26, 26, 0.9); /* Slightly more opaque when scrolled */
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

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

.scrolled .burger div {
    background-color: var(--text-color);
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-1px); /* Subtle movement */
}

.nav-links a.active {
    background: rgba(56, 56, 56, 0.6); /* Transparent active background */
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    position: relative;
}

.burger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    min-height: 100vh; /* fallback */
    padding: 0 2rem;
    width: 100%;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

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

.profile-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: var(--neural-shadow);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-shadow: var(--neural-shadow);
}

.profile-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.profile-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.profile-placeholder code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.hero::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.08) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(253, 127, 111, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: scale(1.05) rotate(5deg); opacity: 0.2; }
}

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

@keyframes neuralShift {
    0%, 100% { 
        background-position: 0% 0%;
        transform: translateX(0px) translateY(0px);
    }
    25% { 
        background-position: 25% 25%;
        transform: translateX(10px) translateY(-5px);
    }
    50% { 
        background-position: 50% 0%;
        transform: translateX(-5px) translateY(10px);
    }
    75% { 
        background-position: 75% 75%;
        transform: translateX(8px) translateY(3px);
    }
}

.hero-text {
    text-align: left;
    padding: 0;
    max-width: none;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero-action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-social-links .social-link {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(56, 56, 56, 0.8);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.hero-social-links .social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    border-color: var(--accent-color);
}

/* About Section Styles */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
    opacity: 0.8;
}

.journey-highlights {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.journey-milestone {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.journey-milestone:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.milestone-year {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 100px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.milestone-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.milestone-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.core-philosophy {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.core-philosophy h4 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.core-philosophy p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.highlight-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* Education Section Styles */
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Awards Section Styles */
.awards-container {
    margin-top: 3rem;
}

.awards-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.8rem;
}

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

/* Leadership Section Styles */
.leadership-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .leadership-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .leadership-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Card styling for consistent design */
.education-item, 
.award-item, 
.leadership-item {
    background: var(--bg-card);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    padding: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.award-item::before,
.leadership-item::before,
.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.award-item:hover::before,
.leadership-item:hover::before,
.education-item:hover::before {
    transform: scaleX(1);
}

/* Award Item Specific Styles */
.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.award-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.award-item h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.award-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Leadership Item Specific Styles */
.leadership-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.leadership-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Education Item Specific Styles */
.education-item h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.education-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.award-item:hover, 
.leadership-item:hover,
.education-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
    border-color: rgba(231, 76, 60, 0.6);
}

/* Experience Section Styles */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.experience-card.current {
    border-color: rgba(231, 76, 60, 0.6);
    box-shadow: var(--neural-shadow);
}

.experience-card.current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
    opacity: 0.9;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.company-info {
    flex: 1;
    min-width: 200px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.company-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.company-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-period {
    text-align: right;
    flex-shrink: 0;
    min-width: 120px;
}

.date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.status {
    background: var(--gradient-neural);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.achievement {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.achievement-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.achievement-content h5 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.achievement-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Skills section with neural network theme */
.skills {
    background: var(--bg-secondary);
    position: relative;
}

/* Removed dark grid background pattern */

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
    justify-items: stretch;
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        align-items: start;
        justify-items: stretch;
    }
}

@media (min-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: start;
        justify-items: stretch;
    }
}

@media (min-width: 1600px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        align-items: start;
        justify-items: stretch;
    }
}

.skill-category {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    overflow: visible;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.category-header h3 {
    margin: 0;
    color: var(--text-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    overflow: visible;
    width: 100%;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    transition: var(--transition);
    position: relative;
    gap: 1rem;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    margin-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.skill-level {
    width: 80px;
    height: 4px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 2s ease-in-out;
}

.skill-item.expert .skill-level::after {
    width: 95%;
}

.skill-item.advanced .skill-level::after {
    width: 85%;
}

.skill-item.proficient .skill-level::after {
    width: 75%;
}

.skill-item.intermediate .skill-level::after {
    width: 60%;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
    transform: translate(-50%, -50%);
}

.skill-item:hover::before {
    width: 100%;
    height: 100%;
}

.skill-item:hover {
    transform: translateY(-1px);
    background: rgba(56, 56, 56, 0.6);
}

/* Timeline enhancements */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-neural);
    border-radius: 50%;
    top: 25px;
    z-index: 2;
    box-shadow: 0 0 0 5px #fff, 0 0 15px rgba(116, 185, 255, 0.3);
}

/* About section personalization */
.about {
    background: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.personal-interests {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.personal-interests h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.interests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.interest-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.interest-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.interest-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 50%;
    flex-shrink: 0;
}

.interest-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.interest-content p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Section Styles */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: fit-content;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-details h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact form styling - commented out as form was removed from HTML */
/*
.contact-form {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(45, 45, 45, 0.6);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(231, 76, 60, 0.8);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
    background: rgba(56, 56, 56, 0.8);
}
*/

/* Note: .section-subtitle already defined earlier in the file */

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-color);
    padding: 3rem 0;
    text-align: center;
    width: 100%;
    margin: 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: rgba(231, 76, 60, 0.8);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
    border-color: var(--primary-color);
}

/* Responsive padding for skill categories */
@media screen and (max-width: 900px) {
    .skill-category {
        padding: 2rem;
        height: 420px;
    }
    
    .skill-level {
        width: 60px;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-social-links {
        order: 2;
        justify-content: center;
    }
    
    .hero-social-links .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-action-buttons {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .hero-action-buttons .btn {
        flex: 1;
        min-width: auto;
        max-width: 150px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .category-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .skill-item {
        padding: 0.6rem 0;
        flex-wrap: wrap;
    }
    
    .skill-name {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .skill-level {
        width: 70px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-container {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .experience-period {
        text-align: left;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1.5rem 1.5rem;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
        height: 60px;
    }

    nav.scrolled {
        background: rgba(26, 26, 26, 0.85);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-color);
    }

    nav .container {
        justify-content: flex-end;
        padding: 0 1.5rem;
    }

    .scrolled {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background-color: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        width: 100%;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: var(--text-color);
        text-shadow: none;
    }
    
    .burger {
        display: block;
        z-index: 10;
    }
    
    /* Ensure burger lines are visible on transparent nav */
    nav:not(.scrolled) .burger div {
        background-color: var(--text-color);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }
    
    .hero {
        padding-top: 80px; /* Add padding to account for the navbar */
    }
    
    .hero-text {
        padding: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        margin: 0 5px;
        font-size: 0.9rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 0 1rem;
        padding-top: 80px; /* Add padding to account for the navbar */
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .profile-image-container {
        width: 250px;
        height: 250px;
    }
    
    .interests-container,
    .awards-grid,
    .leadership-container,
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .education-item,
    .award-item,
    .leadership-item {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card,
    /* .contact-form, - commented out as form was removed */
    .contact-card,
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category {
        height: auto;
        min-height: 300px;
    }
    
    .skill-level {
        width: 50px;
    }
}

/* Add active state styles for navigation links */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

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

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

/* Refinements to navbar positioning */
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Fix container issues */
body > .container {
    overflow-x: visible; /* Changed from hidden to avoid cutoff issues */
    padding-top: 0 !important;
    border-radius: 0;
}

/* Animation classes for JavaScript interactions */
.animate-in {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.animate-level {
    animation: fillLevel 1s ease-out forwards;
}

@keyframes fillLevel {
    from {
        width: 0;
    }
}

/* Form message styling - commented out as form was removed from HTML */
/*
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--primary-color);
}
*/

/* Additional responsive styles for very small screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
    
    .category-header {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .skill-items {
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.5rem 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-name {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .skill-level {
        width: 100%;
        height: 3px;
    }
}

/* Contact Link Cards */
.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.contact-link-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--neural-shadow);
    color: var(--text-color);
}

.contact-link-card .contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link-card .contact-icon i {
    font-size: 1.5rem;
}

.contact-link-card .contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.contact-link-card .contact-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-link-card {
        padding: 1rem 1.5rem;
    }
    
    .contact-link-card .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-link-card .contact-icon i {
        font-size: 1.2rem;
    }
} 