@font-face {
  font-family: 'icomoon';
  src: url("../fonts/icomoon/icomoon.eot?srf3rx");
  src: url("../fonts/icomoon/icomoon.eot?srf3rx#iefix") format("embedded-opentype"), url("../fonts/icomoon/icomoon.ttf?srf3rx") format("truetype"), url("../fonts/icomoon/icomoon.woff?srf3rx") format("woff"), url("../fonts/icomoon/icomoon.svg?srf3rx#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* Modern Reset & Base Styles */
:root {
    --primary-color: #0f172a;     /* Deep Slate */
    --secondary-color: #1e293b;   /* Slate 800 */
    --accent-color: #0ea5e9;      /* Sky Blue */
    --accent-hover: #0284c7;      /* Darker Sky */
    --bg-body: #ffffff;
    --bg-light: #f1f5f9;          /* Slate 100 */
    --bg-dark: #111827;
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --border-color: #e2e8f0;
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --container-width: 1300px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sub { font-size: 1.1rem; color: var(--text-light); margin-bottom: 3rem; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-white); }
.bg-dark h2, .bg-dark h3 { color: var(--text-white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo span { color: var(--accent-color); }

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}
.nav-links a:hover { color: var(--accent-color); }
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.social-icons a {
    font-size: 1.8rem;
    color: #fff;
    opacity: 0.8;
}
.social-icons a:hover { opacity: 1; color: var(--accent-color); transform: translateY(-3px); }

.action-buttons {
    display: flex;
    gap: 15px;
}

/* About Section */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; position: relative; display: inline-block; margin-bottom: 0; }
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 1.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}
.about-content p { margin-bottom: 1.5rem; }

/* Skills Section (Grid) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s;
}
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }

.skill-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.skill-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.skill-card ul { padding: 0; text-align: left; }
.skill-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}
.skill-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Timeline (Resume) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-group { margin-bottom: 3rem; }
.timeline-group h3 { margin-left: 50px; font-size: 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 10px; }

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2.5rem;
}

/* Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 4px solid var(--accent-color);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}
.timeline-content:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.company {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.role-summary {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.2rem;
    list-style: disc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tags span {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: var(--shadow-md); }

.project-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: block;
}

.project-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(0);
    transform: scale(1.0);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-img::before {
    filter: blur(4px);
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    padding: 20px;
    z-index: 2;
    color: #fff;
}
.project-overlay h3, .project-overlay span { color: #fff !important; }
.project-card:hover .project-overlay { opacity: 1; }

.project-content { padding: 1.5rem; color: var(--text-main); flex-grow: 1; }
.project-content h3 { color: var(--primary-color); font-size: 1.25rem; margin-bottom: 0.5rem; }
.project-content h4 {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.project-content ul {
    padding-left: 1.2rem;
    list-style: disc;
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-main);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}
.testimonial-card .quote {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-card .author {
    display: flex;
    flex-direction: column;
}
.testimonial-card .author strong { color: var(--primary-color); }
.testimonial-card .author span { font-size: 0.9rem; color: var(--text-light); }

/* Contact Section */
.contact-section { position: relative; overflow: hidden; background: var(--bg-light); }
.animation-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.1; }

.floating-icon {
    position: absolute;
    bottom: -50px;
    width: 40px;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-800px) rotate(360deg); opacity: 0; }
}

.contact-box {
    position: relative;
    z-index: 2;
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}
.contact-box h2 { text-align: center; margin-bottom: 1rem; }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-row { display: flex; gap: 20px; margin-bottom: 1.5rem; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-light);
}
.form-control:focus { outline: none; border-color: var(--accent-color); background: #fff; }

/* Footer */
footer { text-align: center; padding: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Animation Utility Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .navbar { height: 60px; }
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
    .nav-links.active { transform: translateY(0); box-shadow: var(--shadow-md); }
    
    .hero h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 1.5rem; }
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 35px; }
    .timeline-item::before { left: 1px; width: 16px; height: 16px; top: 3px; }
    .timeline-group h3 { margin-left: 35px; }
    
    .action-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}