/* ========================================
   UMESHA JAYAKODY PORTFOLIO - CSS
   ======================================== */

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

:root {
    --primary: #00d9ff;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #ec4899;
    --text-gray: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
    border-right: 3px solid var(--primary);
    padding-right: 8px;
    display: inline-block;
    animation: blink 0.7s infinite;
    font-size: 1rem;
    letter-spacing: 1.5px;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary); }
    51%, 100% { border-color: transparent; }
}

.hero-greeting {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s 0.2s backwards;
    font-weight: 400;
}

.hero-name {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #ec4899, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 1s 0.3s backwards;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s 0.4s backwards;
    max-width: 650px;
    text-align: left;
    font-weight: 400;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #7c3aed, #ec4899) 1;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s 0.5s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: var(--light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

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

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
}

.hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    animation: fadeInUp 1s;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
    font-weight: 700;
}

.hero h2 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s backwards;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s 0.4s backwards;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s 0.6s backwards;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ec4899, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subsection-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-size: 1.8rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.section-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-description {
    color: var(--text-gray);
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-subtitle {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    background: linear-gradient(135deg, #ec4899, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-tagline {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
}

.about-text p {
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 0.95rem;
}

.education-background {
    /* Right column - education */
    padding: 1.8rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.education-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #ec4899, #7c3aed);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.education-title {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.5px;
}

.education-title::before {
    content: '';
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    content: '🎓';
}

.education-item {
    margin-bottom: 1.3rem;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed, #ec4899);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.education-item:hover::before {
    transform: scaleY(1);
}

.education-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

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

.education-date {
    color: #ec4899;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 20px;
}

.education-item h5 {
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.5;
}

.education-institution {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
}

.education-institution::before {
    content: '📍';
    font-size: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid transparent;
    background: linear-gradient(#f3f4f6, #f3f4f6) padding-box,
                linear-gradient(135deg, #7c3aed, #ec4899) border-box;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.4s ease;
}

.image-container:hover img {
    filter: brightness(1.1) contrast(1.15);
    transform: scale(1.02);
}

.skills-showcase {
    margin-top: 3rem;
}

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

.skill-item {
    background: rgba(0, 217, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.2);
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.skill-item p {
    font-size: 0.95rem;
    color: var(--light);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* ========================================
   TECHNICAL SKILLS SECTION
   ======================================== */
.skills-categories {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 30px rgba(0, 217, 255, 0.15);
    transform: translateY(-5px);
}

.skill-category-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category-title i {
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--light);
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s;
    cursor: default;
}

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

/* Soft Skills Section */
.soft-skills-section {
    margin-top: 4rem;
}

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

.soft-skill-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
    cursor: default;
}

.soft-skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.soft-skill-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.soft-skill-card h4 {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.soft-skill-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   PROJECTS SECTION (CONTINUED)
   ======================================== */

.project-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    padding: 0;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    position: relative;
}

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

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

.project-card > *:not(.project-image) {
    padding-left: 2rem;
    padding-right: 2rem;
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.project-card .date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-card .project-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.project-card p strong {
    color: var(--primary);
    font-weight: 600;
}

.project-details {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.project-details li {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.tech-tag {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Add this to your existing CSS */

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

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

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-item .date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.certifications-section,
.activities-section {
    margin-top: 3rem;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.certification-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
    text-align: center;
}

.certification-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.certification-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.certification-card h4 {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.certification-card .cert-issuer {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-card .cert-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.cert-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.cert-link i {
    font-size: 0.85rem;
    margin: 0;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.activity-item:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateX(10px);
    border-color: var(--primary);
}

.activity-item i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 30px;
}

.activity-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateX(10px);
    border-color: var(--primary);
}

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

.contact-item h4 {
    color: var(--light);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
}

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

.btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-gray);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

/* ========================================
   BACKGROUND ANIMATION
   ======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent);
    animation: float 20s infinite;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.circle:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-greeting {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image {
        order: -1;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .about-subtitle {
        font-size: 1.4rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.4rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-greeting {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

    nav {
        padding: 1rem 3%;
    }

    nav ul {
        gap: 0.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 3%;
    }
}

/* Logo placement - ensure it sits above the fixed navbar and is visible */
.logo {
    position: absolute;
    top: 10px;
    left: 32px;
    transform: none;
    z-index: 1100; /* above nav (nav is 1000) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none; /* non-interactive decorative logo */
}

.logo-svg {
    width: 92px;
    height: 92px;
    display: block;
}