/* styles.css */
:root {
    --primary: #ff4b91; 
    --secondary: #a020f0; 
    --accent: #ff6b6b;
    --dark: #1d0a26; 
    --darker: #0d0613;
    --light: #f8e9ff; 
    --gray: #c5a3ff;
    --glitch-color1: #ff4b91; 
    --glitch-color2: #c56bff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Binary rain background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

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

/* Header & Navigation */
header {
    background-color: rgba(6, 18, 32, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(10, 255, 157, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(10, 255, 157, 0.5);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    position: relative;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--primary);
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 3px;
    text-shadow: -3px 0 var(--glitch-color1);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -3px 0 var(--glitch-color2);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.terminal {
    background-color: rgba(10, 25, 41, 0.8);
    border: 1px solid rgba(10, 255, 157, 0.2);
    border-radius: 5px;
    padding: 30px;
    margin-top: 30px;
    max-width: 700px;
    box-shadow: 0 0 30px rgba(10, 255, 157, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terminal-dots {
    display: flex;
    margin-right: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    color: var(--gray);
    font-size: 0.9rem;
}

.terminal-content {
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.terminal-content p {
    margin-bottom: 15px;
}

.terminal-content span {
    color: var(--primary);
}

.terminal-content .command {
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 30px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary);
    color: var(--darker);
    box-shadow: 0 0 20px rgba(10, 255, 157, 0.5);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

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

.skill-card {
    background: rgba(10, 25, 41, 0.6);
    border: 1px solid rgba(10, 255, 157, 0.1);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

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

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

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.project-card {
    background: rgba(10, 25, 41, 0.6);
    border: 1px solid rgba(10, 255, 157, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-img {
    height: 200px;
    background: linear-gradient(45deg, var(--darker), var(--dark));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
        transparent 48%, 
        rgba(10, 255, 157, 0.1) 50%, 
        transparent 52%);
    background-size: 10px 10px;
}

.project-img i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    z-index: 2;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tag {
    background: rgba(10, 255, 157, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Certifications */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: rgba(10, 25, 41, 0.6);
    border: 1px solid rgba(10, 255, 157, 0.1);
    border-radius: 5px;
    padding: 30px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 20px;
}

.cert-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(10, 25, 41, 0.6);
    border: 1px solid rgba(10, 255, 157, 0.1);
    padding: 15px;
    color: var(--light);
    font-size: 1rem;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    width: 50px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: rgba(6, 18, 32, 0.9);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(10, 255, 157, 0.1);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(6, 18, 32, 0.8);
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    z-index: 100;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.default {
    background: linear-gradient(45deg, #0aff9d, #00e4ff);
}

.theme-btn.dark-purple {
    background: linear-gradient(45deg, #6a0dad, #a4508b);
}

.theme-btn.red {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
}

/* Animations */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 77px, 0); }
    30% { clip: rect(27px, 9999px, 97px, 0); }
    40% { clip: rect(64px, 9999px, 98px, 0); }
    50% { clip: rect(61px, 9999px, 85px, 0); }
    60% { clip: rect(99px, 9999px, 114px, 0); }
    70% { clip: rect(34px, 9999px, 115px, 0); }
    80% { clip: rect(98px, 9999px, 129px, 0); }
    90% { clip: rect(43px, 9999px, 96px, 0); }
    100% { clip: rect(82px, 9999px, 64px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    10% { clip: rect(52px, 9999px, 80px, 0); }
    20% { clip: rect(54px, 9999px, 44px, 0); }
    30% { clip: rect(92px, 9999px, 72px, 0); }
    40% { clip: rect(34px, 9999px, 147px, 0); }
    50% { clip: rect(98px, 9999px, 62px, 0); }
    60% { clip: rect(23px, 9999px, 104px, 0); }
    70% { clip: rect(104px, 9999px, 48px, 0); }
    80% { clip: rect(120px, 9999px, 92px, 0); }
    90% { clip: rect(48px, 9999px, 8px, 0); }
    100% { clip: rect(133px, 9999px, 51px, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid, .cert-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
/* Updated CSS for terminal and weather */
.terminal-content #weather-output {
    white-space: pre-line;
    line-height: 1.6;
    margin-top: 10px;
}

.weather-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

/* Add to styles.css */
.weather-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.weather-label {
    color: var(--gray);
    text-align: left;
}

.weather-value {
    color: var(--primary);
    text-align: right;
    text-shadow: 0 0 5px rgba(10, 255, 157, 0.5);
}

.weather-error {
    color: var(--accent);
}
/* Add to styles.css */
#weather-output p {
    margin: 5px 0;
    line-height: 1.4;
}

.weather-loading, .weather-error {
    margin: 5px 0;
}

.terminal-content p:last-of-type {
    margin-bottom: 10px;
}
