:root {
  --bg-color: #0a192f;
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --accent-color: #64ffda;
  --nav-height: 70px;
  --font-primary: "Inter", sans-serif;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

/* ... existing styles ... */

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* ... existing styles ... */

.project-tags span {
    background-color: #112240;
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #1c2d41;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Header */
header {
  height: var(--nav-height);
  background-color: rgba(10, 25, 47, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.nav-links li a {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-description {
  max-width: 500px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.1rem;
  animation: fadeIn 2s ease-in-out;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px;
}

.hero-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  transition: transform 0.3s ease;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1); /* Mono effect */
  transition: filter 0.3s ease;
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  opacity: 0.3;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px);
}

.hero-image:hover img {
  filter: none; /* Remove mono on hover */
}

.hero-image:hover .img-overlay {
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.highlight {
  color: var(--accent-color);
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.project-card {
    background-color: #020c1b;
    border: 1px solid #1c2d41;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #112240;
}

.project-image iframe {
    display: block;
    /* Render the embedded site at a desktop width, then scale it into the card. */
    width: 333.333%;
    height: 333.333%;
    border: 0;
    background-color: #112240;
    pointer-events: none;
    transform: scale(0.3);
    transform-origin: top left;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: #e6f1ff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-content p {
    color: #8892b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.project-tags span {
    background-color: #112240;
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #1c2d41;
}

/* Tech Stack (Skills) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background-color: #0d1b2a; /* Darker card bg */
    border: 1px solid #1c2d41;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-card i {
    font-size: 3rem;
}

.skill-card span {
    color: #e6f1ff;
    font-weight: 600;
}

/* Contact Section */
#contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

#contact p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-icons-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-secondary);
    border-radius: 12px; /* Slightly rounded square */
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background-color: transparent;
}

.icon-box i {
    transition: color 0.3s ease;
    color: inherit; 
}

/* Specific overrides */
.icon-box .devicon-linkedin-plain {
    color: inherit !important;
}

.icon-box:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
    transform: translateY(-5px);
}

.icon-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item:hover .icon-label {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    background-color: #020c1b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image-wrapper {
        margin-bottom: 30px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

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

    .section {
        padding: 60px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: #0a192f; /* Using bg-color var value directly or var(--bg-color) */
        background-color: #112240; /* Or the previous specific dark blue */
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
        justify-content: center;
        box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

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

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

/* Desktop Styles for Hamburger */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}
