/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003d82;
    --accent-color: #00a8e8;
    --text-color: #2d2d2d;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

section {
    position: relative;
    padding: 100px 0;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--background-color), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    color: #1a1a1a;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 86, 179, 0.3), 0 0 20px rgba(0, 168, 232, 0.2);
}

.primary-btn:hover::after {
    left: 100%;
}

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

.secondary-btn:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 30px;
}

/* Header & Navigation */
header.site-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1511174511562-5f7f82f97c4f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

header.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

header.site-header .container {
    position: relative;
    z-index: 5;
}

/* Animated background elements */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 120, 255, 0.15);
    animation: float 8s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
    background: rgba(0, 120, 255, 0.1);
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
    background: rgba(0, 195, 255, 0.1);
}

.shape:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
    background: rgba(0, 120, 255, 0.08);
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 10s;
    background: rgba(0, 195, 255, 0.12);
}

.shape:nth-child(5) {
    width: 250px;
    height: 250px;
    bottom: 40%;
    left: 35%;
    animation-delay: 4s;
    animation-duration: 16s;
    background: rgba(0, 120, 255, 0.05);
}

.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Data visualization elements */
.data-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.3;
}

.chart-bar {
    position: absolute;
    bottom: 20%;
    height: 60px;
    width: 18px;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 3px 3px 0 0;
    opacity: 0.6;
    animation: growBar 4s infinite ease-out;
}

.chart-bar:nth-child(1) { left: 15%; height: 120px; animation-delay: 0s; }
.chart-bar:nth-child(2) { left: 18%; height: 80px; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { left: 21%; height: 160px; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { left: 24%; height: 100px; animation-delay: 0.6s; }
.chart-bar:nth-child(5) { left: 27%; height: 140px; animation-delay: 0.8s; }

.pie-chart {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 20%;
    right: 20%;
    background: conic-gradient(
        var(--primary-color) 0% 25%,
        var(--secondary-color) 25% 50%,
        var(--accent-color) 50% 80%,
        rgba(255, 255, 255, 0.5) 80% 100%
    );
    opacity: 0.5;
    animation: rotatePie 15s infinite linear;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.8;
}

.data-point:nth-child(1) { top: 30%; left: 65%; }
.data-point:nth-child(2) { top: 35%; left: 68%; }
.data-point:nth-child(3) { top: 40%; left: 64%; }
.data-point:nth-child(4) { top: 45%; left: 69%; }
.data-point:nth-child(5) { top: 50%; left: 67%; }
.data-point:nth-child(6) { top: 55%; left: 63%; }
.data-point:nth-child(7) { top: 60%; left: 70%; }

.trend-line {
    position: absolute;
    height: 2px;
    width: 180px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color));
    opacity: 0.5;
    top: 45%;
    left: 60%;
    transform: rotate(-10deg);
}

.data-grid {
    position: absolute;
    width: 300px;
    height: 200px;
    top: 15%;
    left: 10%;
    opacity: 0.1;
    background-image: 
        linear-gradient(var(--light-text) 1px, transparent 1px),
        linear-gradient(90deg, var(--light-text) 1px, transparent 1px);
    background-size: 20px 20px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: moveParticle 15s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 10%; animation-delay: 2s; }
.particle:nth-child(3) { top: 70%; left: 70%; animation-delay: 4s; }
.particle:nth-child(4) { top: 10%; left: 60%; animation-delay: 6s; }
.particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { top: 30%; left: 80%; animation-delay: 10s; }
.particle:nth-child(7) { top: 80%; left: 20%; animation-delay: 12s; }
.particle:nth-child(8) { top: 60%; left: 90%; animation-delay: 14s; }

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    height: 1px;
    width: 100px;
    opacity: 0.3;
    animation: fadeInOut 8s infinite ease-in-out;
    transform-origin: left center;
}

.connection-line:nth-child(1) {
    top: 25%;
    left: 35%;
    width: 150px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.connection-line:nth-child(2) {
    top: 45%;
    left: 15%;
    width: 200px;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.connection-line:nth-child(3) {
    top: 75%;
    left: 75%;
    width: 120px;
    transform: rotate(15deg);
    animation-delay: 2s;
}

.connection-line:nth-child(4) {
    top: 15%;
    left: 65%;
    width: 180px;
    transform: rotate(-60deg);
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-15px);
    }
    75% {
        transform: translateY(-15px) translateX(-10px);
    }
}

