/* Mobile-first approach - base styles for small screens */
:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #00f7ff;
    --success: #00ff80;
    --warning: #ff9900;
    --danger: #ff4545;
    --text-primary: #e0e0e0;
    --text-secondary: #8e8e8e;
}

body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

header {
    width: 100%;
    position: fixed;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    background: var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    color: var(--accent);
}

.nav-links a {
    color: var(--text-primary);
    padding: 0 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}

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

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

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

main {
    padding-top: 80px; /* Adjust based on navbar height */
}

.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--secondary) 0%, #0a0a1a 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a1a1a" fill-opacity="1" d="M0,128L48,144C96,160,192,192,288,192H480L768,128L1056,64L1344,0L1440,32L1440,320L1344,320C1248,320,1152,320,1056,320C960,320,864,320,768,320C672,320,576,320,480,320C384,320,288,320,192,320C96,320,48,320,24,320L0,320Z"></path></svg>');
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    animation: glow 2s infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.cta-button {
    padding: 1.5rem 4rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.3); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

@keyframes glow {
    from { text-shadow: 0 4px 20px rgba(0, 255, 255, 0.3); }
    to { text-shadow: 0 4px 30px rgba(0, 255, 255, 0.6); }
}

.section {
    padding: 8rem 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.info-list li {
    margin: 1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-card {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
}

.skill-card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.resume-section {
    background: var(--secondary);
    padding: 4rem;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.resume-item {
    margin: 2rem 0;
}

.resume-item h4 {
    margin-top: 0;
    color: var(--success);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.resume-item .timeline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resume-item ul {
    list-style: none;
    padding: 0;
}

.resume-item ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.resume-item ul li::before {
    content: '⟩';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.certification-list li {
    margin-bottom: 0.5rem;
}

.awards-list li {
    margin-bottom: 0.5rem;
}

.competition-achievements li {
    margin-bottom: 0.5rem;
}

.leadership-roles li {
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin: 2rem 0;
}

.form-control {
    width: 100%;
    padding: 1.5rem;
    background: var(--secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

.form-message {
    margin-top: 1rem;
    color: var(--success);
    text-align: center;
}

.footer {
    padding: 4rem;
    text-align: center;
    background: var(--primary);
}

.footer a {
    color: var(--accent);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--success);
    transform: scale(1.1);
}

.footer p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* macOS Terminal Styles */
#terminal {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 700px;
    max-height: 600px;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    display: none;
    flex-direction: column;
    font-family: 'SF Mono', 'Menlo', monospace;
    z-index: 2000;
    overflow: hidden;
}

#terminal-output {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-primary);
    line-height: 1.75;
    white-space: normal;
    word-break: break-word;
}

.traffic-lights {
    display: flex;
    gap: 12px;
    margin-right: auto;
    padding-left: 0.25rem;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}


.traffic-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    background-clip: padding-box;
}

.traffic-light:hover {
    transform: scale(1.2) translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
    cursor: pointer;
}


.traffic-light:nth-child(2) {
    background: #fdbc40;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 0 1px #8a4000;
}

.traffic-light:nth-child(3) {
    background: #34c749;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 0 1px #00640d;
}

.traffic-light:hover {
    transform: scale(1.1);
}

#terminal-title {
    color: var(--text-primary);
    font-size: 1rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-close-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.terminal-close-button:hover {
    opacity: 1;
}

#terminal-output div[style*="grid-template-columns"] {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: var(--secondary);
    border-left: 3px solid var(--accent);
}

#terminal-output div[style*="grid-template-columns"] span:nth-child(1) {
    font-family: 'Orbitron', sans-serif;
    color: var(--success);
}

#terminal-input-area {
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: var(--success);
    margin-right: 0.5rem;
}

#terminal-input {
    background: none;
    border: none;
    color: var(--accent);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    flex-grow: 1;
}

#terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#terminal-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--secondary);
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    z-index: 2001;
    font-family: 'SF Mono', monospace;
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#terminal-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 255, 255, 0.5);
}

/* Scrollbar styles for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    background-color: var(--primary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

@media (max-width: 1200px) {
    .navbar {
        padding: 1.5rem 3rem;
    }

    main {
        padding-top: 60px;
    }

    .hero {
        height: calc(100vh - 60px);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .section {
        padding: 6rem 3rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .profile-image {
        text-align: center;
    }

    #terminal {
        width: 90%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
    }

    .hero {
        height: 80vh;
    }

    .hero-content {
        padding: 0 1rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    #terminal {
        width: 95%;
        max-height: 80%;
        bottom: 20px;
        right: 10px;
    }

    #terminal-toggle {
        bottom: 20px;
        right: 10px;
    }

    .nav-links.show {
        display: flex;
    }
}
