:root {
    --bg-color: #ffffff;
    --text-primary: #1F2937; /* Dark Gray for headings */
    --text-secondary: #6B7280; /* Gray for body text */
    --blue-accent: #00B4D8; /* Cyan/Light Blue */
    --orange-accent: #F59E0B; /* Yellow/Orange */
    --card-bg: #ffffff;
    --card-border: #F3F4F6;
    --bg-light: #F9FAFB;
    
    --info-card-bg: #EAF9FB;
    --info-icon-bg: #00B4D8;
    
    --font-main: 'Inter', sans-serif;
    --transition: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Prevents anchor links from hiding under fixed header */
    color: var(--text-secondary);
    font-family: var(--font-main);
    background-color: var(--bg-color);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-first {
    color: var(--blue-accent);
}

.logo-last {
    color: var(--orange-accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile override */
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

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

.header-border {
    height: 8px;
    width: 100%;
    background: var(--blue-accent);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 5% 3rem 5%;
}

section {
    padding-top: 4rem;
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hero .summary {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* Buttons */
.btn-primary {
    background-color: var(--blue-accent);
    color: #ffffff !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #0096B4;
}

.btn-outline {
    background-color: #ffffff;
    color: var(--text-primary) !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #D1D5DB;
}

.btn-outline:hover {
    background-color: #F3F4F6;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Portfolio Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #111827;
}

.project-card p {
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.tags span {
    background: #F9FAFB;
    color: #374151;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #E5E7EB;
}

.card-actions {
    display: flex;
    gap: 1.5rem;
}

.card-actions .btn-primary, .card-actions .btn-outline {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
    margin-bottom: 1.8rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.8rem;
    font-size: 1.3rem;
}

.skill-category, .edu-item {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.skill-category strong, .edu-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.cert-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.cert-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* Contact Section Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-group input, .input-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #F9FAFB;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
    background: #ffffff;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--info-card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform var(--transition);
}

.info-card:hover {
    transform: translateX(5px);
}

.icon-circle {
    background: var(--info-icon-bg);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--blue-accent);
    letter-spacing: 1px;
}

.info-content strong {
    color: var(--text-primary);
    font-size: 1.15rem;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.footer-socials a:hover {
    color: #ffffff;
    background-color: var(--blue-accent);
    border-color: var(--blue-accent);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
