/* styles.css — Modern, animated, responsive portfolio */

:root {
    --primary: #0b6efd;
    --accent: #f97316;
    --bg: #f7f8fb;
    --dark-bg: #1f2937;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --radius: 10px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    font-size: 20px;
}

.brand .sub {
    font-size: 14px;
    color: var(--muted);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* Navigation */
.nav {
    display: flex;
    gap: 12px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav a:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(11,110,253,0.1), rgba(249,115,22,0.1));
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-buttons .btn {
    margin-right: 12px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: darkblue;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    flex: 1 1 150px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-dark {
    background: var(--dark-bg);
    color: #fff;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--primary);
    display: block;
    margin-top: 6px;
    border-radius: 2px;
}

/* Cards Grid */
.exp-grid, .achievements-grid, .projects-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.exp-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exp-card, .achievement-card, .project-card, .blog-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.exp-card:hover, .achievement-card:hover, .project-card:hover, .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.exp-card span, .project-card span, .blog-card p {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* FIX EXPERIENCE CARD TEXT VISIBILITY */
.exp-card,
.exp-card * {
    color: #676363 !important;
}

.exp-card ul {
    margin-top: 12px;
    padding-left: 20px;
}

.exp-card ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}


/* Skills */
.skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
}

/* Certifications Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.certs-grid img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.certs-grid img:hover {
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 16px;
}

.contact-form button {
    padding: 12px;
    font-size: 16px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background: var(--card);
    color: var(--muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-2 {
    animation-delay: 0.6s;
}

.fade-in.delay-3 {
    animation-delay: 0.9s;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
}

/* Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.cert-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.cert-card img {
    width: 100%;
    max-height: 300px; /* Large enough to read content */
    object-fit: contain;
    background: #f7f8fb;
}

.cert-info {
    padding: 12px 16px;
}

.cert-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text);
}

.cert-info .organization {
    font-size: 14px;
    color: var(--muted);
}


/* -----------------------------------------------------
   CONTACT SECTION (2-COLUMN MODERN LAYOUT)
----------------------------------------------------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

/* LEFT SIDE */
.contact-left h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-left p {
  color: #666;
  margin-bottom: 25px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.info-item i {
  font-size: 22px;
  color: var(--primary);
}

.info-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* RIGHT SIDE FORM */
.contact-right {
  width: 100%;
  margin-top: 95px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(11,110,253,0.25);
}

.contact-form button {
  width: fit-content;
  padding: 12px 22px;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}



@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .nav {
        display: none;
        flex-direction: column;
        background: var(--card);
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        border-radius: var(--radius);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        padding: 12px;
    }
    .nav-toggle {
        display: block;
        color: var(--text);
    }
    .nav.show {
        display: flex;
    }
}