@keyframes moveParticle {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(30px);
    }
    50% {
        transform: translateX(100px) translateY(-30px);
    }
    75% {
        transform: translateX(50px) translateY(-60px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.5;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    width: 90%;
    max-width: 1200px;
}

.nav-scrolled {
    top: 15px;
    background-color: rgba(0, 0, 0, 0.85) !important;
    padding: 12px 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    width: 95%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
}

.logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 10%, rgba(255, 255, 255, 0.2) 50%, transparent 90%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.logo:hover::after {
    opacity: 1;
    transform: rotate(45deg);
}

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

.nav-links li {
    margin-left: 0;
    position: relative;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 8px 5px;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
    opacity: 0.8;
    border-radius: 2px;
}

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

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

.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-icon {
    margin-right: 8px;
    font-size: 16px;
    position: relative;
    top: 1px;
}

/* Right navigation buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 1;
    transition: all 0.4s ease;
}

.nav-buttons.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-action-btn {
    color: var(--light-text);
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-action-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.resume-btn {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
}

.resume-btn i {
    font-size: 14px;
}

.burger {
    display: none;
    cursor: pointer;
}

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

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--light-text), #f0f8ff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    animation: fadeInDown 1s ease 0.2s;
    animation-fill-mode: both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease 0.4s;
    animation-fill-mode: both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

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

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    background-color: var(--secondary-color);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
    transition: all 0.5s ease;
}

.skill-category:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

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

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 1.05rem;
}

.skill-category ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--medium-gray);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    flex-grow: 1;
    line-height: 1.7;
}

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

.project-tags span {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.github-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: rotate(360deg);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Contact Direct Email Styling */
.contact-direct {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.email-contact-container {
    max-width: 500px;
    margin: 0 auto;
}

.email-contact-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.email-contact-container p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(248, 249, 250, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
    background-color: white;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes growBar {
    0%, 100% {
        transform: scaleY(0.7);
    }
    50% {
        transform: scaleY(1);
    }
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    nav {
        padding: 16px 20px;
        border-radius: 20px;
        top: 15px;
    }
    
    .nav-scrolled {
        padding: 12px 20px !important;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        padding: 50px 0;
        gap: 15px;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }
    
    .burger {
        display: block;
        z-index: 1000;
    }
    
    .nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links a::after {
        height: 3px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        flex: 1;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Animated Data Dashboard */
.dashboard-frame {
    position: absolute;
    width: 420px;
    height: 260px;
    top: 40%;
    right: 10%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 15px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    z-index: 4;
    overflow: hidden;
    opacity: 0.85;
    animation: float-dashboard 6s infinite ease-in-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.dashboard-title {
    font-size: 16px;
    color: var(--light-text);
    font-weight: 500;
}

.dashboard-controls {
    display: flex;
    gap: 8px;
}

.dashboard-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-red {
    background-color: #ff5f57;
}

.control-yellow {
    background-color: #febc2e;
}

.control-green {
    background-color: #28c840;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dashboard-chart {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    position: relative;
    height: 120px;
}

.dashboard-chart-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.bar-chart-container {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 10px;
}

.dashboard-bar {
    width: 8px;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

.line-chart-container {
    position: relative;
    height: 80px;
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 20px;
    left: 0;
    display: flex;
    align-items: center;
}

.chart-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--primary-color), var(--accent-color), transparent);
    animation: pulse-line 3s infinite ease-in-out;
}

.chart-point {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    animation: move-point 5s infinite ease-in-out;
}

.chart-point:nth-child(1) { left: 10%; animation-delay: 0s; }
.chart-point:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.chart-point:nth-child(3) { left: 50%; animation-delay: 1s; }
.chart-point:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.chart-point:nth-child(5) { left: 90%; animation-delay: 2s; }

.metric-cards {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.metric-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes move-point {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-dashboard {
    0%, 100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-15px); }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Additional Nav Styles */
.nav-buttons {
    opacity: 1;
    transition: all 0.4s ease;
}

.nav-buttons.visible {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Education Section */
.education-section {
    background-color: #f9f9f9;
    padding: 6rem 0;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.education-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.education-details h3 {
    color: #0056b3;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-description {
    color: #444;
    line-height: 1.6;
}

/* Responsive styles for education section */
@media screen and (max-width: 768px) {
    .education-section {
        padding: 4rem 0;
    }
    
    .education-item {
        padding: 1.5rem;
    }
}

/* Services Section */
.services-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--medium-gray);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon::after {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.service-tags span {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card:hover .service-tags span {
    background-color: rgba(0, 86, 179, 0.2);
}

.service-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Responsive styles for services section */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Alert/Notification Component */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.alert {
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: fadeInRight 0.5s ease forwards;
    max-width: 350px;
}

.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-info {
    background-color: #17a2b8;
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-message {
    flex-grow: 1;
}

.alert-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.alert-close:hover {
    color: white;
    transform: scale(1.1);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Direct email contact styling */
.alternative-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    text-align: center;
}

.alternative-contact p {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.direct-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 20px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.direct-email:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
} 