 /* ===================================
   FILE: style.css
   Modern Dark Theme Portfolio Styles
   =================================== */

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

:root {
    /* Color Palette - Cyber Security Theme */
    --primary-color: #00ff88;
    --secondary-color: #0088ff;
    --accent-color: #ff0055;
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --bg-card: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c5;
    --border-color: #2a2f4a;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Spacing */
    --section-padding: 80px 20px;
    --card-padding: 30px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding-top: 80px;
}

.home-content {
    text-align: center;
    z-index: 1;
}

.home-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

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

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 5px; }
    100% { opacity: 0; top: 15px; }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 48px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* About Section */
.about-section {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.education-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.education-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
}

.edu-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.edu-details {
    color: var(--text-secondary);
    font-size: 14px;
}

.edu-year {
    color: var(--secondary-color);
    font-size: 13px;
    margin-top: 5px;
}

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

.skill-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

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

.skill-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.skill-card ul {
    list-style: none;
    color: var(--text-secondary);
}

.skill-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-card li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects-section {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 136, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    gap: 15px;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 22px;
}

.project-tag {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 13px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

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

.cert-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.cert-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.cert-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.cert-platform {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-darker);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-icon {
    font-size: 24px;
}

.social-links p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-btn {
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.social-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.social-note {
    font-size: 12px;
    color: var(--accent-color);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .home-content h1 {
        font-size: 48px;
    }
    
    .role {
        font-size: 18px;
    }
    
    .intro {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .skill-card,
    .project-card,
    .cert-card {
        padding: 20px;
    }
}

.profile-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;

  /* visual styling */
  border: 2px solid rgba(56, 189, 248, 0.7);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.45),
    0 0 26px rgba(56, 189, 248, 0.35);

  /* positioning */
  position: relative;
  top: 8px; /* pushes image down toward navbar bottom line */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Certificate page */
.cert-page {
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cert-page h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.cert-list {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.cert-item {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 2rem;
  border-radius: 12px;
}

.cert-item h3 {
  margin-bottom: 0.3rem;
}

.back-link {
  margin-top: 3rem;
}
