/* 
==========================================
    Main Stylesheet - style.css
    Author: Yashas Rajanna Naidu
    Version: 1.0
==========================================
*/

/* ===== CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --primary: #3A86FF;
    --secondary: #FF5A5F;
    --dark: #1A1A2E;
    --light: #F8F9FA;
    --success: #06D6A0;
    --warning: #FFD166;
    --info: #26547C;
    
    /* Gradients */
    --gradient1: linear-gradient(135deg, #5e60ce, #64dfdf);
    --gradient2: linear-gradient(135deg, #ff9e00, #ff0068);
    --gradient3: linear-gradient(135deg, #06d6a0, #1b9aaa);
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Borders */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Vanta background styling for whole page */
.vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* Add a subtle overlay to all sections for better readability */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.4);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

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

ul, ol {
    list-style-position: inside;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 46, 0.8);
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

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

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

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

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
    visibility: hidden;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: var(--border-radius-round);
    background: var(--gradient1);
    opacity: 0.1;
    filter: blur(50px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-round);
    background: var(--gradient2);
    opacity: 0.1;
    filter: blur(50px);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.greeting {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    color: #b3b3cc;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #2979ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(248, 249, 250, 0.2);
}

.btn-full {
    width: 100%;
}

/* Enhanced CV button */
.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: var(--light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark), var(--dark));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
    border: none;
    color: var(--light);
}

.cv-button:hover::before {
    opacity: 0.3;
}

.cv-button i {
    font-size: 1.2em;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-lg);
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-round);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* ===== SECTION COMMON STYLES ===== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

/* Add a semi-transparent background to sections for better readability */
.section .container {
    background-color: rgba(26, 26, 46, 0.6);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: #b3b3cc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: #b3b3cc;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: var(--spacing-lg);
}

.skill-tag {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    margin-top: 2rem;
}

/* Enhanced Skills Categories Styling */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.skill-category:hover::before {
    opacity: 0.1;
}

/* Glow effect for skill categories */
.skill-category.glow {
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(58, 134, 255, 0.3);
    border-color: rgba(58, 134, 255, 0.3);
}

.skill-category.glow::before {
    opacity: 0.15;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.8rem;
    z-index: 1;
}

.skill-category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.skill-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-tag:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
    border-color: transparent;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-xl);
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

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

.project-image {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

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

.project-content {
    padding: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.project-description {
    color: #b3b3cc;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

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

.project-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.project-links a:hover {
    color: var(--light);
    background-color: var(--primary);
    transform: translateY(-3px);
}

.project-links a.results-link {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
}

.project-links a.results-link:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

.project-links a i {
    font-size: 1.1em;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    margin-top: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

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

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    border-radius: var(--border-radius-lg) 0 var(--border-radius-lg) var(--border-radius-lg);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) var(--border-radius-lg);
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-dot {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-round);
    background-color: var(--primary);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.3);
}

/* Fixed timeline date styles */
.timeline-fixed .timeline-date {
    position: relative;
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 5px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
}

.timeline-description {
    color: #b3b3cc;
    font-size: 14px;
    line-height: 1.6;
}

/* Publication link styling */
.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(58, 134, 255, 0.1);
    transition: all 0.3s ease;
}

.publication-link:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.publication-link i {
    font-size: 0.8em;
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 0 30px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-round);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 14px;
    color: #b3b3cc;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2979ff;
}